spy_rb 3.0.1 → 3.1.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/core.rb +1 -1
- data/lib/spy/method_call.rb +1 -1
- data/lib/spy/multi.rb +4 -0
- 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: 7a5b66b4ba30415a795bfb54ad2d6913618e92a1
|
4
|
+
data.tar.gz: 857e278a71757b8d2423017b529b09297985f52c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2082d105d28146a818793ce81aba85f65d8ec073cdc4da56c73a745f15904db7b7a0d1299cd91ebce6348592590de813b56e02303e41cc9640bb5c5674929f1e
|
7
|
+
data.tar.gz: 3bb2dae86c59e31517856daa58b16b2a01458c3c65ee43d6b25168747d1670ed1728e0a0f0bdc4c285a6d11ca8a003c5af923488c1dc8be9e5fe93f694aeb127
|
data/lib/spy/core.rb
CHANGED
@@ -24,7 +24,7 @@ module Spy
|
|
24
24
|
# being spied on
|
25
25
|
def add_spy(blueprint)
|
26
26
|
if prev = @registry.get(blueprint)
|
27
|
-
raise Errors::AlreadySpiedError.new("Already spied on here:\n\t#{prev[0].caller.join("\n\t")}")
|
27
|
+
raise Errors::AlreadySpiedError.new("Already spied on #{blueprint} here:\n\t#{prev[0].caller.join("\n\t")}")
|
28
28
|
end
|
29
29
|
spy = Instance.new(blueprint)
|
30
30
|
@registry.insert(blueprint, spy)
|
data/lib/spy/method_call.rb
CHANGED
data/lib/spy/multi.rb
CHANGED
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: 3.0
|
4
|
+
version: 3.1.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: 2018-
|
11
|
+
date: 2018-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|