grover 0.9.2 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grover/middleware.rb +5 -0
- data/lib/grover/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 347ddedd0c8bcdcbd3d5d655be1ae714c56383ee42b0fafe50415e1666e6a185
|
4
|
+
data.tar.gz: e4df638d52d38e9dec2274c81150c8a6ae47a63b0b9585fb5053d9267e5027db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eab74dc3058d3f43d2967fc291cfbd63cc35c58db6cbea54af783f9ee06b4b013aac92590b1a3e4532689073884037f3c6f9fdc783203ae09adbc63f5a4cc88
|
7
|
+
data.tar.gz: 57f58c1b84f00ac89bb96000c9cf2de064ae4c8ec55f3ededfa346e5daee91e7da1af0b7b0a87a98569b8baa9c6b315e0ce30feb0d2f16cd8574dd0d13c1bbd0
|
data/lib/grover/middleware.rb
CHANGED
@@ -18,6 +18,10 @@ class Grover
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def call(env)
|
21
|
+
dup._call(env)
|
22
|
+
end
|
23
|
+
|
24
|
+
def _call(env)
|
21
25
|
@request = Rack::Request.new(env)
|
22
26
|
identify_request_type
|
23
27
|
|
@@ -65,6 +69,7 @@ class Grover
|
|
65
69
|
|
66
70
|
def update_response(response, headers)
|
67
71
|
body, content_type = convert_response response
|
72
|
+
response.close if response.respond_to? :close
|
68
73
|
assign_headers headers, body, content_type
|
69
74
|
[body]
|
70
75
|
end
|
data/lib/grover/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Bromwich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: combine_pdf
|