grape_api_signature 0.0.5 → 0.0.6

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: cb3e423bd76f929fc5ddc31e38792117e465f937
4
- data.tar.gz: b1ae2a6fb3b04b8cad6a5b8c252bdab3410c8073
3
+ metadata.gz: 82a0164f061f43ab85b1b9a8c0e69ef1822fe5da
4
+ data.tar.gz: 5a9c7be1bbdbd69cf51801efe5f14139d46fd9fc
5
5
  SHA512:
6
- metadata.gz: 2df3a46a3f01d7682b2b3f470079b16a9b760d97a59a529c9b1a7ec43e0d5484fe5448dd3223f4dcec60b8d1ceddde343c9ed9fee0a7a9e2490f49e28698c5bc
7
- data.tar.gz: 28e998d9622b783af1773a9f5053586f4a5bf52b3aa1239f20ab2a1d63554852931f998398c66d482a52048b1ec0db953d7532f7d79b8c6285f48d942fc23075
6
+ metadata.gz: e96352f6ea8aa2ddbb8fcccaa0a5fb127cb4fe7da2f820349e28913640cb2f655e4b2db6cfabc0d878f89e32e369dd9a15b4c0da9325def3cf17c27727befc91
7
+ data.tar.gz: 3e75341fb308bf1d78467ede43dc1bd507ef18b64ffde394a503fd1cad9cb52361a911011ec39d72755e5ef5a8bc991876a37aa2abbf856ef939113dec691caa
@@ -17,7 +17,7 @@ module GrapeAPISignature
17
17
  def initialize(method, uri, headers, body, digester = GrapeAPISignature::AWSDigester)
18
18
  self.method = method.upcase
19
19
  self.uri = uri
20
- self.headers = headers.each_with_object({}) { |(key, value), result_hash| result_hash[key.downcase] = value.strip }
20
+ self.headers = headers.each_with_object({}) { |(key, value), result_hash| result_hash[key.downcase] = (value || '').strip }
21
21
  self.body = body
22
22
  self.service = uri.host.split('.', 2)[0]
23
23
  self.digester = digester
@@ -1,3 +1,3 @@
1
1
  module GrapeAPISignature
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape_api_signature
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dieter Späth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-21 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack