Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (29 sloc) 0.901 kB
require 'rubygems'
require 'rake'
require File.join(File.dirname(__FILE__), '/lib/versionable/version')
require 'rake/testtask'
namespace :test do
Rake::TestTask.new(:units) do |test|
test.libs << 'test'
test.ruby_opts << '-rubygems'
test.pattern = 'test/unit/**/test_*.rb'
test.verbose = true
end
Rake::TestTask.new(:performance) do |test|
test.libs << 'test'
test.ruby_opts << '-rubygems'
test.pattern = 'test/performance/**/*.rb'
test.verbose = true
end
end
task :default => 'test:units'
desc 'Builds the gem'
task :build do
sh 'gem build mm-versionable.gemspec'
Dir.mkdir('pkg') unless File.directory?('pkg')
sh "mv mm-versionable-#{Versionable::VERSION}.gem pkg/mm-versionable-#{Versionable::VERSION}.gem"
end
desc 'Builds and Installs the gem'
task :install => :build do
sh "gem install pkg/mm-versionable-#{Versionable::VERSION}.gem"
end
Jump to Line
Something went wrong with that request. Please try again.