fake_smith 0.1.3 → 0.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
2
  SHA1:
3
- metadata.gz: 9356e863704c8fec30743ba23c8ed1389ec67b5a
4
- data.tar.gz: 5ecdf34e1dd30b2a67343636f47fb5ac49be18e0
3
+ metadata.gz: 3fc432b1451c41074bd77f3da104077bfcfa68e2
4
+ data.tar.gz: 062e8da11926ab9f3a78a3db1e955ec7651f3517
5
5
  SHA512:
6
- metadata.gz: 255893ba61f56edce85e3aad7742ef7c041433469b02b50404796e4f8707b506f4b6691faa9f10c072fcb3d5e0f3af697fd690e360d11ac9c5b56bf43e3ac18f
7
- data.tar.gz: 228d2d8353e1ed52e645348a11a204a85d2ed5391de90b3e6445c2c6698b28492658e952b0c2fde71889ce30c2df647e1e3aa8f54d8cf5f4193e7e6ad6af17b9
6
+ metadata.gz: 155ebebc6de2e8b0693764797233af91afe8ee6ab265032569398bdedd82ad66a9f6872f0dceb2669e46f3a19a9d477922952d7a8f069dbb48327aa51d71bdf8
7
+ data.tar.gz: a2ed267d086793334f708585bc6e092d0a40d6c032a27fc3d44df61175cc50a453ac8222084fef98ae6f874e305a689352189186ee7508f1ff096b57e7b80599
@@ -1,3 +1,3 @@
1
1
  class FakeSmith
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/fake_smith.rb CHANGED
@@ -149,9 +149,8 @@ module Smith
149
149
  r
150
150
  end
151
151
 
152
- def sender(queue_name, opts={}, &blk)
153
- s = Smith::Messaging::Sender.new(queue_name)
154
- blk.call(s) if block_given?
152
+ def sender(queue_names, opts={}, &blk)
153
+ Array(queue_names).each { |queue_name| Smith::Messaging::Sender.new(queue_name, opts, &blk) }
155
154
  end
156
155
 
157
156
  def acknowledge_start(&blk)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_smith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Griffith