em_aws 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- em_aws (0.2.3)
4
+ em_aws (0.2.4)
5
5
  aws-sdk
6
6
  em-http-request
7
7
  em-synchrony
@@ -11,7 +11,7 @@ GEM
11
11
  specs:
12
12
  ZenTest (4.8.2)
13
13
  addressable (2.3.2)
14
- aws-sdk (1.8.1.1)
14
+ aws-sdk (1.8.1.2)
15
15
  json (~> 1.4)
16
16
  nokogiri (>= 1.4.4)
17
17
  uuidtools (~> 2.1)
@@ -29,9 +29,13 @@ GEM
29
29
  em-synchrony (1.0.3)
30
30
  eventmachine (>= 1.0.0.beta.1)
31
31
  eventmachine (1.0.0)
32
+ eventmachine (1.0.0-java)
32
33
  http_parser.rb (0.5.3)
34
+ http_parser.rb (0.5.3-java)
33
35
  json (1.7.6)
36
+ json (1.7.6-java)
34
37
  nokogiri (1.5.6)
38
+ nokogiri (1.5.6-java)
35
39
  rspec (2.12.0)
36
40
  rspec-core (~> 2.12.0)
37
41
  rspec-expectations (~> 2.12.0)
@@ -150,17 +150,17 @@ module AWS
150
150
  nil
151
151
  end
152
152
 
153
- # AWS needs all headers downcased, and for some reason x-amz-expiration and
154
- # x-amz-restore need to be arrays
153
+ # AWS needs all header keys downcased and values need to be arrays
155
154
  def fetch_response_headers(response)
156
155
  response_headers = response.response_header.raw.to_hash
157
156
  aws_headers = {}
158
157
  response_headers.each_pair do |k,v|
159
158
  key = k.downcase
160
- if (key == "x-amz-expiration" || key == 'x-amz-restore')
161
- aws_headers[key] = [v]
162
- else
159
+ #['x-amz-crc32', 'x-amz-expiration','x-amz-restore','x-amzn-errortype']
160
+ if v.is_a?(Array)
163
161
  aws_headers[key] = v
162
+ else
163
+ aws_headers[key] = [v]
164
164
  end
165
165
  end
166
166
  response_headers.merge(aws_headers)
@@ -1,3 +1,3 @@
1
1
  module EmAws
2
- VERSION = "0.2.3"
3
- end
2
+ VERSION = "0.2.4"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em_aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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-02-02 00:00:00.000000000 Z
12
+ date: 2013-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk