aws-sdk 1.11.0 → 1.11.1

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.
@@ -63,7 +63,8 @@ module AWS
63
63
  #
64
64
  # @attr_reader [String,nil] session_token (nil) AWS secret token credential.
65
65
  #
66
- # @attr_reader [String] :region ('us-east-1') The default AWS region.
66
+ # @attr_reader [String] region
67
+ # The AWS region used for requests. The default is `us-east-1`.
67
68
  #
68
69
  # @attr_reader [Boolean] dynamo_db_big_decimals (true) When `true`,
69
70
  # {DynamoDB} will convert number values returned by {DynamoDB::Client}
@@ -88,10 +88,15 @@ module AWS
88
88
  # @return [Net::HTTPRequest]
89
89
  def build_net_http_request request
90
90
 
91
- # Net::HTTP adds a content-type header automatically unless its set
92
- # and this messes with request signature signing. Also, it expects
93
- # all header values to be strings (it call strip on them).
94
- headers = { 'content-type' => '' }
91
+ # Net::HTTP adds a content-type (1.8.7+) and accept-encoding (2.0.0+)
92
+ # to the request if these headers are not set. Setting a default
93
+ # empty value defeats this.
94
+ #
95
+ # Removing these are necessary for most services to no break request
96
+ # signatures as well as dynamodb crc32 checks (these fail if the
97
+ # response is gzipped).
98
+ headers = { 'content-type' => '', 'accept-encoding' => '' }
99
+
95
100
  request.headers.each_pair do |key,value|
96
101
  headers[key] = value.to_s
97
102
  end
@@ -730,11 +730,9 @@ module AWS
730
730
  :comparison_operator => range_op
731
731
  } if range_op
732
732
 
733
- if select = options.delete(:select)
733
+ if select = options.delete(:select) || options.delete(:attributes_to_get)
734
734
  options[:item_data] = true
735
- options[:attributes_to_get] = select.map do |att|
736
- att.to_s
737
- end unless select == :all
735
+ options[:attributes_to_get] = select.map(&:to_s) unless select == :all
738
736
  end
739
737
 
740
738
  if block
@@ -350,6 +350,7 @@ module AWS
350
350
  # for compatability with ActionMailer
351
351
  alias_method :deliver, :send_raw_email
352
352
  alias_method :deliver!, :send_raw_email
353
+ def settings; {}; end
353
354
 
354
355
  # @example
355
356
  #
@@ -52,8 +52,8 @@ module AWS
52
52
  # @return [Domain] The domain this task was scheduled in.
53
53
  attr_reader :domain
54
54
 
55
- # @return [Integer] The id of the ActivityTaskStarted event recorded
56
- # in the history.
55
+ # @return [Integer]
56
+ # The id of the {ActivityTaskStarted} event recorded in the history.
57
57
  attr_reader :started_event_id
58
58
 
59
59
  # @return [String,nil] The input provided when the activity task was
@@ -152,6 +152,18 @@ module AWS
152
152
  !!@responded
153
153
  end
154
154
 
155
+ # Responds to one of the `respond_activity_task_` methods with a set of options. This method is called when any
156
+ # of the {#complete!}, {#cancel!}, or {#fail!} methods is invoked.
157
+ #
158
+ # @note Only one response can be logged per `ActivityTask` instance; If this task has already logged a response,
159
+ # `respond` will raise an exception.
160
+ #
161
+ # @param [String] status
162
+ # The status of the response: "canceled", "completed", or "failed".
163
+ #
164
+ # @param [Hash] options
165
+ # Options to provide to the respond_activity_task function that will be called.
166
+ #
155
167
  protected
156
168
  def respond status, options
157
169
  raise "already responded" if responded?
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.11.0'
16
+ VERSION = '1.11.1'
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-29 00:00:00.000000000 Z
12
+ date: 2013-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools