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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d05e1b43b17481e66cfa413e96ba3afee5dd09f8
4
- data.tar.gz: e18caf974ab9ab97656f0f89729dcee3c37219c7
3
+ metadata.gz: a4b74c08f093aaccd194147efefd97ad25a70475
4
+ data.tar.gz: 2c28fa0fc92d298c813faa8bf73249b9ebe39396
5
5
  SHA512:
6
- metadata.gz: bacd6f52898d6449220124eb42384550343eef1f16011d50bfcff0147be5692dae289fbf714ebf62c33caa83bb03a18833678bafbaca6ee6f47949852e92e412
7
- data.tar.gz: 260bb0b15b9785f8cd637426a6c661f1aa49d0fd0a0ce03984c56437817a37227ad7fcc91cb55e44527bc44dfa47921dbfd3ec29a5b1a267975b2949033b07c4
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.0'
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2013-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack