Rakefile in ar_default_values-0.4.0 vs Rakefile in ar_default_values-0.5.0

- old
+ new

@@ -1,23 +1,15 @@ -# encoding: utf-8 +begin + require 'bundler/setup' +rescue LoadError + puts 'You must `gem install bundler` and `bundle install` to run rake tasks' +end require 'bundler/gem_tasks' - require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new(:spec) -RSpec::Core::RakeTask.new(:rcov) do |spec| - spec.pattern = 'spec/**/*_spec.rb' - spec.rcov = true -end +APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__) +load 'rails/tasks/engine.rake' -task :default => :spec +RSpec::Core::RakeTask.new(:spec) -require 'rdoc/task' -Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" - - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "ar_default_values #{version}" - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') -end +task default: :spec