Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v2.0.0.a1
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (63 sloc) 2.297 kb
require 'rubygems'
require 'rake'
require 'yaml'
$:.unshift 'lib'
require 'rake/rdoctask'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rspec-core"
gem.summary = "RSpec Core"
gem.description = 'RSpec Core'
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
gem.homepage = "http://github.com/rspec/core"
gem.authors = ["David Chelimsky", "Chad Humphries"]
gem.add_development_dependency('rspec-expectations', '>= 2.0.0.a1')
gem.add_development_dependency('rspec-mocks', '>= 2.0.0.a1')
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
Rspec::Core::RakeTask.new :spec do |t|
t.ruby_opts = %[-Ilib -Ispec]
t.pattern = "spec/**/*_spec.rb"
end
task :cleanup_rcov_files do
rm_rf 'coverage.data'
end
desc "Run all examples using rcov"
Rspec::Core::RakeTask.new :rcov => :cleanup_rcov_files do |t|
t.rcov = true
t.rcov_opts = %[-Ilib -Ispec --exclude "mocks,expectations,gems/*,spec/resources,spec/lib,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*"]
t.rcov_opts << %[--no-html --aggregate coverage.data]
t.pattern = "spec/**/*_spec.rb"
end
if RUBY_VERSION == '1.9.1'
Cucumber::Rake::Task.new :features do |t|
t.cucumber_opts = %w{--format progress}
end
task :default => [:spec, :features]
else
Cucumber::Rake::Task.new :features do |t|
t.rcov = true
t.rcov_opts = %[-Ilib -Ispec --exclude "mocks,expectations,gems/*,features,spec/ruby_forker,spec/rspec,spec/resources,spec/lib,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*"]
t.rcov_opts << %[--text-report --sort coverage --aggregate coverage.data]
t.cucumber_opts = %w{--format progress}
end
task :default => [:rcov, :features]
end
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "rspec-core #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
Jump to Line
Something went wrong with that request. Please try again.