2016-11-08 00:07:03 -05:00
|
|
|
require 'rubygems'
|
|
|
|
require 'bundler/setup'
|
2014-12-30 13:09:18 -05:00
|
|
|
|
2016-11-08 00:07:03 -05:00
|
|
|
require 'bundler'
|
2011-11-08 15:56:04 -05:00
|
|
|
Bundler::GemHelper.install_tasks
|
2012-09-05 20:52:22 -04:00
|
|
|
|
2014-12-30 13:09:18 -05:00
|
|
|
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
|
2012-09-05 20:52:22 -04:00
|
|
|
|
2016-11-08 00:07:03 -05:00
|
|
|
desc 'Run all awesome_print gem specs'
|
2012-09-05 20:52:22 -04:00
|
|
|
task :spec do
|
|
|
|
# Run plain rspec command without RSpec::Core::RakeTask overrides.
|
2016-11-08 00:07:03 -05:00
|
|
|
exec 'rspec -c spec'
|
2012-09-05 20:52:22 -04:00
|
|
|
end
|
|
|
|
|