spy_rb 0.4.0 → 0.4.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: 96ccd939b58cbad0c0ab01af781177fb2d974e14
4
- data.tar.gz: 352f27f11583dd07e856ce6522cd89dbe8d4d0bb
3
+ metadata.gz: 55898bab27ef564a680183144ee52cbe455b9cad
4
+ data.tar.gz: a28b7f6df39b320e244d8393cf7fa68d0e55240f
5
5
  SHA512:
6
- metadata.gz: f459c3813f339b9f5c7a6a59ba934e1f47f68b1a25a1ec609550e435190415827b6407858a5865bb120d17d7e221d9477b4ff67c1d965dedb573837fcb35ba95
7
- data.tar.gz: 50c0d68b2043f6f91646f983c24ac4acabdd8baab4d97e71a7f1dbeade9c56a9677274fa29025351536686f2e106f47474cb046bc5480a07871ff269df7f1bcd
6
+ metadata.gz: 4bb72ec7f9bf82804b4f18ff84c1c30fb19d2acc2af58948a3f3cd187bbfb81cb4bf52aa00b86e7593677c1803e77fee2209864619c6f55c39c1731b6cd3e561
7
+ data.tar.gz: 7892ca56e20ed834d5b304883567f81e02abd72bb85b7ab851aa29321eb8689dba2a6c55ee12709ec80b5fbb1ac500dae5f3eda33e98fb82aa9fe7ea6aa1c36e
@@ -45,7 +45,7 @@ module Spy
45
45
 
46
46
  # Keep wrapping the original proc with each around_proc
47
47
  @around_procs.reduce(original_proc) do |p, wrapper|
48
- Proc.new { wrapper.call receiver, *args, &p }
48
+ Proc.new { wrapper.call *args, &p }
49
49
  end.call
50
50
  else
51
51
  result = call_and_record(receiver, *args, &block)
data/lib/spy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spy
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
data/lib/spy.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'spy/version'
1
2
  require 'spy/api'
2
3
 
3
4
  module Spy
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: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bodah
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-06-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Spy brings everything that's great about Sinon.JS to Ruby. Mocking frameworks
14
14
  work by stubbing out functionality. Spy works by listening in on functionality and