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