sidekiq-bus 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq_bus/version.rb +1 -1
- data/sidekiq-bus.gemspec +1 -1
- data/spec/adapter/integration_spec.rb +14 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63074dbcb4a868908e6c6afc060f7e9bf0034434
|
4
|
+
data.tar.gz: c2a5d5ac7044e6f3d9274eb36ec40b8c6d932847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eda366027b1fb11e2075eaf541931f89a476900bc3389987443f181cfec655802cb7b906188100df98e1734da073a5e30fa8dbd49a9b016c78d2aefadeb3b538
|
7
|
+
data.tar.gz: 4df1f834df6fc5de49b9f2a7acac151b100dd32d2e721d00448138692ffd9dc9dd90e819c760d9024cb456a978be10e39b238eb4488c74a248a7875c1e5ed444
|
data/lib/sidekiq_bus/version.rb
CHANGED
data/sidekiq-bus.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
s.add_dependency('queue-bus', '0.5.6')
|
22
|
-
s.add_dependency('sidekiq', ['>= 3.0.0', '<
|
22
|
+
s.add_dependency('sidekiq', ['>= 3.0.0', '< 5.0'])
|
23
23
|
|
24
24
|
s.add_development_dependency("rspec")
|
25
25
|
s.add_development_dependency("fakeredis")
|
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
|
2
|
+
if Sidekiq::VERSION < '4'
|
3
|
+
require 'celluloid'
|
4
|
+
end
|
3
5
|
require 'sidekiq/scheduled'
|
4
6
|
|
5
7
|
describe "Sidekiq Integration" do
|
@@ -85,14 +87,23 @@ describe "Sidekiq Integration" do
|
|
85
87
|
val = QueueBus.redis { |redis| redis.lpop("queue:bus_incoming") }
|
86
88
|
val.should == nil # nothing really added
|
87
89
|
|
88
|
-
Sidekiq::
|
90
|
+
if Sidekiq::VERSION < '4'
|
91
|
+
Sidekiq::Scheduled::Poller.new.poll
|
92
|
+
else
|
93
|
+
Sidekiq::Scheduled::Poller.new.enqueue
|
94
|
+
end
|
89
95
|
|
90
96
|
val = QueueBus.redis { |redis| redis.lpop("queue:bus_incoming") }
|
91
97
|
val.should == nil # nothing added yet
|
92
98
|
|
93
99
|
# process scheduler in future
|
94
100
|
Timecop.freeze(worktime) do
|
95
|
-
Sidekiq::
|
101
|
+
if Sidekiq::VERSION < '4'
|
102
|
+
Sidekiq::Scheduled::Poller.new.poll
|
103
|
+
else
|
104
|
+
Sidekiq::Scheduled::Poller.new.enqueue
|
105
|
+
end
|
106
|
+
|
96
107
|
val = QueueBus.redis { |redis| redis.lpop("queue:bus_incoming") }
|
97
108
|
hash = JSON.parse(val)
|
98
109
|
hash["class"].should == "QueueBus::Worker"
|
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.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Leonard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: queue-bus
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 3.0.0
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
36
|
+
version: '5.0'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 3.0.0
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '5.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
189
|
rubyforge_project: sidekiq-bus
|
190
|
-
rubygems_version: 2.
|
190
|
+
rubygems_version: 2.6.1
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: A simple event bus on top of Sidekiq
|