Skip to content

Commit

Permalink
Add gemfile tasks
Browse files Browse the repository at this point in the history
Update the gemfiles whenever the gemspec is updated.
  • Loading branch information
blowmage committed Sep 19, 2012
1 parent a0c7751 commit 3ff815a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Rakefile
Expand Up @@ -24,4 +24,21 @@ Hoe.spec 'minitest-rails' do
dependency 'fakefs', '~> 0.4', :dev dependency 'fakefs', '~> 0.4', :dev
end end


namespace :gemfiles do
desc "Updates the gemfiles"
task :update do
`bundle --gemfile=gemfiles/3.0.gemfile`
`bundle --gemfile=gemfiles/3.1.gemfile`
`bundle --gemfile=gemfiles/3.2.gemfile`
end
desc "Clear the lock gemfiles"
task :clear do
`rm gemfiles/3.*.gemfile.lock`
end
end

Rake::Task["gem:spec"].enhance do
Rake::Task["gemfiles:update"].invoke
end

# vim: syntax=ruby # vim: syntax=ruby

0 comments on commit 3ff815a

Please sign in to comment.