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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc11a3a48f65cd5aaa1b4e0444b122cf12ae2c21
4
- data.tar.gz: 85c6e6f370a1bb862f554679063057774f96e7ab
3
+ metadata.gz: b7c0d876ee5f24abd72e726834023d2f9629169f
4
+ data.tar.gz: 71bd73ae7b3513b8727286abba6488ccd704d341
5
5
  SHA512:
6
- metadata.gz: b0d671840b6c605359512b50e23efef360f29d58944031ce0589683c64254a9d7205e91e7ecb6c17797a05e42c09b0d649a36c50de78468280fd4720eefe50b6
7
- data.tar.gz: 7664d0468f7fd8e0ee71e03b325f02f5b0c76f53379046d2013232592dda05db0f3c9970db1ac046944ada579a42e87175077955485d649fdb207fdbe0e91589
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.reject!(&:whitelisted?)
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.reject!(&:whitelisted?)
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.reject!(&:whitelisted?)
136
+ if callbacks.any?(&:whitelisted?)
137
+ callbacks = callbacks.reject(&:whitelisted?)
138
+ end
133
139
 
134
140
  returns = []
135
141
  callbacks.each do |cb|
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  module Sqreen
4
- VERSION = '1.7.0'.freeze
4
+ VERSION = '1.7.1'.freeze
5
5
  end
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.0
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-06-30 00:00:00.000000000 Z
11
+ date: 2017-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs