Skip to content

Commit

Permalink
Gem rake task tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
timcharper committed Jun 30, 2011
1 parent 897f52a commit 25e8424
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Rakefile
Expand Up @@ -43,19 +43,22 @@ task :install_bundles do
end

namespace :gem do
desc "build gems for deployment to rubygems.org"
desc "Build gems"
task :build do
sh "rm -f spork-*.gem"
sh "gem build spork.gemspec"
sh "env PLATFORM=x86-mingw32 gem build spork.gemspec"
sh "env PLATFORM=x86-mswin32 gem build spork.gemspec"
end

task :push do
desc "Build and deploy gems to rubygems.org"
task :deploy => :build do
Dir["spork-*.gem"].each do |g|
sh "gem push #{g}"
end
end

task :default => :build
end

# PENDING: Get this to work with gem bundler
Expand Down

0 comments on commit 25e8424

Please sign in to comment.