spy_rb 3.1.0 → 3.2.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
- SHA1:
3
- metadata.gz: 7a5b66b4ba30415a795bfb54ad2d6913618e92a1
4
- data.tar.gz: 857e278a71757b8d2423017b529b09297985f52c
2
+ SHA256:
3
+ metadata.gz: 2063ed94cce3a2ac696ec0bd6a681af088f475e146f1eb5c948bf9148fc9683c
4
+ data.tar.gz: 3398a6c198897860afe37bcba501061d9b5f014d61a0a0351febeff32f7c470c
5
5
  SHA512:
6
- metadata.gz: 2082d105d28146a818793ce81aba85f65d8ec073cdc4da56c73a745f15904db7b7a0d1299cd91ebce6348592590de813b56e02303e41cc9640bb5c5674929f1e
7
- data.tar.gz: 3bb2dae86c59e31517856daa58b16b2a01458c3c65ee43d6b25168747d1670ed1728e0a0f0bdc4c285a6d11ca8a003c5af923488c1dc8be9e5fe93f694aeb127
6
+ metadata.gz: 6989c33724af93cb2aa857ac8380b47725a7335d3ed5c55a90e0cb39535b9a0f9a345dc4e34fefaca73a0dafc47ead0121830783e3bd740d2046ab9fad4396c3
7
+ data.tar.gz: b24c959db07f395479ad8ac05c40b143992737e0bcaab5a04c0da094efbc71b92cd58e41b0a03b6a97d20ec299ec197a847864fcba7aacef9591bb2a170fedc3
data/lib/spy/instance.rb CHANGED
@@ -83,6 +83,10 @@ module Spy
83
83
  self
84
84
  end
85
85
 
86
+ def called?
87
+ @call_history.any?
88
+ end
89
+
86
90
  private
87
91
 
88
92
  def choose_strategy(blueprint)
data/lib/spy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spy
2
- VERSION = '3.1.0'
2
+ VERSION = '3.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: 3.1.0
4
+ version: 3.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: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2019-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.5.2
85
+ rubygems_version: 2.7.6
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Test Spies for Ruby