lib/fog/xml.rb in fog-1.20.0 vs lib/fog/xml.rb in fog-1.21.0

- old
+ new

@@ -1,7 +1,8 @@ require "nokogiri" require "fog/core/parser" +require "fog/xml/sax_parser_connection" module Fog # @note Extracting XML components out of core is a work in progress. # @@ -13,9 +14,16 @@ # # @todo Add +require "fog/xml"+ and/or +include Fog::XML+ to providers using # its services # module XML + class Connection < Fog::XML::SAXParserConnection + def request(params, &block) + if (parser = params.delete(:parser)) + super(parser, params) + else + original_request(params) + end + end + end end end - -require "fog/xml/sax_parser_connection"