Sha256: 91147685e494f7a8526786a5235a4af781c9a57ff4cfbd98a1d64408b4bf0ede
Contents?: true
Size: 1.7 KB
Versions: 4
Compression:
Stored size: 1.7 KB
Contents
require 'cgi' require 'uri' require 'openssl' require 'digest/sha1' require 'net/https' require 'time' require 'date' require 'open-uri' $:.unshift(File.dirname(__FILE__)) require 's3/extensions' require_library_or_gem 'builder' unless defined? Builder require_library_or_gem 'mime/types', 'mime-types' unless defined? MIME::Types require 's3/base' require 's3/version' require 's3/parsing' require 's3/acl' require 's3/logging' require 's3/bittorrent' require 's3/service' require 's3/owner' require 's3/bucket' require 's3/object' require 's3/error' require 's3/exceptions' require 's3/connection' require 's3/authentication' require 's3/response' AWS::S3::Base.class_eval do include AWS::S3::Connection::Management end AWS::S3::Bucket.class_eval do include AWS::S3::Logging::Management include AWS::S3::ACL::Bucket end AWS::S3::S3Object.class_eval do include AWS::S3::ACL::S3Object include AWS::S3::BitTorrent end require_library_or_gem 'xmlsimple', 'xml-simple' unless defined? XmlSimple # 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 'faster_xml_simple' FasterXmlSimple rescue LoadError XmlSimple end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
ghazel-aws-s3-0.6.4.1 | lib/aws/s3.rb |
fmalamitsas-aws-s3-0.6.2.1254423625 | lib/aws/s3.rb |
ghazel-aws-s3-0.6.4 | lib/aws/s3.rb |
sauberia-aws-s3-0.6.2.1254423624 | lib/aws/s3.rb |