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 +4 -4
- data/lib/fake_smith/version.rb +1 -1
- data/lib/fake_smith.rb +3 -1
- 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: ca8446484ab109dc97446f3e3e96eb118c868c12
|
4
|
+
data.tar.gz: c98222de3465d17252de59b36e7d631d07bd93e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ca17cad38e5ec2bb20ad0cca8021c448f9eb47387e6e7571d6c04ee621764b0011baf27c91bfbd8e12838a8f4a1d7e5d198646b342fb3f34404fcb814340fd
|
7
|
+
data.tar.gz: 144caaaae3d4851ab4246583728918590c08e6be52717058d1f95676cd87580e6b0a2b8c298fe2b6090d84321e7b225cec410afb763928d5a1aba8e341036626
|
data/lib/fake_smith/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|