mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
24 lines
454 B
Ruby
24 lines
454 B
Ruby
require "rubygems"
|
|
require "bundler/setup"
|
|
|
|
require "bundler"
|
|
Bundler::GemHelper.install_tasks
|
|
|
|
task :default do
|
|
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
|
|
Rake::Task['spec'].invoke
|
|
else
|
|
Rake::Task['appraise'].invoke
|
|
end
|
|
end
|
|
|
|
task :appraise do
|
|
exec 'appraisal install && appraisal rake'
|
|
end
|
|
|
|
desc "Run all awesome_print gem specs"
|
|
task :spec do
|
|
# Run plain rspec command without RSpec::Core::RakeTask overrides.
|
|
exec "rspec -c spec"
|
|
end
|
|
|