Rakefile in couch_potato-0.7.1 vs Rakefile in couch_potato-1.0.0
- old
+ new
@@ -1,15 +1,10 @@
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake'
require "rspec/core/rake_task"
-begin
- require 'rdoc/task'
-rescue LoadError
- require 'rake/rdoctask'
-end
task :default => :spec
desc "Run functional specs"
RSpec::Core::RakeTask.new(:spec_functional) do |spec|
@@ -27,25 +22,14 @@
task :spec do
if ENV['TRAVIS'] # travis handles the environments for us
Rake::Task[:spec_unit].execute
Rake::Task[:spec_functional].execute
else
- ['3_0', '3_1', '3_2'].each do |version|
+ ['3_2', '4_0'].each do |version|
Bundler.with_clean_env do
puts "Running tests with ActiveSupport #{version.sub('_', '.')}"
sh "env BUNDLE_GEMFILE=active_support_#{version} bundle install"
sh "env BUNDLE_GEMFILE=active_support_#{version} bundle exec rake spec_unit spec_functional"
end
end
end
-
-end
-
-desc 'Generate documentation'
-Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'Couch Potato'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README.md')
- rdoc.rdoc_files.include('lib/couch_potato.rb')
- rdoc.rdoc_files.include('lib/couch_potato/**/*.rb')
end