Skip to content
Browse files

Add gemfile tasks

Update the gemfiles whenever the gemspec is updated.
  • Loading branch information...
1 parent a0c7751 commit 3ff815ae80f376eee51edd2e01813fff066409fc @blowmage committed
Showing with 17 additions and 0 deletions.
  1. +17 −0 Rakefile
View
17 Rakefile
@@ -24,4 +24,21 @@ Hoe.spec 'minitest-rails' do
dependency 'fakefs', '~> 0.4', :dev
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

0 comments on commit 3ff815a

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