Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (33 sloc) 1.14 KB
require 'rubygems'
require "rake/gempackagetask"
require "rake/clean"
require "spec/rake/spectask"
require "cucumber/rake/task"
require './lib/testjour.rb' do |t|
t.spec_opts == ["--color"]
end do |t|
desc "Run the specs and the features"
task :default => ["spec", "features"]
spec = do |s| = "testjour"
s.version = Testjour::VERSION = "Bryan Helmkamp" = "bryan" + "@" + ""
s.homepage = ""
s.summary = "Distributed test running with autodiscovery via Bonjour (for Cucumber first)"
s.description = s.summary
s.executables = "testjour"
s.files = %w[History.txt MIT-LICENSE.txt README.rdoc Rakefile] + Dir["bin/*"] + Dir["lib/**/*"] + Dir["vendor/**/*"]
end do |package|
package.gem_spec = spec
CLEAN.include ["pkg", "*.gem", "doc", "ri", "coverage"]
desc 'Install the package as a gem.'
task :install => [:clean, :package] do
gem = Dir['pkg/*.gem'].first
sh "sudo gem install --no-rdoc --no-ri --local #{gem}"