aws-sdk 1.40.1 → 1.40.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab56c9f63fe1d6de15827c71687574c31ea3f785
4
- data.tar.gz: 8c8fbb76caea35b5877cdc39e85fe1b3fb6b329e
3
+ metadata.gz: 10e63741f6aa962ceb1166052c6d7a7d7f2549a2
4
+ data.tar.gz: 3a0310e45e7ecabe4407bbecbc71a7f8fa7a10ed
5
5
  SHA512:
6
- metadata.gz: 6c36447fb4f7bd4bacc398a3c5523096fd614a6b103f8baa16531c14becb0edbfa9375cdc9ed7dd23af093f9e6673c88397dabafb2f0e562fccfba96c75c9f68
7
- data.tar.gz: eda990d11b85c296199d1c74fb0cebaa4e4bb7bf0b29374f1bd826b57b8e455f2f6481487296efce6a49532274e1c92ccc8417e8bb7db025e45df8bcdfcbb7d6
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
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.40.1'
16
+ VERSION = '1.40.2'
17
17
  end
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.1
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-12 00:00:00.000000000 Z
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