spy_rb 4.0.0 → 4.1.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: 53c61d7800f4dfd159fc081d34ad780b225cc5b1
4
- data.tar.gz: 68c92a4fbadef7bf61acfcb1aa84d5405e16e41a
3
+ metadata.gz: d18de07de52886c7f90cf55a4f5136ca8d024ee2
4
+ data.tar.gz: 7265ac691c1d280204e2374df4ad71660c4290a8
5
5
  SHA512:
6
- metadata.gz: ccd3238f674765a9d9ee84f5fad2fd66f9c336118f8bf1a5698b927a719bec36257da6c4792522a5ae917faf75e7c5f2c7bb03ee3d98246ac58043ac2c91740f
7
- data.tar.gz: '0984f22b7e030d699c503319e18701931398632255c6ddc487e0e285fe6c3949b1d08e45327e476dbcc0aa05a204822f65a554bf0081df2a915f857b93e07fde'
6
+ metadata.gz: bced77cf5f0a8160b17ae975f32fba6249d7171f299cca6712142f3c9467f9a1a20704adc7cefcccdabbe284945b507bf63ed406c911159e4279f779ff6711fe
7
+ data.tar.gz: 00b4a7cecb20a0c196d6bd4b95554a09dd132ddf2a874f51e75528030711cf22d69fbdbe3197af20f826635dcc9ea018ab59bc4035f84aa7b835ce51db9dba53
@@ -106,6 +106,7 @@ module Spy
106
106
  runner =
107
107
  if @internal[:instead]
108
108
  proc do
109
+ @call_history << method_call
109
110
  result = @internal[:instead].call(method_call)
110
111
  end
111
112
  else
@@ -1,6 +1,6 @@
1
1
  module Spy
2
2
  class MethodCall
3
- attr_reader :receiver, :backtrace, :args, :block, :result
3
+ attr_reader :receiver, :backtrace, :args, :block, :result, :spy
4
4
 
5
5
  def initialize(spy, receiver, args, block, backtrace)
6
6
  @spy = spy
@@ -1,3 +1,3 @@
1
1
  module Spy
2
- VERSION = '4.0.0'
2
+ VERSION = '4.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spy_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bodah