Browse Source

Remove deprecated Kernel#quietly calls

Thibaut 11 years ago
parent
commit
e0556365a8
3 changed files with 3 additions and 3 deletions
  1. 1 1
      lib/docs/core/filter.rb
  2. 1 1
      lib/docs/core/parser.rb
  3. 1 1
      lib/docs/core/scraper.rb

+ 1 - 1
lib/docs/core/filter.rb

@@ -68,7 +68,7 @@ module Docs
 
     def parse_html(html)
       warn "#{self.class.name} is re-parsing the document" unless ENV['RACK_ENV'] == 'test'
-      quietly { super }
+      super
     end
   end
 end

+ 1 - 1
lib/docs/core/parser.rb

@@ -5,7 +5,7 @@ module Docs
     end
 
     def html
-      @html ||= quietly { document? ? parse_as_document : parse_as_fragment }
+      @html ||= document? ? parse_as_document : parse_as_fragment
     end
 
     private

+ 1 - 1
lib/docs/core/scraper.rb

@@ -138,7 +138,7 @@ module Docs
 
     def process_response(response)
       data = {}
-      quietly { pipeline.call(parse(response.body), pipeline_context(response), data) }
+      pipeline.call(parse(response.body), pipeline_context(response), data)
       data
     end