fog-radosgw 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b619efd888c9797d8ebc88e36beb34dba79068f8
4
- data.tar.gz: 933ef7e27304aaadab19434e2bcbdd9fe8114c4e
3
+ metadata.gz: 844e4e85f59194c6da557c4db9b99a11906ec004
4
+ data.tar.gz: 11c2a794e00bea4ed8d8a254161df92452a05c07
5
5
  SHA512:
6
- metadata.gz: d3b4eee7b957bb3cf84cd2e563ec0eee04c36b120c7e9593195e7b74290d787d9c0cb8b68840aba1f0720ae5319a713c4951ddb6a5d25d715a82c94bd574c21f
7
- data.tar.gz: 0cf767e88a221857d18f863a7860dc89de40ee828a13a43c152d3afa798237597904994280773d4b38ea5f3c3ea72e91c0c81d75023553c94e33f39b97a5bb54
6
+ metadata.gz: de8418b7a04fbeefdbb0b1db755eafb22dfee839edd8d3c6586b7f7bc86a14bf6565b84760e670aa62cbb42ad5e9a58c34b5fae8f4a8eb1d0002e77e126c6a15
7
+ data.tar.gz: 647f69bd47240f29ecd7f46008e88cf73082ccc7fc315ba063fcddfd9d92f6b7c2be77c7cc09fd6df7ba602f79ea87a9a86c0534404866a7dd1e9e230c27bec8
@@ -21,13 +21,11 @@ module Fog
21
21
  def signature(params, expires)
22
22
  headers = params[:headers] || {}
23
23
 
24
- string_to_sign =
25
- <<-DATA
26
- #{params[:method].to_s.upcase}
27
- #{headers['Content-MD5']}
28
- #{headers['Content-Type']}
29
- #{expires}
30
- DATA
24
+ string_to_sign = [
25
+ params[:method].to_s.upcase,
26
+ headers['Content-MD5'],
27
+ headers['Content-Type'],
28
+ expires].map(&:to_s).join("\n") + "\n"
31
29
 
32
30
  amz_headers, canonical_amz_headers = {}, ''
33
31
  for key, value in headers
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Radosgw
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-radosgw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Kåre Hellan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-06 00:00:00.000000000 Z
11
+ date: 2016-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-json