lib/savon.rb in savon-0.7.4 vs lib/savon.rb in savon-0.7.5
- old
+ new
@@ -1,30 +1,30 @@
module Savon
- # Supported SOAP versions.
- SOAPVersions = [1, 2]
-
- # SOAP xs:dateTime format.
- SOAPDateTimeFormat = "%Y-%m-%dT%H:%M:%SZ"
-
- # SOAP xs:dateTime Regexp.
- SOAPDateTimeRegexp = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/
-
# Raised in case of an HTTP error.
class HTTPError < StandardError; end
# Raised in case of a SOAP fault.
class SOAPFault < StandardError; end
end
# standard libs
-stdlibs = %w(logger net/https openssl base64 digest/sha1 rexml/document)
-stdlibs.each { |stdlib| require stdlib }
+require "logger"
+require "net/https"
+require "base64"
+require "digest/sha1"
+require "rexml/document"
-# gems
-gems = %w(builder crack/xml)
-gems.each { |gem| require gem }
+# gem dependencies
+require "builder"
+require "crack/xml"
# core files
-files = %w(core_ext wsse soap request response wsdl_stream wsdl client)
-files.each { |file| require "savon/#{file}" }
\ No newline at end of file
+require "savon/core_ext"
+require "savon/wsse"
+require "savon/soap"
+require "savon/request"
+require "savon/response"
+require "savon/wsdl_stream"
+require "savon/wsdl"
+require "savon/client"