spy_rb 4.1.0 → 4.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d18de07de52886c7f90cf55a4f5136ca8d024ee2
4
- data.tar.gz: 7265ac691c1d280204e2374df4ad71660c4290a8
3
+ metadata.gz: d71236b97fdbb0dd51d9c0d7e671e6693bcc16b9
4
+ data.tar.gz: 5e42400f36f49431731b3bd0421b7c105c44f150
5
5
  SHA512:
6
- metadata.gz: bced77cf5f0a8160b17ae975f32fba6249d7171f299cca6712142f3c9467f9a1a20704adc7cefcccdabbe284945b507bf63ed406c911159e4279f779ff6711fe
7
- data.tar.gz: 00b4a7cecb20a0c196d6bd4b95554a09dd132ddf2a874f51e75528030711cf22d69fbdbe3197af20f826635dcc9ea018ab59bc4035f84aa7b835ce51db9dba53
6
+ metadata.gz: f0c2f388be1774c7f5f267d5d832220c1569ad5581dc7dfe27870598f51cdc9c75fccad8b3ba734cbd56f18e3fb3e8558ba486c9983d9df26e5b2a8f5df51211
7
+ data.tar.gz: f705743fd15091097e368db00218ea8fb24d0720f687fc80e0f9fec1997de6948c81849b6d042fb29aaa4cb5acf0ec980955c76d081b7d10b9437762bc2506e8
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Spy
2
- VERSION = '4.1.0'
2
+ VERSION = '4.2.0'
3
3
  end
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.1.0
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-04-18 00:00:00.000000000 Z
11
+ date: 2019-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake