fake_smith 0.3.0 → 0.4.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: 8e4a94a848958df1c1147d6bcb12271262d8e291
4
- data.tar.gz: 1d27e0771e7c00e52ec7ab2c22f7c4df35030519
3
+ metadata.gz: 6ae1defefc4a13925b8e465a150bac3897adeb4b
4
+ data.tar.gz: 8f816c6e0b256c07aa21561ab186a3afee4b394e
5
5
  SHA512:
6
- metadata.gz: 961ce56c9e37ca2c2b31d47369115222ad8b0950cee4de109af8d70c54d427e946a1e04b95f7e5408af2176fbf7fe256069efc6a2d56db6db1c2f0d337eeedf3
7
- data.tar.gz: f3c7db3333eacd9687a946b3909a42cff2b956b8f0fbb016cfda997c5becd095bf3da4d33837f00d7c8788eb226b65c160360175bb219beebb80cc92e1bcd437
6
+ metadata.gz: 3d289f3c3cee9b3cdc018f7cefd6d2e7e5d103336f9776e4fcd78f307cad2ae91fca5070a1b21319920de184b11cfbbff07dfe3319577d2d83e081aa25e32d19
7
+ data.tar.gz: e8752e4db4b7eb825dbf793f1755844afec056d074cfb735476954586d7c4e7427de58540868421fb09f20dbcf503abb5b2064335aeaa3fa3081dbeff167b33a
@@ -1,3 +1,3 @@
1
1
  class FakeSmith
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/fake_smith.rb CHANGED
@@ -4,6 +4,7 @@ rescue LoadError
4
4
  end
5
5
 
6
6
  require "fake_smith/version"
7
+ require "delegate"
7
8
 
8
9
  class FakeSmith
9
10
  class ReceiverDecorator < SimpleDelegator
@@ -12,6 +13,11 @@ class FakeSmith
12
13
  @acked = true
13
14
  super
14
15
  end
16
+ alias :call :ack
17
+
18
+ def to_proc
19
+ proc { |obj| ack }
20
+ end
15
21
  end
16
22
 
17
23
  class MessageAckedTwiceError < StandardError; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_smith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Griffith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-01 00:00:00.000000000 Z
11
+ date: 2015-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler