Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: 2.0.0.a3
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (45 sloc) 1.79 kB
require 'rubygems'
require 'rake'
$:.unshift File.expand_path(File.join(File.dirname(__FILE__),'lib'))
require 'rspec/mocks/version'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rspec-mocks"
gem.version = Rspec::Mocks::Version::STRING
gem.summary = "rspec-mocks"
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
gem.homepage = "http://github.com/rspec/mocks"
gem.authors = ["David Chelimsky", "Chad Humphries"]
gem.add_development_dependency('rspec-core', ">= #{Rspec::Mocks::Version::STRING}")
gem.add_development_dependency('rspec-expectations', ">= #{Rspec::Mocks::Version::STRING}")
gem.add_development_dependency('mocha')
gem.add_development_dependency('flexmock')
gem.add_development_dependency('rr')
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
begin
require 'rspec/core/rake_task'
Rspec::Core::RakeTask.new(:spec)
Rspec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov = true
spec.rcov_opts = %[--exclude "core,expectations,gems/*,spec/resources,spec/spec,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
end
rescue LoadError
puts "Rspec core or one of its dependencies is not installed. Install it with: gem install rspec-meta"
end
task :clobber do
rm_rf 'pkg'
end
task :default => [:check_dependencies, :spec]
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "rspec-mocks #{Rspec::Mocks::Version::STRING}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
Jump to Line
Something went wrong with that request. Please try again.