lib/headhunter/runner.rb in headhunter-0.1.3 vs lib/headhunter/runner.rb in headhunter-0.1.4

- old
+ new

@@ -11,25 +11,25 @@ @temporary_assets = [] precompile_assets! @html_validator = HtmlValidator.new - @css_validator = CssValidator.new(stylesheets) @css_hunter = CssHunter.new(stylesheets) + @css_validator = CssValidator.new(stylesheets) @css_validator.process! end def process!(url, html) @html_validator.process!(url, html) @css_hunter.process!(url, html) end def clean_up! - log.print "Headhunter is removing precompiled assets...".yellow + print "Headhunter is removing precompiled assets...".yellow remove_assets! - log.puts " done!".yellow + puts " done!".yellow end def report @html_validator.prepare_results_html @@ -39,19 +39,19 @@ end private def precompile_assets! - log.print "Headhunter is removing eventually existing assets...".yellow + print "Headhunter is removing eventually existing assets...".yellow remove_assets! # Remove existing assets! This seems to be necessary to make sure that they don't exist twice, see http://stackoverflow.com/questions/20938891 sleep 1 - log.puts " done!".yellow + puts " done!".yellow sleep 1 - log.print "Headhunter is precompiling assets...".yellow + print "Headhunter is precompiling assets...".yellow system 'rake assets:precompile HEADHUNTER=false &> /dev/null' - log.puts " done!\n".yellow + puts " done!\n".yellow end def remove_assets! FileUtils.rm_r ASSETS_PATH if File.exist?(ASSETS_PATH) end