Rakefile in formtastic-3.1.0 vs Rakefile in formtastic-3.1.1

- old
+ new

@@ -1,9 +1,9 @@ # encoding: utf-8 require 'bundler/setup' require 'appraisal' -require 'rdoc/task' +require 'yard' require 'rspec/core/rake_task' Bundler::GemHelper.install_tasks desc 'Default: run unit specs.' @@ -12,16 +12,13 @@ else task :default => :spec end desc 'Generate documentation for the formtastic plugin.' -Rake::RDocTask.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'Formtastic' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README.textile') - rdoc.rdoc_files.include('lib/**/*.rb') +YARD::Rake::YardocTask.new(:yard) do |t| + end +task doc: :yard desc 'Test the formtastic plugin.' RSpec::Core::RakeTask.new('spec') do |t| t.pattern = FileList['spec/**/*_spec.rb'] end