1
0
Fork 0
mirror of https://github.com/rspec/rspec-metagem.git synced 2022-11-09 12:09:29 -05:00
rspec--rspec-metagem/Rakefile

52 lines
1.3 KiB
Text
Raw Normal View History

2009-06-29 12:18:55 -04:00
require 'rake'
require 'fileutils'
require 'pathname'
2009-06-29 12:18:55 -04:00
$:.unshift File.expand_path('../lib', __FILE__)
2009-11-07 09:49:52 -05:00
2010-01-19 08:12:13 -06: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 08:12:13 -06:00
gem.name = "rspec"
gem.version = RSpec::Version::STRING
gem.summary = "rspec-#{RSpec::Version::STRING}"
2010-02-21 16:22:18 -06:00
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 16:22:18 -06:00
gem.rubyforge_project = "rspec"
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 16:41:32 -06:00
gem.post_install_message = <<-EOM
#{"*"*50}
Thank you for installing #{gem.summary}
2010-06-14 07:55:12 -05:00
This is a meta-gem that depends on:
rspec-core
rspec-expectations
rspec-mocks
2010-02-21 16:41:32 -06: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
namespace :gem do
desc "push to gemcutter"
task :push => :build do
system "gem push pkg/rspec-#{RSpec::Version::STRING}.gem"
end
end
2009-09-21 22:10:37 -05:00
task :clobber do
rm_rf 'pkg'
end
2009-11-07 09:57:27 -05:00
task :default => [:check_dependencies]