immunio 0.16.1 → 1.0.0

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: 0d7cac490eaf0674be16b7242208824e543e8791
4
- data.tar.gz: 8837d981d6c8b025eced09db99ff18536022e142
3
+ metadata.gz: eed22d9b0d29d87e8588a1ea05cb335844a9c2de
4
+ data.tar.gz: 266aabbb71480c97f415e1a37d2fb409819df311
5
5
  SHA512:
6
- metadata.gz: ef608197444e699838816f51271260e6db640fc64f96c01cd21f071241856d0cd4f051a350c7a992ab46e2fee44a0adfe2abf4182ca2eec6e956543f22e18733
7
- data.tar.gz: 703ab0c55bf99debc69c14ac7b9f01aebbf5ce40f56078ba8e0fb70d871f6469d67ca050639e7c657553c117e42f977e5fa2320a94f4fe008b5a89c10f0a412c
6
+ metadata.gz: abe3ab45685f8a71434bf16b5cbbbb64673cb21c16c85099ad0665b17b78f112e236900e83a1f90c1f54a42ee4d7065ec90fd03f210a8c12949c96c106d48e21
7
+ data.tar.gz: 3d21078b9c2e84f2f9885ed96008817ede608d7bab3beba1a9a5c4d0dc5cdd527ea0c92500cac78df7f97e4e07a176a79627f5effa2ed565a3a5a747001cff87
@@ -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.length == 1 then
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
- rval = eval_without_immunio(args[0], binding.of_caller(7))
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
- rval
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
 
@@ -1,5 +1,5 @@
1
1
  module Immunio
2
2
  AGENT_TYPE = "agent-ruby"
3
- VERSION = "0.16.1"
3
+ VERSION = "1.0.0"
4
4
  VM_VERSION = "2.2.0"
5
5
  end
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.16.1
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-22 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails