Rakefile in simple-navigation-3.3.1 vs Rakefile in simple-navigation-3.3.2
- old
+ new
@@ -1,8 +1,8 @@
require 'rake'
require 'rspec/core/rake_task'
-require 'rake/rdoctask'
+require 'rdoc/task'
desc 'Default: run specs.'
task :default => :spec
desc 'Run the specs'
@@ -18,11 +18,11 @@
t.rcov_opts = ['--exclude', 'spec,/Users/']
end
end
desc 'Generate documentation for the simple_navigation plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
+RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'SimpleNavigation'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
@@ -42,11 +42,8 @@
gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
gemspec.files = FileList["[A-Z]*", "{lib,spec,rails,generators}/**/*"] - FileList["**/*.log"]
gemspec.rubyforge_project = 'andi'
end
Jeweler::GemcutterTasks.new
- Jeweler::RubyforgeTasks.new do |rubyforge|
- rubyforge.doc_task = "rdoc"
- end
rescue LoadError => e
puts "Jeweler not available (#{e}). Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end