Sha256: f90b9eededed594f50831404b5195885b855d4cf4dbaf3d4f68cd242bf92aa08
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
#require 'rubygems' require 'cgi' require 'uri' require 'openssl' require 'net/https' require 'time' require 'date' require 'hmac' require 'hmac-sha2' require 'base64' require 'builder' require "rexml/document" require 'roxml' $:.unshift(File.dirname(__FILE__)) require 'mws/lib/extensions' require 'builder' #require_library_or_gem 'mime/types', 'mime-types' unless defined? MIME::Types require 'mws/lib/memoizable' require 'mws/request/feed_builder' require 'mws/request/feed' require 'mws/request/report' require 'mws/request/products' require 'mws/request/fulfillment' require 'mws/request/orders' require 'mws/response/response' Dir.glob(File.join(File.dirname(__FILE__), 'mws/response/**/*.rb')).each {|f| require f } require 'mws/base' require 'mws/exceptions' require 'mws/connection' require 'mws/connection/request_builder' require 'mws/authentication' require 'mws/authentication/query_string' require 'mws/authentication/signature' Amazon::MWS::Base.class_eval do include Amazon::MWS::Feed include Amazon::MWS::Report include Amazon::MWS::Orders include Amazon::MWS::Products include Amazon::MWS::Fulfillment end #AWS = Amazon #require_library_or_gem 'xmlsimple', 'xml-simple' unless defined? XmlSimple gem 'xml-simple' =begin # If libxml is installed, we use the FasterXmlSimple library, that provides most of the functionality of XmlSimple # except it uses the xml/libxml library for xml parsing (rather than REXML). If libxml isn't installed, we just fall back on # XmlSimple. AWS::S3::Parsing.parser = begin require_library_or_gem 'xml/libxml' # Older version of libxml aren't stable (bus error when requesting attributes that don't exist) so we # have to use a version greater than '0.3.8.2'. raise LoadError unless XML::Parser::VERSION > '0.3.8.2' $:.push(File.join(File.dirname(__FILE__), '..', '..', 'support', 'faster-xml-simple', 'lib')) require_library_or_gem 'faster_xml_simple' FasterXmlSimple rescue LoadError XmlSimple end =end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amazon-mws-plus-0.1.3 | lib/amazon/mws.rb |