Sha256: 54b87d6b064ee46517c417f3f3471f8d528a2bb055e6e794b376a9b0f674426b

Contents?: true

Size: 1.71 KB

Versions: 25

Compression:

Stored size: 1.71 KB

Contents

require 'base64'
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' 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' 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_library_or_gem 'faster_xml_simple' 
    FasterXmlSimple
  rescue LoadError
    XmlSimple
  end

Version data entries

25 entries across 25 versions & 8 rubygems

Version Path
croaker-aws-s3-0.5.2.20090127001 lib/aws/s3.rb
croaker-aws-s3-0.5.2.20090127002 lib/aws/s3.rb
isaacfeliu-aws-s3-0.4.0 lib/aws/s3.rb
isaacfeliu-aws-s3-0.4.1 lib/aws/s3.rb
ryanking-aws-s3-0.5.1.200811101723 lib/aws/s3.rb
sml-aws-s3-0.5.1.1225474505 lib/aws/s3.rb
sml-aws-s3-0.5.1.1226533772 lib/aws/s3.rb
stephenh-s3fsr-1.0 lib/aws-matt/s3.rb
stephenh-s3fsr-1.1 lib/aws-matt/s3.rb
stephenh-s3fsr-1.2 lib/aws-matt/s3.rb
stephenh-s3fsr-1.3 lib/aws-matt/s3.rb
s3fsr-1.12 lib/aws-matt/s3.rb
s3fsr-1.11 lib/aws-matt/s3.rb
s3fsr-1.10 lib/aws-matt/s3.rb
alancse-aws-s3-0.4.1 lib/aws/s3.rb
s3fsr-1.9 lib/aws-matt/s3.rb
s3fsr-1.8 lib/aws-matt/s3.rb
s3fsr-1.7 lib/aws-matt/s3.rb
s3fsr-1.6 lib/aws-matt/s3.rb
s3fsr-1.5 lib/aws-matt/s3.rb