Skip to content
Browse files

Easier tasks for gem releasing

  • Loading branch information...
1 parent 3c6845b commit ce0725996a71a57ea21c89d274a979a64b2676e7 @jgdavey committed Oct 24, 2010
Showing with 12 additions and 2 deletions.
  1. +12 −2 Rakefile
View
14 Rakefile
@@ -1,13 +1,23 @@
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "tabletastic/version"
+def gem_file
+ "tabletastic-#{current_version}.gem"
+end
+
+def current_version
+ "#{Tabletastic::VERSION}"
+end
+
task :build do
+ system "mkdir -p ./pkg"
system "gem build tabletastic.gemspec"
+ system "mv #{gem_file} pkg/"
end
task :release => :build do
- system "git tag v#{Tabletastic::VERSION}"
- system "gem push tabletastic-#{Tabletastic::VERSION}"
+ system "git tag v#{current_version}"
+ system "gem push pkg/#{gem_file}"
end
# == RSpec

0 comments on commit ce07259

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