Skip to content
Browse files

Namespace doc tasks

  • Loading branch information...
1 parent 25889dc commit 5f8a70da665c1dcb280f1b4d1972d579fe8f3fb5 @sferik sferik committed Sep 6, 2011
Showing with 10 additions and 7 deletions.
  1. +9 −6 Rakefile
  2. +1 −1 oauth2.gemspec
View
15 Rakefile
@@ -9,10 +9,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 = "oauth2 #{OAuth2::VERSION}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
+namespace :doc do
+ require 'rdoc/task'
+ require File.expand_path('../lib/oauth2/version', __FILE__)
+ RDoc::Task.new do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "oauth2 #{OAuth2::VERSION}"
+ rdoc.main = 'README.md'
+ rdoc.rdoc_files.include('README.md', 'LICENSE.md', 'lib/**/*.rb')
+ end
end
View
2 oauth2.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
gem.add_dependency 'multi_json', '~> 1.0.0'
gem.add_development_dependency 'multi_xml', '~> 0.3'
gem.add_development_dependency 'rake', '~> 0.9'
- gem.add_development_dependency 'rdoc', '~> 3.6'
+ gem.add_development_dependency 'rdoc', '~> 3.9'
gem.add_development_dependency 'rspec', '~> 2.6'
gem.add_development_dependency 'simplecov', '~> 0.4'
gem.add_development_dependency 'yard', '~> 0.7'

0 comments on commit 5f8a70d

Please sign in to comment.
Something went wrong with that request. Please try again.