Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 539 Bytes
require 'rake'
require 'rake/clean'
require 'rake/testtask'
CLEAN.include("**/*.gem", "**/*.rbc")
namespace :gem do
desc 'Build the hashslice gem'
task :create => [:clean] do
spec = eval(IO.read('hashslice.gemspec'))
Gem::Builder.new(spec).build
end
desc "Install the hashslice library as a gem"
task :install => [:create] do
file = Dir["*.gem"].first
sh "gem install #{file}"
end
end
Rake::TestTask.new do |t|
t.warning = true
t.verbose = true
end
task :default => :test
Something went wrong with that request. Please try again.