message_bus_client_worker 0.2.0 → 0.2.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/CHANGELOG.md +4 -0
- data/Gemfile.lock +6 -6
- data/README.md +4 -2
- data/lib/message_bus_client_worker/version.rb +1 -1
- data/lib/message_bus_client_worker/workers/subscription_worker.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f18497d280500c4d7043de22e3cef6c164c4427ce003f2a3085d4e411eda35eb
|
|
4
|
+
data.tar.gz: 2b72bee2fe666018a20b16c8fce35981faf73ac215752feae4edd2cea8a49c51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e863a9765b8799908ed2242a0678985dfe5c0eef5eea2297db8cd2a8cd693c2570ea7931a179f282701ae4351b0fad23707894849781771c29ffc1be71066fe4
|
|
7
|
+
data.tar.gz: 0420d8e833e997cab5447d973741b64941d5238450a7b20489bcf57375c410c14e76345906197090a92b5c667d5cdda897f651c9ce1944384bfbc310f78e5333
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.2.1] - 2018-09-14
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fix problems enqueuing more than one SubscriptionWorker
|
|
10
|
+
|
|
7
11
|
## [0.2.0] - 2018-08-08
|
|
8
12
|
### Changed
|
|
9
13
|
- Ability to specify what message_id to start from
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
message_bus_client_worker (0.2.
|
|
4
|
+
message_bus_client_worker (0.2.1)
|
|
5
5
|
activesupport
|
|
6
6
|
addressable
|
|
7
7
|
gem_config
|
|
@@ -13,7 +13,7 @@ PATH
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: https://rubygems.org/
|
|
15
15
|
specs:
|
|
16
|
-
activesupport (5.2.
|
|
16
|
+
activesupport (5.2.1)
|
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
18
|
i18n (>= 0.7, < 2)
|
|
19
19
|
minitest (~> 5.1)
|
|
@@ -37,7 +37,7 @@ GEM
|
|
|
37
37
|
domain_name (~> 0.5)
|
|
38
38
|
http-form_data (2.1.1)
|
|
39
39
|
http_parser.rb (0.6.0)
|
|
40
|
-
i18n (1.0
|
|
40
|
+
i18n (1.1.0)
|
|
41
41
|
concurrent-ruby (~> 1.0)
|
|
42
42
|
light-service (0.11.0)
|
|
43
43
|
activesupport (>= 3.0)
|
|
@@ -49,7 +49,7 @@ GEM
|
|
|
49
49
|
pry-byebug (3.6.0)
|
|
50
50
|
byebug (~> 10.0)
|
|
51
51
|
pry (~> 0.10)
|
|
52
|
-
public_suffix (3.0.
|
|
52
|
+
public_suffix (3.0.3)
|
|
53
53
|
rack (2.0.5)
|
|
54
54
|
rack-protection (2.0.3)
|
|
55
55
|
rack
|
|
@@ -76,7 +76,7 @@ GEM
|
|
|
76
76
|
connection_pool (~> 2.2, >= 2.2.0)
|
|
77
77
|
rack-protection (>= 1.5.0)
|
|
78
78
|
redis (>= 3.3.5, < 5)
|
|
79
|
-
sidekiq-unique-jobs (6.0.
|
|
79
|
+
sidekiq-unique-jobs (6.0.6)
|
|
80
80
|
concurrent-ruby (~> 1.0, >= 1.0.5)
|
|
81
81
|
sidekiq (>= 4.0, < 6.0)
|
|
82
82
|
thor (~> 0)
|
|
@@ -102,4 +102,4 @@ DEPENDENCIES
|
|
|
102
102
|
wait
|
|
103
103
|
|
|
104
104
|
BUNDLED WITH
|
|
105
|
-
1.16.
|
|
105
|
+
1.16.4
|
data/README.md
CHANGED
|
@@ -32,8 +32,10 @@ MessageBusClientWorker.configure do |c|
|
|
|
32
32
|
c.subscriptions = {
|
|
33
33
|
# Format is
|
|
34
34
|
# "https://domain.com" => {
|
|
35
|
-
# "/a_channel" =>
|
|
36
|
-
#
|
|
35
|
+
# "/a_channel" => {
|
|
36
|
+
# processor: "ProcessorClass",
|
|
37
|
+
# message_id: 0,
|
|
38
|
+
# }
|
|
37
39
|
# }
|
|
38
40
|
"https://etc.com" => {
|
|
39
41
|
"/exchange_rates" => {
|
|
@@ -2,12 +2,20 @@ module MessageBusClientWorker
|
|
|
2
2
|
class SubscriptionWorker
|
|
3
3
|
|
|
4
4
|
include Sidekiq::Worker
|
|
5
|
-
sidekiq_options
|
|
5
|
+
sidekiq_options(
|
|
6
|
+
retry: false,
|
|
7
|
+
lock: :until_executed,
|
|
8
|
+
unique_args: :unique_args,
|
|
9
|
+
)
|
|
6
10
|
|
|
7
11
|
def perform(host, subscriptions, long=false)
|
|
8
12
|
Poll.(host, subscriptions.with_indifferent_access, long)
|
|
9
13
|
end
|
|
10
14
|
|
|
15
|
+
def self.unique_args(*args)
|
|
16
|
+
[args.first]
|
|
17
|
+
end
|
|
18
|
+
|
|
11
19
|
end
|
|
12
20
|
end
|
|
13
21
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: message_bus_client_worker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ramon Tayag
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gem_config
|