Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Easier tasks for gem releasing

  • Loading branch information...
commit ce0725996a71a57ea21c89d274a979a64b2676e7 1 parent 3c6845b
@jgdavey authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.