Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 548 Bytes
require 'rake/testtask'
require 'rake/gempackagetask'
require 'rubygems/dependency_installer'
task :default => :gem
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
test.ruby_opts = ['-rhelper']
end
eval IO.read('rubygems-compile.gemspec')
Rake::GemPackageTask.new(GEM_SPEC) do |pkg|
pkg.need_zip = false
pkg.need_tar = true
end
desc 'Build the gem and install it'
task :install => :gem do
Gem::Installer.new("pkg/#{GEM_SPEC.file_name}").install
end
Jump to Line
Something went wrong with that request. Please try again.