diff --git a/lib/fog/xml.rb b/lib/fog/xml.rb index 1816163..b6c9c9c 100644 --- a/lib/fog/xml.rb +++ b/lib/fog/xml.rb @@ -1,15 +1,16 @@ -require "fog/xml/version" +require "fog/core" require "nokogiri" +require File.expand_path("../xml/version", __FILE__) module Fog - autoload :ToHashDocument, "fog/to_hash_document" + autoload :ToHashDocument, File.expand_path("../to_hash_document", __FILE__) module XML - autoload :SAXParserConnection, "fog/xml/sax_parser_connection" - autoload :Connection, "fog/xml/connection" + autoload :SAXParserConnection, File.expand_path("../xml/sax_parser_connection", __FILE__) + autoload :Connection, File.expand_path("../xml/connection", __FILE__) end module Parsers - autoload :Base, "fog/parsers/base" + autoload :Base, File.expand_path("../parsers/base", __FILE__) end end diff --git a/lib/fog/xml/sax_parser_connection.rb b/lib/fog/xml/sax_parser_connection.rb index 96faa3f..99a3bed 100644 --- a/lib/fog/xml/sax_parser_connection.rb +++ b/lib/fog/xml/sax_parser_connection.rb @@ -1,5 +1,3 @@ -require "fog/core/connection" - module Fog module XML class SAXParserConnection < ::Fog::Core::Connection