fake_smith 0.0.7 → 0.0.8

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: d678e7a65f92f98bc5f5fea7ae919567aae689ae
4
- data.tar.gz: c466abff3249f578e793bc92f86f583c9eb96b1e
3
+ metadata.gz: ca8446484ab109dc97446f3e3e96eb118c868c12
4
+ data.tar.gz: c98222de3465d17252de59b36e7d631d07bd93e5
5
5
  SHA512:
6
- metadata.gz: 4fbc4db3ab2d821d1fb6523ae4f5aa4f4e7d61f21521b31ece47b32fb4f3b5b141d9d883260b1fe3b23e9bca60f98c9cde77b29f21e00bd8b7e180f73e9fc1f6
7
- data.tar.gz: eab10f5004abd224e736cd000b96e671e628f7cad1b888da5f3c7281119178c20beefaa1a8c7d322b2782848ddcec54acd9fa83a9aebf17c337c7647503c1d21
6
+ metadata.gz: 57ca17cad38e5ec2bb20ad0cca8021c448f9eb47387e6e7571d6c04ee621764b0011baf27c91bfbd8e12838a8f4a1d7e5d198646b342fb3f34404fcb814340fd
7
+ data.tar.gz: 144caaaae3d4851ab4246583728918590c08e6be52717058d1f95676cd87580e6b0a2b8c298fe2b6090d84321e7b225cec410afb763928d5a1aba8e341036626
@@ -1,3 +1,3 @@
1
1
  class FakeSmith
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/fake_smith.rb CHANGED
@@ -89,12 +89,14 @@ end
89
89
  module Smith
90
90
  module Messaging
91
91
  class Sender
92
- def initialize(queue_name)
92
+ def initialize(queue_name, &blk)
93
93
  @queue_name = queue_name
94
+ blk.call
94
95
  end
95
96
 
96
97
  def publish(message, &blk)
97
98
  FakeSmith.add_message(@queue_name, message)
99
+ blk.call
98
100
  end
99
101
  end
100
102
  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.0.7
4
+ version: 0.0.8
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-06 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler