Skip to content
Browse files

more rakefile updates

  • Loading branch information...
1 parent 37e9685 commit 2c253d8df39eec843fd7c3edf6dd9531f1a01a8b @ahoward committed Jun 9, 2009
Showing with 3 additions and 9 deletions.
  1. +3 −9 rakefile
View
12 rakefile
@@ -84,22 +84,16 @@ task :gemspec do
end
task :gem => [:clean, :gemspec] do
-
Fu.mkdir_p This.pkgdir
-
- Dir['*.gem'].each{|gem| Fu.rm_f gem}
-
+ before = Dir['*.gem']
cmd = "gem build #{ This.gemspec }"
`#{ cmd }`
-
- gem = Dir['*.gem'].first or 'abort no gem!'
-
+ after = Dir['*.gem']
+ gem = ((after - before).first || after.first) or abort('no gem!')
Fu.mv gem, This.pkgdir
-
This.gem = File.basename(gem)
end
-
task :readme do
samples = ''
prompt = '~ > '

0 comments on commit 2c253d8

Please sign in to comment.
Something went wrong with that request. Please try again.