Rakefile in simple-navigation-3.0.0 vs Rakefile in simple-navigation-3.0.1
- old
+ new
@@ -1,23 +1,21 @@
require 'rake'
-require 'spec/rake/spectask'
+require 'rspec/core/rake_task'
require 'rake/rdoctask'
desc 'Default: run specs.'
task :default => :spec
desc 'Run the specs'
-Spec::Rake::SpecTask.new(:spec) do |t|
- t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
- t.spec_files = FileList['spec/**/*_spec.rb']
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = ['--colour --format progress']
end
namespace :spec do
desc "Run all specs with RCov"
- Spec::Rake::SpecTask.new(:rcov) do |t|
- t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
- t.spec_files = FileList['spec/**/*_spec.rb']
+ RSpec::Core::RakeTask.new(:rcov) do |t|
+ t.rspec_opts = ['--colour --format progress']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,/Users/']
end
end
@@ -36,10 +34,10 @@
gemspec.name = "simple-navigation"
gemspec.summary = "simple-navigation is a ruby library for creating navigations (with multiple levels) for your Rails2, Rails3, Sinatra or Padrino application."
gemspec.email = "andreas.schacke@gmail.com"
gemspec.homepage = "http://github.com/andi/simple-navigation"
gemspec.description = "With the simple-navigation gem installed you can easily create multilevel navigations for your Rails, Sinatra or Padrino applications. The navigation is defined in a single configuration file. It supports automatic as well as explicit highlighting of the currently active navigation through regular expressions."
- gemspec.add_development_dependency('rspec', '>= 1.2.8')
+ gemspec.add_development_dependency('rspec', '>= 2.0.1')
gemspec.add_dependency('activesupport', '>= 2.3.2')
gemspec.authors = ["Andi Schacke"]
gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
gemspec.files = FileList["[A-Z]*", "{lib,spec,rails,generators}/**/*"] - FileList["**/*.log"]
gemspec.rubyforge_project = 'andi'