aws-sdk-core 2.1.4 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apis/devicefarm/2015-06-23/api-2.json +1582 -0
- data/apis/devicefarm/2015-06-23/paginators-1.json +64 -0
- data/apis/dynamodb/2012-08-10/api-2.json +38 -6
- data/apis/streams.dynamodb/2012-08-10/api-2.json +436 -0
- data/lib/aws-sdk-core.rb +2 -0
- data/lib/aws-sdk-core/client_stubs.rb +2 -2
- data/lib/aws-sdk-core/devicefarm.rb +5 -0
- data/lib/aws-sdk-core/dynamodbstreams.rb +4 -0
- data/lib/aws-sdk-core/json.rb +7 -5
- data/lib/aws-sdk-core/plugins/stub_responses.rb +1 -0
- data/lib/aws-sdk-core/version.rb +1 -1
- data/lib/seahorse/client/plugins/response_target.rb +5 -2
- metadata +8 -3
data/lib/aws-sdk-core.rb
CHANGED
@@ -8,10 +8,10 @@ module Aws
|
|
8
8
|
# behavior.
|
9
9
|
module ClientStubs
|
10
10
|
|
11
|
-
|
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])
|
data/lib/aws-sdk-core/json.rb
CHANGED
@@ -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
|
-
|
48
|
-
[JSON, JSON::ParserError]
|
49
|
+
[JSON, {}, JSON::ParserError]
|
49
50
|
end
|
50
51
|
|
51
52
|
end
|
52
53
|
|
53
|
-
|
54
|
+
# @api private
|
55
|
+
ENGINE, ENGINE_DUMP_OPTIONS, ENGINE_ERROR = oj_engine || json_engine
|
54
56
|
|
55
57
|
end
|
56
58
|
end
|
data/lib/aws-sdk-core/version.rb
CHANGED
@@ -12,8 +12,11 @@ module Seahorse
|
|
12
12
|
class Handler < Client::Handler
|
13
13
|
|
14
14
|
def call(context)
|
15
|
-
|
16
|
-
|
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
|
+
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-
|
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.
|
400
|
+
rubygems_version: 2.5.0
|
396
401
|
signing_key:
|
397
402
|
specification_version: 4
|
398
403
|
summary: AWS SDK for Ruby - Core
|