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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbb42aa79f19cb7b81bcd0edb8ea889479bf0019
4
- data.tar.gz: 2be958a2c307267313943529e40035544edcb429
3
+ metadata.gz: a2c38bfa209739ab6269acd822dacc45ca59bf88
4
+ data.tar.gz: 91c25f50a79385529c29f005d06234e1546b9666
5
5
  SHA512:
6
- metadata.gz: aec9057db360d3454d58cefa68fde67ab617395f4a0dba088365c0e13b2c894554aceed4ced4657b493f05dac6d430a1f88981f78cebc448a1c0af1fa64871a9
7
- data.tar.gz: 6d35c8ea28362f8e5af6bccb39d728314fed88bedbe26091028d2e93a5e1e577a113ea265e260bdaf2846d5c84162273bced4379a79f81fee45f391eb9492365
6
+ metadata.gz: b7a44ec30907e6c07b3d5e7205f5d0c8779fbc516d81eb9d7298daf395f4760ca7d709c76ac2c3f0f10df1e8fd2f1a655c3fa563aa38abc3e99a66d5aa9e94fb
7
+ data.tar.gz: 61d7e757562ea9ae641c7036497d0a590ea00d112e7bd3f043dc0064217889aedb3cfa8d888ca1b6e4eb2c9bac5bdf8365692e482d92d068ba578862539c72f0
@@ -1,3 +1,3 @@
1
1
  class FakeSmith
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-10-31 00:00:00.000000000 Z
11
+ date: 2014-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler