Sha256: ced4b561293bf11fdd6163f8abcdb2cac15d9a4884d9ddaebb81aa064bb8ad01

Contents?: true

Size: 570 Bytes

Versions: 5

Compression:

Stored size: 570 Bytes

Contents

require 'singleton'

module S3Multipart
  class Config
    include Singleton
    attr_accessor :s3_access_key, :s3_secret_key, :bucket_name, :revision

    def self.configure(block)
      block.call(self.instance)
      check_for_breaking_changes
    end

    def self.check_for_breaking_changes
      version = S3Multipart::VERSION
      if self.instance.revision != version
        raise ArgumentError, "Breaking changes were made to the S3_Multipart gem:\n #{BREAKING_CHANGES[version.to_sym]}\n See the Readme for additional information."
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
s3_multipart-0.0.10.6 lib/s3_multipart/config.rb
s3_multipart-0.0.10.5 lib/s3_multipart/config.rb
s3_multipart-0.0.10.4 lib/s3_multipart/config.rb
s3_multipart-0.0.10.3 lib/s3_multipart/config.rb
s3_multipart-0.0.10.2 lib/s3_multipart/config.rb