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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rack/refresher.rb +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6555051d1ca7204a3ab7417ddcb801e1008cd02f
4
- data.tar.gz: 7a38b0af53aa4b6925b16617c06348ae6bd57c61
3
+ metadata.gz: cf6118ac2a8c5dfadd0bab333320936a1a912413
4
+ data.tar.gz: 2fd07b93381267a59ecda54c1c098e9a6c4cee0c
5
5
  SHA512:
6
- metadata.gz: 8367cab9f49628d63a2401007ed63af641f47cec83752eb8540dab9ce9eb418eaa18fe0eba2e36611364e4027804e45f1df92ed3889e6902449523de2719ade1
7
- data.tar.gz: 9c1ef87a3dcf1cc87058169cfc793b1dd985f8a126acd503e6a4e07aafb46bb6ef3a31d44d6d12c7a56e9c5605b763005a54d1defd6a5a5387b41acb889d2fda
6
+ metadata.gz: 8e4cd00a446be4667ea00171447f2618b9742f927549b22c4b6dc7b71d3bb9b56bf031c56fcb96f4d8c2633c2de548e3d0985d8d5f1a59b69ada1755f57d102b
7
+ data.tar.gz: a398203f80d9c262e4b0b94a13510d7984583b07a1d4c0b0d6687f82025a74013ba5350a315a0d81110f4abed2bc84bbe37c9e2bf4c441f2d55c755ada3a8069
@@ -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
- [status, headers, inject(body)]
26
+ Response.new(inject(body), status, headers)
24
27
  end
25
28
 
26
29
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-refresher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zinovyev