sqreen 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sqreen/instrumentation.rb +9 -3
- data/lib/sqreen/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: b7c0d876ee5f24abd72e726834023d2f9629169f
|
4
|
+
data.tar.gz: 71bd73ae7b3513b8727286abba6488ccd704d341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 395f0a6db93a2ce37ab1500c3bf16aa5f44ab93cb94701a7bc1bbf7803d68ff2380b05dbde439c89c19ba6e80a3425b99c227c1304f1ea5220d57e15bb5fc959
|
7
|
+
data.tar.gz: ce8eaa36bc6224afe30e1838183562e11e724415901de1fd91c243af6b94367e4d044e41c73ffa0e81fb8a953a0598c74b32185b915d616a8d1dcb988d3ae7de
|
@@ -55,7 +55,9 @@ module Sqreen
|
|
55
55
|
def self.callback_wrapper_pre(klass, method, instance, *args, &block)
|
56
56
|
Instrumentation.guard_call(method, []) do
|
57
57
|
callbacks = @@registered_callbacks.get(klass, method, :pre)
|
58
|
-
callbacks.
|
58
|
+
if callbacks.any?(&:whitelisted?)
|
59
|
+
callbacks = callbacks.reject(&:whitelisted?)
|
60
|
+
end
|
59
61
|
|
60
62
|
returns = []
|
61
63
|
callbacks.each do |cb|
|
@@ -92,7 +94,9 @@ module Sqreen
|
|
92
94
|
def self.callback_wrapper_post(klass, method, return_val, instance, *args, &block)
|
93
95
|
Instrumentation.guard_call(method, []) do
|
94
96
|
callbacks = @@registered_callbacks.get(klass, method, :post)
|
95
|
-
callbacks.
|
97
|
+
if callbacks.any?(&:whitelisted?)
|
98
|
+
callbacks = callbacks.reject(&:whitelisted?)
|
99
|
+
end
|
96
100
|
|
97
101
|
returns = []
|
98
102
|
callbacks.reverse_each do |cb|
|
@@ -129,7 +133,9 @@ module Sqreen
|
|
129
133
|
def self.callback_wrapper_failing(exception, klass, method, instance, *args, &block)
|
130
134
|
Instrumentation.guard_call(method, []) do
|
131
135
|
callbacks = @@registered_callbacks.get(klass, method, :failing)
|
132
|
-
callbacks.
|
136
|
+
if callbacks.any?(&:whitelisted?)
|
137
|
+
callbacks = callbacks.reject(&:whitelisted?)
|
138
|
+
end
|
133
139
|
|
134
140
|
returns = []
|
135
141
|
callbacks.each do |cb|
|
data/lib/sqreen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqreen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sqreen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|