Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.774 kb
require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rake/testtask'
require File.expand_path('../lib/mm_dirtier/version', __FILE__)
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
end
task :default => :test
desc 'Builds the gem'
task :build do
sh "gem build mm_dirtier.gemspec"
end
desc 'Builds and installs the gem'
task :install => :build do
sh "gem install mm_dirtier-#{MongoMapper::Dirtier::Version}"
end
desc 'Tags version, pushes to remote, and pushes gem'
task :release => :build do
sh "git tag v#{MongoMapper::Dirtier::Version}"
sh "git push origin master"
sh "git push origin v#{MongoMapper::Dirtier::Version}"
sh "gem push mm_dirtier-#{MongoMapper::Dirtier::Version}.gem"
end
Jump to Line
Something went wrong with that request. Please try again.