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 +4 -4
- data/lib/grape_api_signature/aws_request.rb +1 -1
- data/lib/grape_api_signature/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82a0164f061f43ab85b1b9a8c0e69ef1822fe5da
|
4
|
+
data.tar.gz: 5a9c7be1bbdbd69cf51801efe5f14139d46fd9fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|