Permalink
Browse files

Updating rakefile

  • Loading branch information...
1 parent b9ac623 commit 19d5c71fa6432105625c0f1dff1f20c95f35c7ab @durran durran committed Feb 14, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 Rakefile
View
@@ -6,6 +6,7 @@ require "spec/rake/spectask"
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "mongoid/version"
+task :gem => :build
task :build do
system "gem build mongoid.gemspec"
end
@@ -15,6 +16,8 @@ task :install => :build do
end
task :release => :build do
+ system "git tag -a #{Mongoid::VERSION} -m 'Tagging #{Mongoid::VERSION}'"
+ system "git push --tags"
system "gem push mongoid-#{Mongoid::VERSION}.gem"
end

0 comments on commit 19d5c71

Please sign in to comment.