"new_file" gets many options for Content-MD5 handling
[ruby-mogilefs-client.git] / Rakefile
blobb7181865a86be49b7b389eedd53c6566e4512961
1 require 'rubygems'
2 require 'hoe'
3 load "./GIT-VERSION-GEN"
5 $:.unshift 'lib'
6 require 'mogilefs'
7 Hoe.plugin :seattlerb
9 Hoe.spec 'mogilefs-client' do
10   self.rubyforge_name = 'seattlerb'
11   developer 'Eric Wong', 'normalperson@yhbt.net'
12   # developer 'drbrain@segment7.net', 'Eric Hodel'
13   self.readme_file = "README"
14   self.history_file = "History"
15   self.url = "http://bogomips.org/mogilefs-client"
16   self.description = self.paragraphs_of("README", 1)
17   self.summary = "MogileFS client library for Ruby"
18 end
20 task :fix_perms do
21   IO.popen('git ls-tree -r HEAD^0') do |fp|
22     fp.each_line do |line|
23       mode, type, sha1, path = line.chomp.split(/\s+/)
24       case mode
25       when '100644' then File.chmod(0644, path)
26       when '100755' then File.chmod(0755, path)
27       end
28     end
29   end
30 end
32 # vim: syntax=Ruby