vx-consumer 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vx/consumer/subscriber.rb +5 -2
- data/lib/vx/consumer/version.rb +1 -1
- data/spec/lib/consumer_spec.rb +7 -6
- 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: 4831500045ec9daf6df86cb54c7309d1100cd2e7
|
4
|
+
data.tar.gz: 73621a7d5bd60cc50c60caa826e795162ea2a4b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e35ec88e940e4b3b09ae7aaff4ee281f92d7bc8368d6c2d50b610a8171c61bbb6987aff77523116dd3733d5931ebdd1639502fad20cbf05994db27b2c543f53f
|
7
|
+
data.tar.gz: 38357a1ee1b91f8aaa0d2014dc6c4ca5911fecd1a3278fa30a91e25a3b546e9450a38b7744b36985b393c8a727f80c754e4f99dc9b875c510e9fad92e81bf137
|
data/lib/vx/consumer/version.rb
CHANGED
data/spec/lib/consumer_spec.rb
CHANGED
@@ -89,20 +89,21 @@ describe Vx::Consumer do
|
|
89
89
|
end
|
90
90
|
|
91
91
|
it "should wait shutdown" do
|
92
|
-
|
92
|
+
bob1 = Bob.subscribe
|
93
|
+
bob2 = Bob.subscribe
|
93
94
|
Bob.publish a: 1
|
95
|
+
Bob.publish a: 2
|
94
96
|
|
95
|
-
|
96
|
-
|
97
|
-
}
|
97
|
+
th1 = bob1.wait_shutdown
|
98
|
+
th2 = bob2.wait_shutdown
|
98
99
|
sleep 0.2
|
99
100
|
Vx::Consumer.shutdown
|
100
101
|
|
101
102
|
Timeout.timeout(1) do
|
102
|
-
|
103
|
+
[th1, th2].map(&:join)
|
103
104
|
end
|
104
105
|
|
105
|
-
expect(Bob._collected).to eq
|
106
|
+
expect(Bob._collected.map(&:values).flatten.sort).to eq [1,2]
|
106
107
|
end
|
107
108
|
|
108
109
|
it "should work with graceful shutdown" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vx-consumer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|