bi-frost 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bifrost/version.rb +1 -1
- data/lib/bifrost/worker.rb +1 -1
- data/spec/bifrost/worker_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d92c6ad28d58300dc0d87fa0461b00cffd9319b2
|
4
|
+
data.tar.gz: 72998caea23e6a28bbd2f2f996ca305f284788d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc98b221e3de6afa5e53478c9cc1915cdc50806dc08bf986a6a11d17651fad584f11f06985cf89092c9023bc1d56222b486de18d7ac313f77fecbe873b92c0c
|
7
|
+
data.tar.gz: 7408d17a8785c8e0d563de1c194fce19dd29b3b0357cb9c3dac2709b10f5efdda58db2152cfd99212ff27cd0d84aec7cc972c18959438046d8cc8554acd4d482
|
data/lib/bifrost/version.rb
CHANGED
@@ -9,7 +9,7 @@ module Bifrost
|
|
9
9
|
|
10
10
|
# The patch version of Bifrost, updated only for bug fixes from the last
|
11
11
|
# feature release.
|
12
|
-
PATCH_VERSION =
|
12
|
+
PATCH_VERSION = 3
|
13
13
|
|
14
14
|
# The full version as a string.
|
15
15
|
VERSION = "#{MAJOR_VERSION}.#{MINOR_VERSION}.#{PATCH_VERSION}".freeze
|
data/lib/bifrost/worker.rb
CHANGED
@@ -48,7 +48,7 @@ module Bifrost
|
|
48
48
|
|
49
49
|
# A worker can tell you what it's friendly name will be, this is in order for supervision
|
50
50
|
def self.handle(topic, subscriber)
|
51
|
-
"#{topic.downcase}
|
51
|
+
"#{topic.downcase}--#{subscriber.downcase}"
|
52
52
|
end
|
53
53
|
|
54
54
|
private
|
data/spec/bifrost/worker_spec.rb
CHANGED
@@ -14,12 +14,12 @@ describe Bifrost::Worker do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'should have a friendly string name' do
|
17
|
-
expect(worker.to_s).to eq("#{worker.topic}
|
17
|
+
expect(worker.to_s).to eq("#{worker.topic}--#{worker.subscriber}")
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'should downcase the friendly name' do
|
21
21
|
another_worker = Bifrost::Worker.new('toPic', 'subScriber', cb)
|
22
|
-
expect(another_worker.to_s).to eq("#{another_worker.topic.downcase}
|
22
|
+
expect(another_worker.to_s).to eq("#{another_worker.topic.downcase}--#{another_worker.subscriber.downcase}")
|
23
23
|
end
|
24
24
|
|
25
25
|
it 'should have a friendly symbol name' do
|