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:
parent
4b3eaeddb3
commit
0d2e8f6af2
1 changed files with 0 additions and 23 deletions
23
Rakefile
23
Rakefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue