lib/wombat/processing/parser.rb in wombat-2.1.1 vs lib/wombat/processing/parser.rb in wombat-2.1.2
- old
+ new
@@ -17,13 +17,10 @@
module Parser
attr_accessor :mechanize, :context, :response_code, :page
def initialize
@mechanize = Mechanize.new
- end
-
- def set_proxy(host, port)
- @mechanize.set_proxy host, port
+ @mechanize.set_proxy(*Wombat.proxy_args) if Wombat.proxy_args
end
def parse(metadata)
@context = parser_for metadata
\ No newline at end of file