fake_smith 0.0.5 → 0.0.6
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 +2 -2
- 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: a2c38bfa209739ab6269acd822dacc45ca59bf88
|
4
|
+
data.tar.gz: 91c25f50a79385529c29f005d06234e1546b9666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7a44ec30907e6c07b3d5e7205f5d0c8779fbc516d81eb9d7298daf395f4760ca7d709c76ac2c3f0f10df1e8fd2f1a655c3fa563aa38abc3e99a66d5aa9e94fb
|
7
|
+
data.tar.gz: 61d7e757562ea9ae641c7036497d0a590ea00d112e7bd3f043dc0064217889aedb3cfa8d888ca1b6e4eb2c9bac5bdf8365692e482d92d068ba578862539c72f0
|
data/lib/fake_smith/version.rb
CHANGED
data/lib/fake_smith.rb
CHANGED
@@ -114,13 +114,13 @@ module Smith
|
|
114
114
|
|
115
115
|
def receiver(queue_name, opts={}, &blk)
|
116
116
|
r = Smith::Messaging::Receiver.new(queue_name, opts, &blk)
|
117
|
-
blk.call r
|
117
|
+
blk.call r if block_given?
|
118
118
|
r
|
119
119
|
end
|
120
120
|
|
121
121
|
def sender(queue_name, opts={}, &blk)
|
122
122
|
s = Smith::Messaging::Sender.new(queue_name)
|
123
|
-
blk.call(s)
|
123
|
+
blk.call(s) if block_given?
|
124
124
|
end
|
125
125
|
|
126
126
|
def acknowledge_start(&blk)
|
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.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Griffith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|