aws-sdk-core 3.0.0.rc5 → 3.0.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws-sdk-core/client_stubs.rb +15 -2
- data/lib/aws-sdk-core/stubbing/protocols/rest.rb +7 -1
- data/lib/aws-sdk-core/version.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f420f0903e724c44f7482375fb93923b2e56818
|
4
|
+
data.tar.gz: ccd28da29599a07cf14b6ee3b9906f31c4de4eb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7a997afccdf132da002a4c9d66313609dfb2bb5e36f47a1cc370f9c8a1d42f9a68f936cf3978dd452b93cf1238d92415800b01a3ac986a0e80ba9f9191d6fd0
|
7
|
+
data.tar.gz: 831076478cc3d79c71409d279c33adf6c252530859e5656b8735c22ddb7dfda073a5c919a0de9d3cd93bd0d11db252d90ad0243af18d995cc31a4b845605db0d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.0.
|
1
|
+
3.0.0.rc6
|
@@ -49,8 +49,18 @@ module Aws
|
|
49
49
|
# buckets: [{ name: 'my-bucket' }]
|
50
50
|
# })
|
51
51
|
#
|
52
|
-
# client.list_buckets.buckets.map(&:name)
|
53
|
-
# #=> ['
|
52
|
+
# client.list_buckets.buckets.map(&:name)
|
53
|
+
# #=> ['my-bucket']
|
54
|
+
#
|
55
|
+
# With a Resource class {#stub_responses} on the corresponding client:
|
56
|
+
#
|
57
|
+
# s3 = Aws::S3::Resource.new(stub_responses: true)
|
58
|
+
# s3.client.stub_responses(:list_buckets, {
|
59
|
+
# buckets: [{ name: 'my-bucket' }]
|
60
|
+
# })
|
61
|
+
#
|
62
|
+
# s3.buckets.map(&:name)
|
63
|
+
# #=> ['my-bucket']
|
54
64
|
#
|
55
65
|
# Lastly, default stubs can be configured via `Aws.config`:
|
56
66
|
#
|
@@ -63,6 +73,9 @@ module Aws
|
|
63
73
|
# Aws::S3::Client.new.list_buckets.buckets.map(&:name)
|
64
74
|
# #=> ['my-bucket']
|
65
75
|
#
|
76
|
+
# Aws::S3::Resource.new.buckets.map(&:name)
|
77
|
+
# #=> ['my-bucket']
|
78
|
+
#
|
66
79
|
# ## Stubbing Errors
|
67
80
|
#
|
68
81
|
# When stubbing is enabled, the SDK will default to generate
|
@@ -40,7 +40,9 @@ module Aws
|
|
40
40
|
|
41
41
|
def build_body(api, operation, data)
|
42
42
|
rules = operation.output
|
43
|
-
if
|
43
|
+
if head_operation(operation)
|
44
|
+
""
|
45
|
+
elsif streaming?(rules)
|
44
46
|
data[rules[:payload]]
|
45
47
|
elsif rules[:payload]
|
46
48
|
body_for(api, operation, rules[:payload_member], data[rules[:payload]])
|
@@ -68,6 +70,10 @@ module Aws
|
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
73
|
+
def head_operation(operation)
|
74
|
+
operation.http_method == "HEAD"
|
75
|
+
end
|
76
|
+
|
71
77
|
end
|
72
78
|
end
|
73
79
|
end
|
data/lib/aws-sdk-core/version.rb
CHANGED
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -1249,7 +1249,7 @@ module Aws::STS
|
|
1249
1249
|
params: params,
|
1250
1250
|
config: config)
|
1251
1251
|
context[:gem_name] = 'aws-sdk-core'
|
1252
|
-
context[:gem_version] = '3.0.0.
|
1252
|
+
context[:gem_version] = '3.0.0.rc5'
|
1253
1253
|
Seahorse::Client::Request.new(handlers, context)
|
1254
1254
|
end
|
1255
1255
|
|
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: 3.0.0.
|
4
|
+
version: 3.0.0.rc6
|
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: 2017-03-
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|