refactor httpfile and remove layering violation
[ruby-mogilefs-client.git] / Rakefile
blob3b6657743d6ac9004c4bb328118da1f93675f18a
1 require 'rubygems'
2 require 'hoe'
4 $:.unshift 'lib'
5 require 'mogilefs'
7 Hoe.new 'mogilefs-client', MogileFS::VERSION do |p|
8   p.rubyforge_name = 'seattlerb'
9   p.author = [ 'Eric Wong', 'Eric Hodel' ]
10   p.email = 'normalperson@yhbt.net' # (Eric Wong)
11   # p.email = 'drbrain@segment7.net' # (Eric Hodel)
12   p.summary = p.paragraphs_of('README.txt', 1).first
13   p.description = p.paragraphs_of('README.txt', 9).first
14   p.url = p.paragraphs_of('README.txt', 5).first
15   p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
17   p.extra_dev_deps << ['ZenTest', '>= 3.6.1']
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