Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add rake task to bump bundled version

  • Loading branch information...
commit 032f9b8560e9dd6743bcaa4c9a6f7ee39a965702 1 parent 34371b4
@lmarburger lmarburger authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 Rakefile
View
8 Rakefile
@@ -84,7 +84,7 @@ task :release => :build do
end
desc "Build #{gem_file} into the pkg directory"
-task :build => :gemspec do
+task :build => [:gemspec, :update_bundle] do
sh "mkdir -p pkg"
sh "gem build #{gemspec_file}"
sh "mv #{gem_file} pkg"
@@ -119,6 +119,12 @@ task :gemspec => :validate do
puts "Updated #{gemspec_file}"
end
+desc "Update #{name} in bundle"
+task :update_bundle => :validate do
+ `bundle update #{name}`
+ puts "Bundled #{name} version #{version}"
+end
+
desc "Validate #{gemspec_file}"
task :validate do
libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
Please sign in to comment.
Something went wrong with that request. Please try again.