immunio 0.16.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/immunio/plugins/eval.rb +3 -10
- data/lib/immunio/plugins/http_tracker.rb +4 -2
- data/lib/immunio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eed22d9b0d29d87e8588a1ea05cb335844a9c2de
|
|
4
|
+
data.tar.gz: 266aabbb71480c97f415e1a37d2fb409819df311
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abe3ab45685f8a71434bf16b5cbbbb64673cb21c16c85099ad0665b17b78f112e236900e83a1f90c1f54a42ee4d7065ec90fd03f210a8c12949c96c106d48e21
|
|
7
|
+
data.tar.gz: 3d21078b9c2e84f2f9885ed96008817ede608d7bab3beba1a9a5c4d0dc5cdd527ea0c92500cac78df7f97e4e07a176a79627f5effa2ed565a3a5a747001cff87
|
data/lib/immunio/plugins/eval.rb
CHANGED
|
@@ -24,20 +24,13 @@ module Immunio
|
|
|
24
24
|
context_key: loose_context,
|
|
25
25
|
stack: loose_stack
|
|
26
26
|
Request.pause "plugin", "#{Module.nesting[0]}::#{__method__}" do
|
|
27
|
-
if args.
|
|
27
|
+
if args[1].nil?
|
|
28
28
|
# eval call did not include a binding, so we eval it in the caller's binding
|
|
29
29
|
# NOTE: the 7 here is the number of frames above us the caller was. Changing
|
|
30
30
|
# the call stack will break this...
|
|
31
|
-
|
|
32
|
-
# XXX We can and should log here, but it breaks a ruby test (atom_feed_helper)
|
|
33
|
-
#Immunio.logger.debug {"Eval_without_immunio (binding 7) returned: #{rval.inspect}\nEval stack was: #{stack}"}
|
|
34
|
-
else
|
|
35
|
-
# eval call included a binding, so we still eval in the binding
|
|
36
|
-
rval = eval_without_immunio(*args)
|
|
37
|
-
# XXX We can and should log here, but it breaks a ruby test (atom_feed_helper)
|
|
38
|
-
#Immunio.logger.debug {"Eval_without_immunio returned: #{rval.inspect}"}
|
|
31
|
+
args[1] = binding.of_caller(7)
|
|
39
32
|
end
|
|
40
|
-
|
|
33
|
+
eval_without_immunio(*args)
|
|
41
34
|
end
|
|
42
35
|
end
|
|
43
36
|
end
|
|
@@ -148,7 +148,7 @@ module Immunio
|
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
def extract_session_id(session)
|
|
151
|
-
case
|
|
151
|
+
session_id = case
|
|
152
152
|
when session.respond_to?(:id)
|
|
153
153
|
session.id
|
|
154
154
|
when session[:id]
|
|
@@ -156,8 +156,10 @@ module Immunio
|
|
|
156
156
|
when session[:session_id]
|
|
157
157
|
session[:session_id]
|
|
158
158
|
else
|
|
159
|
-
nil
|
|
159
|
+
return nil
|
|
160
160
|
end
|
|
161
|
+
|
|
162
|
+
Digest::SHA1.hexdigest(session_id)
|
|
161
163
|
end
|
|
162
164
|
end
|
|
163
165
|
|
data/lib/immunio/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: immunio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Immunio
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|