Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 752 Bytes
require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rake/testtask'
require File.expand_path('../lib/mongo_mapper/version', __FILE__) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
task :default => :test
desc 'Builds the gem'
task :build do
sh "gem build mongo_mapper.gemspec"
desc 'Builds and installs the gem'
task :install => :build do
sh "gem install mongo_mapper-#{MongoMapper::Version}"
desc 'Tags version, pushes to remote, and pushes gem'
task :release => :build do
sh "git tag v#{MongoMapper::Version}"
sh "git push origin master"
sh "git push origin v#{MongoMapper::Version}"
sh "gem push mongo_mapper-#{MongoMapper::Version}.gem"
Something went wrong with that request. Please try again.