Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: d1607a16f5
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (38 sloc) 1.168 kB
# -*-ruby-*-
require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rdoc/task'
require 'rubygems/package_task'
require 'rake/clean'
require 'spec/rake/spectask'
require 'cucumber/rake/task'
desc "Run unit tests"
task :default => :spec
desc "Run unit tests"
Spec::Rake::SpecTask.new do |t|
t.spec_files = Dir['**/*_spec.rb']
t.spec_opts = lambda do
IO.readlines(File.join(File.dirname(__FILE__), 'spec', 'spec.opts')).map {|l| l.chomp.split " "}.flatten
end
end
desc "Run functional tests"
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = %w{--color --format pretty}
end
desc 'Generate documentation for the right_support gem.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'RightSupport'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.exclude('features/**/*')
rdoc.rdoc_files.exclude('spec/**/*')
end
desc "Build right_support gem"
Gem::PackageTask.new(Gem::Specification.load("right_support.gemspec")) do |package|
package.need_zip = true
package.need_tar = true
end
CLEAN.include('pkg')
Jump to Line
Something went wrong with that request. Please try again.