rack-refresher 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/refresher.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf6118ac2a8c5dfadd0bab333320936a1a912413
|
4
|
+
data.tar.gz: 2fd07b93381267a59ecda54c1c098e9a6c4cee0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e4cd00a446be4667ea00171447f2618b9742f927549b22c4b6dc7b71d3bb9b56bf031c56fcb96f4d8c2633c2de548e3d0985d8d5f1a59b69ada1755f57d102b
|
7
|
+
data.tar.gz: a398203f80d9c262e4b0b94a13510d7984583b07a1d4c0b0d6687f82025a74013ba5350a315a0d81110f4abed2bc84bbe37c9e2bf4c441f2d55c755ada3a8069
|
data/lib/rack/refresher.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require "rack"
|
2
|
+
require "rack/response"
|
3
|
+
|
1
4
|
module Rack
|
2
5
|
class Refresher
|
3
6
|
class Config
|
@@ -20,7 +23,7 @@ module Rack
|
|
20
23
|
|
21
24
|
def call(env)
|
22
25
|
status, headers, body = @app.call(env)
|
23
|
-
|
26
|
+
Response.new(inject(body), status, headers)
|
24
27
|
end
|
25
28
|
|
26
29
|
private
|