aws-sdk-core 2.1.4 → 2.1.5

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.
@@ -33,9 +33,11 @@ module Aws
33
33
  CognitoSync
34
34
  ConfigService
35
35
  DataPipeline
36
+ DeviceFarm
36
37
  DirectConnect
37
38
  DirectoryService
38
39
  DynamoDB
40
+ DynamoDBStreams
39
41
  EC2
40
42
  ECS
41
43
  EFS
@@ -8,10 +8,10 @@ module Aws
8
8
  # behavior.
9
9
  module ClientStubs
10
10
 
11
- def initialize(*args)
11
+ # @api private
12
+ def setup_stubbing
12
13
  @stubs = {}
13
14
  @stub_mutex = Mutex.new
14
- super
15
15
  if Hash === @config.stub_responses
16
16
  @config.stub_responses.each do |operation_name, stubs|
17
17
  apply_stubs(operation_name, Array === stubs ? stubs : [stubs])
@@ -0,0 +1,5 @@
1
+ Aws.add_service(:DeviceFarm, {
2
+ api: "#{Aws::API_DIR}/devicefarm/2015-06-23/api-2.json",
3
+ docs: "#{Aws::API_DIR}/devicefarm/2015-06-23/docs-2.json",
4
+ paginators: "#{Aws::API_DIR}/devicefarm/2015-06-23/paginators-1.json",
5
+ })
@@ -0,0 +1,4 @@
1
+ Aws.add_service(:DynamoDBStreams, {
2
+ api: "#{Aws::API_DIR}/streams.dynamodb/2012-08-10/api-2.json",
3
+ docs: "#{Aws::API_DIR}/streams.dynamodb/2012-08-10/docs-2.json",
4
+ })
@@ -1,3 +1,5 @@
1
+ require 'json'
2
+
1
3
  module Aws
2
4
  # @api private
3
5
  module Json
@@ -31,26 +33,26 @@ module Aws
31
33
  end
32
34
 
33
35
  def dump(value)
34
- ENGINE.dump(value)
36
+ ENGINE.dump(value, ENGINE_DUMP_OPTIONS)
35
37
  end
36
38
 
37
39
  private
38
40
 
39
41
  def oj_engine
40
42
  require 'oj'
41
- [Oj, Oj::ParseError]
43
+ [Oj, { mode: :compat }, Oj::ParseError]
42
44
  rescue LoadError
43
45
  false
44
46
  end
45
47
 
46
48
  def json_engine
47
- require 'json'
48
- [JSON, JSON::ParserError]
49
+ [JSON, {}, JSON::ParserError]
49
50
  end
50
51
 
51
52
  end
52
53
 
53
- ENGINE, ENGINE_ERROR = oj_engine || json_engine
54
+ # @api private
55
+ ENGINE, ENGINE_DUMP_OPTIONS, ENGINE_ERROR = oj_engine || json_engine
54
56
 
55
57
  end
56
58
  end
@@ -30,6 +30,7 @@ module Aws
30
30
 
31
31
  def after_initialize(client)
32
32
  if client.config.stub_responses
33
+ client.setup_stubbing
33
34
  client.handlers.remove(RetryErrors::Handler)
34
35
  end
35
36
  end
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.1.4'
2
+ VERSION = '2.1.5'
3
3
  end
@@ -12,8 +12,11 @@ module Seahorse
12
12
  class Handler < Client::Handler
13
13
 
14
14
  def call(context)
15
- target = context.params.delete(:response_target)
16
- target ||= context[:response_target]
15
+ if context.params.is_a?(Hash) && context.params[:response_target]
16
+ target = context.params.delete(:response_target)
17
+ else
18
+ target = context[:response_target]
19
+ end
17
20
  add_event_listeners(context, target) if target
18
21
  @handler.call(context)
19
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
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: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -59,6 +59,8 @@ files:
59
59
  - apis/config/2014-11-12/paginators-1.json
60
60
  - apis/datapipeline/2012-10-29/api-2.json
61
61
  - apis/datapipeline/2012-10-29/paginators-1.json
62
+ - apis/devicefarm/2015-06-23/api-2.json
63
+ - apis/devicefarm/2015-06-23/paginators-1.json
62
64
  - apis/directconnect/2012-10-25/api-2.json
63
65
  - apis/directconnect/2012-10-25/paginators-1.json
64
66
  - apis/ds/2015-04-16/api-2.json
@@ -145,6 +147,7 @@ files:
145
147
  - apis/ssm/2014-11-06/api-2.json
146
148
  - apis/storagegateway/2013-06-30/api-2.json
147
149
  - apis/storagegateway/2013-06-30/paginators-1.json
150
+ - apis/streams.dynamodb/2012-08-10/api-2.json
148
151
  - apis/sts/2011-06-15/api-2.json
149
152
  - apis/support/2013-04-15/api-2.json
150
153
  - apis/support/2013-04-15/paginators-1.json
@@ -191,10 +194,12 @@ files:
191
194
  - lib/aws-sdk-core/credentials.rb
192
195
  - lib/aws-sdk-core/datapipeline.rb
193
196
  - lib/aws-sdk-core/deprecations.rb
197
+ - lib/aws-sdk-core/devicefarm.rb
194
198
  - lib/aws-sdk-core/directconnect.rb
195
199
  - lib/aws-sdk-core/directoryservice.rb
196
200
  - lib/aws-sdk-core/dynamodb.rb
197
201
  - lib/aws-sdk-core/dynamodb/attribute_value.rb
202
+ - lib/aws-sdk-core/dynamodbstreams.rb
198
203
  - lib/aws-sdk-core/eager_loader.rb
199
204
  - lib/aws-sdk-core/ec2.rb
200
205
  - lib/aws-sdk-core/ecs.rb
@@ -392,7 +397,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
392
397
  version: '0'
393
398
  requirements: []
394
399
  rubyforge_project:
395
- rubygems_version: 2.4.6
400
+ rubygems_version: 2.5.0
396
401
  signing_key:
397
402
  specification_version: 4
398
403
  summary: AWS SDK for Ruby - Core