aws-sdk-s3 1.31.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +9 -4
- data/lib/aws-sdk-s3/event_streams.rb +6 -0
- metadata +4 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ece1d1cb9e02d8d6b78f9ce45c63c0eecbdf8c69
         | 
| 4 | 
            +
              data.tar.gz: 1003f9bbbcb626948c8f3b80fd91ec518e936ce9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d13ccf189e64dee11a6bc44d9f50df0d76aea4b4de939c320c4cf72e6d4ee1fa7a9551b4edc4077fe885deef42784fdbc5be25ac0339c524ebefd66971c0ae8e
         | 
| 7 | 
            +
              data.tar.gz: 3aed395b6ae2e85f9bdb2c07be56aa4a41258cec27fbcab528e55f7978315e61989ec13ba2ec71b4e1d5aaecf8578ecf7b40211bf45681f7f99e0384e409c3f5
         | 
    
        data/lib/aws-sdk-s3.rb
    CHANGED
    
    
    
        data/lib/aws-sdk-s3/client.rb
    CHANGED
    
    | @@ -195,6 +195,9 @@ module Aws::S3 | |
| 195 195 | 
             
                #     When set to `true`, the bucket name is always left in the
         | 
| 196 196 | 
             
                #     request URI and never moved to the host as a sub-domain.
         | 
| 197 197 | 
             
                #
         | 
| 198 | 
            +
                #   @option options [Proc] :input_event_stream_handler
         | 
| 199 | 
            +
                #     When an EventStream or Proc object is provided, it can be used for sending events for the event stream.
         | 
| 200 | 
            +
                #
         | 
| 198 201 | 
             
                #   @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
         | 
| 199 202 | 
             
                #     The log formatter.
         | 
| 200 203 | 
             
                #
         | 
| @@ -205,6 +208,9 @@ module Aws::S3 | |
| 205 208 | 
             
                #     The Logger instance to send log messages to.  If this option
         | 
| 206 209 | 
             
                #     is not set, logging will be disabled.
         | 
| 207 210 | 
             
                #
         | 
| 211 | 
            +
                #   @option options [Proc] :output_event_stream_handler
         | 
| 212 | 
            +
                #     When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
         | 
| 213 | 
            +
                #
         | 
| 208 214 | 
             
                #   @option options [String] :profile ("default")
         | 
| 209 215 | 
             
                #     Used when loading credentials from the shared credentials file
         | 
| 210 216 | 
             
                #     at HOME/.aws/credentials.  When not specified, 'default' is used.
         | 
| @@ -6487,13 +6493,12 @@ module Aws::S3 | |
| 6487 6493 | 
             
                #   is also supported.
         | 
| 6488 6494 | 
             
                #
         | 
| 6489 6495 | 
             
                #   `:event_stream_handler` option takes in either Proc object or
         | 
| 6490 | 
            -
                #   EventStreams::SelectObjectContentEventStream object.
         | 
| 6496 | 
            +
                #   Aws::S3::EventStreams::SelectObjectContentEventStream object.
         | 
| 6491 6497 | 
             
                #
         | 
| 6492 6498 | 
             
                #   Usage pattern a): callbacks with a block attached to #select_object_content
         | 
| 6493 6499 | 
             
                #     Example for registering callbacks for all event types and error event
         | 
| 6494 6500 | 
             
                #
         | 
| 6495 6501 | 
             
                #     client.select_object_content( # params input# ) do |stream|
         | 
| 6496 | 
            -
                #
         | 
| 6497 6502 | 
             
                #       stream.on_error_event do |event|
         | 
| 6498 6503 | 
             
                #         # catch unmodeled error event in the stream
         | 
| 6499 6504 | 
             
                #         raise event
         | 
| @@ -6513,7 +6518,7 @@ module Aws::S3 | |
| 6513 6518 | 
             
                #
         | 
| 6514 6519 | 
             
                #   Usage pattern b): pass in `:event_stream_handler` for #select_object_content
         | 
| 6515 6520 | 
             
                #
         | 
| 6516 | 
            -
                #     1) create a EventStreams::SelectObjectContentEventStream object
         | 
| 6521 | 
            +
                #     1) create a Aws::S3::EventStreams::SelectObjectContentEventStream object
         | 
| 6517 6522 | 
             
                #     Example for registering callbacks with specific events
         | 
| 6518 6523 | 
             
                #
         | 
| 6519 6524 | 
             
                #       handler = Aws::S3::EventStreams::SelectObjectContentEventStream.new
         | 
| @@ -6993,7 +6998,7 @@ module Aws::S3 | |
| 6993 6998 | 
             
                    params: params,
         | 
| 6994 6999 | 
             
                    config: config)
         | 
| 6995 7000 | 
             
                  context[:gem_name] = 'aws-sdk-s3'
         | 
| 6996 | 
            -
                  context[:gem_version] = '1. | 
| 7001 | 
            +
                  context[:gem_version] = '1.32.0'
         | 
| 6997 7002 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 6998 7003 | 
             
                end
         | 
| 6999 7004 |  | 
| @@ -37,12 +37,18 @@ module Aws::S3 | |
| 37 37 | 
             
                    @event_emitter.on(:error, Proc.new)
         | 
| 38 38 | 
             
                  end
         | 
| 39 39 |  | 
| 40 | 
            +
                  def on_initial_response_event(&block)
         | 
| 41 | 
            +
                    @event_emitter.on(:initial_response, Proc.new)
         | 
| 42 | 
            +
                  end
         | 
| 43 | 
            +
             | 
| 40 44 | 
             
                  def on_event(&block)
         | 
| 41 45 | 
             
                    on_records_event(&block)
         | 
| 42 46 | 
             
                    on_stats_event(&block)
         | 
| 43 47 | 
             
                    on_progress_event(&block)
         | 
| 44 48 | 
             
                    on_cont_event(&block)
         | 
| 45 49 | 
             
                    on_end_event(&block)
         | 
| 50 | 
            +
                    on_error_event(&block)
         | 
| 51 | 
            +
                    on_initial_response_event(&block)
         | 
| 46 52 | 
             
                  end
         | 
| 47 53 |  | 
| 48 54 | 
             
                  # @api private
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-s3
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.32.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Amazon Web Services
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2019-03- | 
| 11 | 
            +
            date: 2019-03-14 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-kms
         | 
| @@ -47,7 +47,7 @@ dependencies: | |
| 47 47 | 
             
                    version: '3'
         | 
| 48 48 | 
             
                - - ">="
         | 
| 49 49 | 
             
                  - !ruby/object:Gem::Version
         | 
| 50 | 
            -
                    version: 3. | 
| 50 | 
            +
                    version: 3.47.0
         | 
| 51 51 | 
             
              type: :runtime
         | 
| 52 52 | 
             
              prerelease: false
         | 
| 53 53 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -57,7 +57,7 @@ dependencies: | |
| 57 57 | 
             
                    version: '3'
         | 
| 58 58 | 
             
                - - ">="
         | 
| 59 59 | 
             
                  - !ruby/object:Gem::Version
         | 
| 60 | 
            -
                    version: 3. | 
| 60 | 
            +
                    version: 3.47.0
         | 
| 61 61 | 
             
            description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
         | 
| 62 62 | 
             
              This gem is part of the AWS SDK for Ruby.
         | 
| 63 63 | 
             
            email:
         |