lib/headhunter/css_validator.rb in headhunter-0.0.2 vs lib/headhunter/css_validator.rb in headhunter-0.0.5

- old
+ new

@@ -1,9 +1,9 @@ require 'net/http' require 'rexml/document' -class Headhunter +module Headhunter class CssValidator def initialize(stylesheets) @profile = 'css3' # TODO: Option for profile css1 and css21 @stylesheets = stylesheets @messages_per_stylesheet = {} @@ -56,11 +56,9 @@ @messages_per_stylesheet[file] << "#{error_line_prefix}: line #{e.elements['m:line'].text}: #{e.elements['m:message'].get_text.value.strip}\n" end end def fetch(path) # TODO: Move to Headhunter! - log.puts(path) - loc = path begin open(loc).read rescue Errno::ENOENT