Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add gemfile tasks

Update the gemfiles whenever the gemspec is updated.
  • Loading branch information...
commit 3ff815ae80f376eee51edd2e01813fff066409fc 1 parent a0c7751
@blowmage authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.