tailog 0.4.1 → 0.4.2

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: 1bc9bb6de653960e66a8228ef816c32ab109d72c
4
- data.tar.gz: 2f8dc643971a9aa671f03c933e26918645240143
3
+ metadata.gz: e77ca56b4f07a340220ad3599b270ce046e85108
4
+ data.tar.gz: 47ac46eab7831003067cb6eee2b2762fbf5be672
5
5
  SHA512:
6
- metadata.gz: cad43120d0b3a0b1c6ec9e8050a931568abd9b31f814074887fd46bececfe20932a74f9de7e096bee5a37cc422f609ad5cbe64b81b7c1254bb91ab929788f2a3
7
- data.tar.gz: 8d842e8058e457a9e3bdb41a9d00fbbcf875e4a3c173d22309b733141c1d08d3d9e422a286ba19d4befaaec59be4215f6efca4f868b45fef769ad5a10b4d9b80
6
+ metadata.gz: 5f2e30b4bae6ac9f12a7800098f036f7733b318137de1e2eb6f71e8d2efd0cd661993bce100c0813e1728084291965921183b213830d37e1c4ac5ae7c44a6b91
7
+ data.tar.gz: ef9cb4ee320f6ae91401d0b07e66edf69f6760b25f1eab9403ced399d1ef6647cafe37f4e7cd80e120c07fe680ff241b06f3104fb563bbaefac308f075147ee5
data/lib/tailog/eval.rb CHANGED
@@ -17,9 +17,10 @@ module Tailog
17
17
  before = env["HTTP_TAILOG_EVAL_BEFORE"].presence
18
18
  after = env["HTTP_TAILOG_EVAL_AFTER"].presence
19
19
 
20
- eval before if before
20
+ binding = Object.new.send(:binding)
21
+ binding.eval before if before
21
22
  response = @app.call(env)
22
- eval after if after
23
+ binding.eval after if after
23
24
 
24
25
  response
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module Tailog
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbtfr