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 +4 -4
- data/lib/fake_smith/version.rb +1 -1
- data/lib/fake_smith.rb +6 -0
- 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: 6ae1defefc4a13925b8e465a150bac3897adeb4b
|
4
|
+
data.tar.gz: 8f816c6e0b256c07aa21561ab186a3afee4b394e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d289f3c3cee9b3cdc018f7cefd6d2e7e5d103336f9776e4fcd78f307cad2ae91fca5070a1b21319920de184b11cfbbff07dfe3319577d2d83e081aa25e32d19
|
7
|
+
data.tar.gz: e8752e4db4b7eb825dbf793f1755844afec056d074cfb735476954586d7c4e7427de58540868421fb09f20dbcf503abb5b2064335aeaa3fa3081dbeff167b33a
|
data/lib/fake_smith/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|