message_bus_client_worker 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: de30a005fd8d0ded3dd3abb9539f67efc2e06b526212af01a37b7c0fd1d43d31
4
- data.tar.gz: 73de613d059e2d77b5732eeac9c6581fa25de7cdd6c1d686864059d700916238
3
+ metadata.gz: f18497d280500c4d7043de22e3cef6c164c4427ce003f2a3085d4e411eda35eb
4
+ data.tar.gz: 2b72bee2fe666018a20b16c8fce35981faf73ac215752feae4edd2cea8a49c51
5
5
  SHA512:
6
- metadata.gz: 10a046ecaa85f5e5d92ce11b50d6cdbeebc152ba684d9514326c858dee857009186640161834f3457244cf3972d5d0e78b51f20012d868a30797fc4a7211d555
7
- data.tar.gz: 47b26efdcc4869834fba1e49f5a44c0e8336551426c2708e2fbd101b4b3de95e145aac079d6ffd6ccb426b65140cd7f3aa05082b3edbf6f3ba987aa2aed5d7cc
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.0)
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.0)
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.1)
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.2)
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.4)
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.3
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" => "AChannelPayloadProcessor",
36
- # "/b_channel" => "BChannelPayloadProcessor",
35
+ # "/a_channel" => {
36
+ # processor: "ProcessorClass",
37
+ # message_id: 0,
38
+ # }
37
39
  # }
38
40
  "https://etc.com" => {
39
41
  "/exchange_rates" => {
@@ -1,3 +1,3 @@
1
1
  module MessageBusClientWorker
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -2,12 +2,20 @@ module MessageBusClientWorker
2
2
  class SubscriptionWorker
3
3
 
4
4
  include Sidekiq::Worker
5
- sidekiq_options retry: false, lock: :until_executed
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.0
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-08-08 00:00:00.000000000 Z
11
+ date: 2018-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config