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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f76f71deb4680df1db6f931c0859af97d053109
4
- data.tar.gz: e4e7539401b8711212050595fc2488d7940b19c6
3
+ metadata.gz: 5f420f0903e724c44f7482375fb93923b2e56818
4
+ data.tar.gz: ccd28da29599a07cf14b6ee3b9906f31c4de4eb0
5
5
  SHA512:
6
- metadata.gz: 5cc12685969f5f7d288b0aa4f2faed82aebeb0e11806fef40d1ae81cf42e81b2db7d6441e6a42e71b2184de222a4dd5d68876aec9a768b1ed31609cc2356ca3b
7
- data.tar.gz: 2c6ba706816d3cd2fc6129d35df37a9545b24cd194bcbdac645100555b868d1ecbf4ba8c05c245c735de7245345995e7067f5f8e2c4ff0780a5e780cdf044d54
6
+ metadata.gz: d7a997afccdf132da002a4c9d66313609dfb2bb5e36f47a1cc370f9c8a1d42f9a68f936cf3978dd452b93cf1238d92415800b01a3ac986a0e80ba9f9191d6fd0
7
+ data.tar.gz: 831076478cc3d79c71409d279c33adf6c252530859e5656b8735c22ddb7dfda073a5c919a0de9d3cd93bd0d11db252d90ad0243af18d995cc31a4b845605db0d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0.rc5
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) #=> ['my-bucket']
53
- # #=> ['aws-sdk']
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 streaming?(rules)
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
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.6.44'
2
+ VERSION = '2.8.2'
3
3
  end
@@ -40,6 +40,6 @@ require_relative 'aws-sdk-sts/customizations'
40
40
  # @service
41
41
  module Aws::STS
42
42
 
43
- GEM_VERSION = '3.0.0.rc4'
43
+ GEM_VERSION = '3.0.0.rc5'
44
44
 
45
45
  end
@@ -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.rc4'
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.rc5
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-07 00:00:00.000000000 Z
11
+ date: 2017-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath