aws-sdk 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -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]
|
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
|
92
|
-
#
|
93
|
-
#
|
94
|
-
|
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
|
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
|
@@ -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]
|
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?
|
data/lib/aws/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: uuidtools
|