Skip to content

Commit

Permalink
Don't make yard a runtime dependency via rake
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Jun 26, 2013
1 parent 5d95ac6 commit 8e58636
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ task :test => :spec
task :default => :spec

namespace :doc do
require 'yard'
YARD::Rake::YardocTask.new do |task|
task.files = ['README.md', 'LICENSE.md', 'lib/**/*.rb']
task.options = [
'--output-dir', 'doc/yard',
'--markup', 'markdown',
]
begin
require 'yard'
YARD::Rake::YardocTask.new do |task|
task.files = ['README.md', 'LICENSE.md', 'lib/**/*.rb']
task.options = [
'--output-dir', 'doc/yard',
'--markup', 'markdown',
]
end
rescue LoadError
end
end

0 comments on commit 8e58636

Please sign in to comment.