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

clean up Rakefile

This commit is contained in:
David Chelimsky 2009-06-29 17:47:05 -04:00
parent 4b3eaeddb3
commit 0d2e8f6af2

View file

@ -19,7 +19,6 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'spec/rake/spectask'
task :spec do
system <<-COMMANDS
cd ../core &&
@ -40,30 +39,8 @@ task :spec do
COMMANDS
end
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end
task :default => :spec
require 'rake/rdoctask'
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-meta #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
namespace :git do
[:status, :pull, :push, :reset].each do |key|
command = key == :reset ? "reset --hard" : key.to_s