Permalink
Browse files

Namespace doc tasks

  • Loading branch information...
1 parent e6c5b04 commit 7c1af68aa7b3f4213853071a94d2b58a9b04917e @sferik sferik committed Sep 6, 2011
Showing with 10 additions and 8 deletions.
  1. +9 −7 Rakefile
  2. +1 −1 multi_json.gemspec
View
@@ -13,11 +13,13 @@ RSpec::Core::RakeTask.new(:spec)
task :default => :spec
task :test => :spec
-require 'rdoc/task'
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "multi_json #{MultiJson::VERSION}"
- rdoc.rdoc_files.include('README.md')
- rdoc.rdoc_files.include('LICENSE.md')
- rdoc.rdoc_files.include('lib/**/*.rb')
+namespace :doc do
+ require 'rdoc/task'
+ require File.expand_path('../lib/multi_json/version', __FILE__)
+ RDoc::Task.new do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "multi_json #{MultiJson::VERSION}"
+ rdoc.main = 'README.md'
+ rdoc.rdoc_files.include('README.md', 'LICENSE.md', 'lib/**/*.rb')
+ end
end
View
@@ -3,7 +3,7 @@ require File.expand_path("../lib/multi_json/version", __FILE__)
Gem::Specification.new do |gem|
gem.add_development_dependency 'rake', '~> 0.9'
- gem.add_development_dependency 'rdoc', '3.5.1'
+ gem.add_development_dependency 'rdoc', '~> 3.9'
gem.add_development_dependency 'rspec', '~> 2.6'
gem.add_development_dependency 'simplecov', '~> 0.4'
gem.authors = ["Michael Bleigh", "Josh Kalderimis", "Erik Michaels-Ober"]

0 comments on commit 7c1af68

Please sign in to comment.