2014-12-30 13:09:18 -05:00
|
|
|
require "rubygems"
|
|
|
|
require "bundler/setup"
|
|
|
|
|
2012-09-05 20:52:22 -04: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
|
|
|
|
|
|
|
desc "Run all awesome_print gem specs"
|
|
|
|
task :spec do
|
|
|
|
# Run plain rspec command without RSpec::Core::RakeTask overrides.
|
|
|
|
exec "rspec -c spec"
|
|
|
|
end
|
|
|
|
|