sidekiq-bus 0.6.3 → 0.7.0

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
  SHA1:
3
- metadata.gz: 03eccbb538b7d12315858985c2b5526cbc08922d
4
- data.tar.gz: 8db801e4506d54ddec9e38e187924d191b2c6d13
3
+ metadata.gz: 7117464cbaa51cb865284bd8e97ab9167b9ad530
4
+ data.tar.gz: 4c7ba518a5b15db322ec9f62449ec5917aba50e5
5
5
  SHA512:
6
- metadata.gz: 8667ae717bcda59378a5c579691c82023075a84c103f032bfa4664f7ee844880bd974f5e0cd9adbdee6d431551468dd13147409eb71d6b99769e6a6e744c7d5c
7
- data.tar.gz: 352ef713fac9e3fa7a725daf8afbb2f7336e3294ae407fb35012e55c1986e9d9b922f4101d975725642aeeb017fa5b2ffe8c4a008023231e647e4d2bf03faeef
6
+ metadata.gz: 1aa816cb5624973b6a2bbf7c41ed20871357471439eb9abbf2efbc0ba6287afa25a73e48d0583d3743005ef0840e39b852e055bba7c54959508e2716ead96271
7
+ data.tar.gz: 6356a83e2a6793092f6d821cd699c77a66d09ddc4268bed6d6454dcdb27f84bae059f6881cdd3dfff08aeb1b6dd2b194b3975a6736e848d4cc7bc8e081e63464
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.7.0] - 2019-07-29
10
+
11
+ ### Changed
12
+ - Increased the minimum version of queue-bus
13
+ - If the adapter is already set, will not warn instead of error.
14
+
9
15
  ## [0.6.1] - 2019-06-17
10
16
  ### Changed
11
17
 
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gemspec
4
-
5
- # gem "queue-bus", path: "../queue-bus"
@@ -5,8 +5,6 @@ require 'sidekiq_bus/adapter'
5
5
  require 'sidekiq_bus/version'
6
6
  require 'sidekiq_bus/middleware/retry'
7
7
 
8
- QueueBus.adapter = QueueBus::Adapters::Sidekiq.new
9
-
10
8
  module SidekiqBus
11
9
  # This method will analyze the current queues and generate an array that
12
10
  # can operate as the sidekiq queues configuration. It should be based on how
@@ -44,3 +42,10 @@ module SidekiqBus
44
42
  entries.flat_map { |e| Array.new(e.weight, e.queue) }
45
43
  end
46
44
  end
45
+
46
+ if QueueBus.has_adapter?
47
+ warn '[SidekiqBus] Not setting adapter on queue-bus because ' \
48
+ "#{QueueBus.adapter.class.name} is already the adapter"
49
+ else
50
+ QueueBus.adapter = QueueBus::Adapters::Sidekiq.new
51
+ end
@@ -1,3 +1,3 @@
1
1
  module SidekiqBus
2
- VERSION = "0.6.3"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -11,14 +11,12 @@ Gem::Specification.new do |s|
11
11
  s.summary = %q{A simple event bus on top of Sidekiq}
12
12
  s.description = %q{A simple event bus on top of Sidekiq. Publish and subscribe to events as they occur through a queue.}
13
13
 
14
- s.rubyforge_project = "sidekiq-bus"
15
-
16
14
  s.files = `git ls-files`.split("\n")
17
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
17
  s.require_paths = ["lib"]
20
18
 
21
- s.add_dependency('queue-bus', ['>= 0.5.9', '< 1'])
19
+ s.add_dependency('queue-bus', ['>= 0.7', '< 1'])
22
20
  s.add_dependency('sidekiq', ['>= 3.0.0', '~> 5.0'])
23
21
 
24
22
  s.add_development_dependency("rspec")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Leonard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-10 00:00:00.000000000 Z
11
+ date: 2019-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: queue-bus
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.9
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '1'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.5.9
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '1'
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  requirements: []
198
- rubyforge_project: sidekiq-bus
198
+ rubyforge_project:
199
199
  rubygems_version: 2.5.2
200
200
  signing_key:
201
201
  specification_version: 4