Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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 http://floehopper.lighthouseapp.com/projects/22289/tickets/51.
  • Loading branch information...
commit ae8678ef95408c9fb4701667e1268097e0808774 1 parent b0dc908
@floehopper floehopper authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
View
6 Rakefile
@@ -70,7 +70,11 @@ Rake::RDocTask.new('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
task.rdoc_files.include(
'README',
'RELEASE',
Please sign in to comment.
Something went wrong with that request. Please try again.