aws-sdk 1.40.1 → 1.40.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws/core/http/excon_handler.rb +24 -0
- data/lib/aws/dynamo_db/batch_write.rb +2 -0
- data/lib/aws/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10e63741f6aa962ceb1166052c6d7a7d7f2549a2
|
4
|
+
data.tar.gz: 3a0310e45e7ecabe4407bbecbc71a7f8fa7a10ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40de112da77470f79ec290a7038735b4bc99e7eaf56fcb860afdcf17a63967b33c0195a728de7c1ba4b24b01e1e2fb1c59216bf55a810294895182e5b77cf497
|
7
|
+
data.tar.gz: 79f2b3f56e5c4d73a20ccee04213ca5ffe8729ff290de2156a38f3257b07f2a2d18ea69233da0eac8f4dc23b9c22e943a9f28fadb847b3b4ce7c67cedc3a8edf
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'excon'
|
2
|
+
|
3
|
+
class ExconHandler
|
4
|
+
|
5
|
+
def handle(req, resp, &read_block)
|
6
|
+
options = {
|
7
|
+
:method => req.http_method.downcase.to_sym,
|
8
|
+
:path => req.path,
|
9
|
+
:query => req.querystring,
|
10
|
+
:headers => req.headers,
|
11
|
+
:body => req.body_stream,
|
12
|
+
}
|
13
|
+
options[:response_block] = read_block if block_given?
|
14
|
+
connection = Excon.new(req.endpoint)
|
15
|
+
excon_resp = connection.request(options)
|
16
|
+
resp.status = excon_resp.status.to_i
|
17
|
+
resp.headers = excon_resp.headers
|
18
|
+
resp.body = excon_resp.body unless block_given?
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
AWS.config(http_handler: ExconHandler.new)
|
24
|
+
|
@@ -240,8 +240,10 @@ module AWS
|
|
240
240
|
case type
|
241
241
|
when "S" then { :s => value }
|
242
242
|
when "N" then { :n => value }
|
243
|
+
when "B" then { :b => value }
|
243
244
|
when "SS" then { :ss => value }
|
244
245
|
when "NS" then { :ns => value }
|
246
|
+
when "BS" then { :bs => value }
|
245
247
|
else
|
246
248
|
raise "unhandled key type: #{type.inspect}"
|
247
249
|
end
|
data/lib/aws/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.40.
|
4
|
+
version: 1.40.2
|
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: 2014-05-
|
11
|
+
date: 2014-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- lib/aws/core/endpoints.rb
|
126
126
|
- lib/aws/core/http/connection_pool.rb
|
127
127
|
- lib/aws/core/http/curb_handler.rb
|
128
|
+
- lib/aws/core/http/excon_handler.rb
|
128
129
|
- lib/aws/core/http/handler.rb
|
129
130
|
- lib/aws/core/http/net_http_handler.rb
|
130
131
|
- lib/aws/core/http/patch.rb
|