Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 479 Bytes
require 'rubygems/package_task'
require 'rake/testtask'
spec = Gem::Specification.load "rb-readline.gemspec"
Gem::PackageTask.new(spec) do |pkg|
end
Rake::TestTask.new do |t|
t.libs << "test"
t.warning = true
t.verbose = true
end
desc "Install the gem locally"
task :install => :gem do
Dir.chdir(File.dirname(__FILE__)) do
sh %{gem install --local pkg/#{spec.name}-#{spec.version}.gem}
end
end
desc "The default is to test everything."
task :default => :test
Jump to Line
Something went wrong with that request. Please try again.