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 +4 -4
- data/lib/tailog/eval.rb +3 -2
- data/lib/tailog/version.rb +1 -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: e77ca56b4f07a340220ad3599b270ce046e85108
|
4
|
+
data.tar.gz: 47ac46eab7831003067cb6eee2b2762fbf5be672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/tailog/version.rb
CHANGED