Skip to content
Browse files

The RDoc template incorporating Google Analytics isn't distributed in…

… the gem (because it is only used when publishing the RDoc to Rubyforge), so we should ensure that the rdoc rake task still works when the custom template is not available. See
  • Loading branch information...
1 parent b0dc908 commit ae8678ef95408c9fb4701667e1268097e0808774 @floehopper floehopper committed Jul 24, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
6 Rakefile
@@ -70,7 +70,11 @@'rdoc') do |task|
task.main = 'README'
task.title = "Mocha #{Mocha::VERSION}"
task.rdoc_dir = 'doc'
- task.template = File.expand_path(File.join(File.dirname(__FILE__), "templates", "html_with_google_analytics"))
+ template = File.expand_path(File.join(File.dirname(__FILE__), "templates", "html_with_google_analytics.rb"))
+ if File.exist?(template)
+ puts "*** Using RDoc template incorporating Google Analytics"
+ task.template = template
+ end

0 comments on commit ae8678e

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