2009-06-29 12:18:55 -04:00
|
|
|
require 'rubygems'
|
2010-01-24 21:53:51 -05:00
|
|
|
gem 'jeweler', ">= 1.4.0"
|
2009-06-29 12:18:55 -04:00
|
|
|
require 'rake'
|
2009-09-26 20:12:51 -04:00
|
|
|
require 'fileutils'
|
|
|
|
require 'pathname'
|
2009-06-29 12:18:55 -04:00
|
|
|
|
2009-11-07 09:49:52 -05:00
|
|
|
$:.unshift File.expand_path(File.join(File.dirname(__FILE__),'lib'))
|
|
|
|
|
2010-01-19 09:12:13 -05:00
|
|
|
require 'rspec/version'
|
2009-11-07 09:49:52 -05:00
|
|
|
|
2009-06-29 12:18:55 -04:00
|
|
|
begin
|
2009-11-07 09:49:52 -05:00
|
|
|
require 'jeweler'
|
|
|
|
Jeweler::Tasks.new do |gem|
|
2010-01-19 09:12:13 -05:00
|
|
|
gem.name = "rspec"
|
2010-01-24 21:53:51 -05:00
|
|
|
gem.version = Rspec::Version::STRING
|
2010-02-21 17:22:18 -05:00
|
|
|
gem.summary = "rspec-#{Rspec::Version::STRING}"
|
|
|
|
gem.description = "Meta-gem that depends on the other rspec gems"
|
2009-11-07 09:49:52 -05:00
|
|
|
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
|
|
|
|
gem.homepage = "http://github.com/rspec/meta"
|
|
|
|
gem.authors = ["David Chelimsky", "Chad Humphries"]
|
2010-02-21 17:22:18 -05:00
|
|
|
gem.rubyforge_project = "rspec"
|
2010-02-27 16:10:35 -05:00
|
|
|
gem.add_dependency "rspec-core", Rspec::Version::STRING
|
|
|
|
gem.add_dependency "rspec-expectations", Rspec::Version::STRING
|
|
|
|
gem.add_dependency "rspec-mocks", Rspec::Version::STRING
|
2010-02-21 17:41:32 -05:00
|
|
|
gem.post_install_message = <<-EOM
|
|
|
|
#{"*"*50}
|
|
|
|
|
|
|
|
Thank you for installing #{gem.summary}
|
|
|
|
|
2010-03-01 21:45:25 -05:00
|
|
|
This is beta software. If you are looking
|
|
|
|
for a supported production release, please
|
|
|
|
"gem install rspec" (without --pre).
|
2010-02-21 17:41:32 -05:00
|
|
|
|
|
|
|
#{"*"*50}
|
|
|
|
EOM
|
2009-11-07 09:49:52 -05:00
|
|
|
end
|
2009-06-29 12:18:55 -04:00
|
|
|
rescue LoadError
|
|
|
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
|
|
|
end
|
|
|
|
|
2009-09-21 23:10:37 -04:00
|
|
|
task :clobber do
|
|
|
|
rm_rf 'pkg'
|
|
|
|
end
|
|
|
|
|
2009-11-07 09:57:27 -05:00
|
|
|
task :default => [:check_dependencies]
|