Skip to content

Commit

Permalink
Namespace doc tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Sep 6, 2011
1 parent 25889dc commit 5f8a70d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion oauth2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5f8a70d

Please sign in to comment.