spy_rb 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spy/instance.rb +2 -2
- data/lib/spy/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: d71236b97fdbb0dd51d9c0d7e671e6693bcc16b9
|
4
|
+
data.tar.gz: 5e42400f36f49431731b3bd0421b7c105c44f150
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0c2f388be1774c7f5f267d5d832220c1569ad5581dc7dfe27870598f51cdc9c75fccad8b3ba734cbd56f18e3fb3e8558ba486c9983d9df26e5b2a8f5df51211
|
7
|
+
data.tar.gz: f705743fd15091097e368db00218ea8fb24d0720f687fc80e0f9fec1997de6948c81849b6d042fb29aaa4cb5acf0ec980955c76d081b7d10b9437762bc2506e8
|
data/lib/spy/instance.rb
CHANGED
@@ -100,8 +100,6 @@ module Spy
|
|
100
100
|
def apply(method_call)
|
101
101
|
return method_call.call_original unless passes_all_conditions?(method_call)
|
102
102
|
|
103
|
-
run_before_callbacks(method_call)
|
104
|
-
|
105
103
|
result = nil
|
106
104
|
runner =
|
107
105
|
if @internal[:instead]
|
@@ -122,6 +120,8 @@ module Spy
|
|
122
120
|
end
|
123
121
|
end
|
124
122
|
|
123
|
+
run_before_callbacks(method_call)
|
124
|
+
|
125
125
|
runner.call
|
126
126
|
|
127
127
|
run_after_callbacks(method_call)
|
data/lib/spy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spy_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bodah
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|