lib/sniff/rake_tasks.rb in sniff-0.10.1 vs lib/sniff/rake_tasks.rb in sniff-0.11.0

- old
+ new

@@ -72,14 +72,14 @@ require 'rocco' require 'rocco/tasks' directory 'docs/' - Rocco::make 'docs/', "lib/#{gemname}/carbon_model.rb" + Rocco::make 'docs/', "lib/#{gemname}/impact_model.rb" task :google_analyzed_rocco => ['docs/', :rocco] do - source = File.read "docs/lib/#{gemname}/carbon_model.html" + source = File.read "docs/lib/#{gemname}/impact_model.html" unless source =~ /_gaq/ source.sub! '</head>', <<-HTML <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1667526-20']); @@ -109,22 +109,22 @@ } } </style> </head> HTML - File.open "docs/lib/#{gemname}/carbon_model.html", 'w' do |f| + File.open "docs/lib/#{gemname}/impact_model.html", 'w' do |f| f.puts source end end end desc 'Update rocco docs on gh-pages branch' task :pages => ['pages:sync', :google_analyzed_rocco] do rev = `git rev-parse --short HEAD`.strip - html = File.read "docs/lib/#{gemname}/carbon_model.html" + html = File.read "docs/lib/#{gemname}/impact_model.html" puts `git checkout gh-pages` - File.open 'carbon_model.html', 'w' do |f| + File.open 'impact_model.html', 'w' do |f| f.puts html end puts `git add *.html`