rack-response-signature 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/response_signature.rb +2 -2
- 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: a4b74c08f093aaccd194147efefd97ad25a70475
|
4
|
+
data.tar.gz: 2c28fa0fc92d298c813faa8bf73249b9ebe39396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 573f90f6fae79c669238f9e9c992798cdd92b3ad381485b4732d74288c9dcda2309c33807747196d15ecd89e78aa43a24d9b27b6ee39da71198482d7bb344931
|
7
|
+
data.tar.gz: 04229be9e622bb4a42771497d32d4de6fd5afd752d33a15b32b666145cc5e1ab7d756c3b09c0b51d78afa085b61b50aeb85917f8b5db35a033c99f9af23ac02b
|
@@ -87,7 +87,7 @@ module Rack
|
|
87
87
|
# Set the digest to use when generating the signature (Default: OpenSSL::Digest::SHA256)
|
88
88
|
#
|
89
89
|
class ResponseSignature
|
90
|
-
VERSION = '0.3.
|
90
|
+
VERSION = '0.3.1'
|
91
91
|
|
92
92
|
def initialize(app, private_key, options = {})
|
93
93
|
options[:digest] ||= OpenSSL::Digest::SHA256
|
@@ -134,7 +134,7 @@ module Rack
|
|
134
134
|
|
135
135
|
def value_of(response)
|
136
136
|
body = (response.respond_to?(:body) ? response.body : response)
|
137
|
-
body = body.inject("") { |content, sum| sum += content }
|
137
|
+
body = body.inject("") { |content, sum| sum += content } if body.respond_to?(:inject)
|
138
138
|
body.strip
|
139
139
|
end
|
140
140
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-response-signature
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathaniel Bibler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|