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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70e816279d030aeea54bdda956f5b898bd13b847
4
- data.tar.gz: 90c290e2ae506c97b1fa16ae788a85859d992929
3
+ metadata.gz: 63074dbcb4a868908e6c6afc060f7e9bf0034434
4
+ data.tar.gz: c2a5d5ac7044e6f3d9274eb36ec40b8c6d932847
5
5
  SHA512:
6
- metadata.gz: 54a7dee01d857704362f4cb7e5593db6250e1887779c8e6af7513d78888f11642b9d23a5b6d0627363e29cfd475bc8cdda3ab22e78a9ca2433b3f09bc78f3976
7
- data.tar.gz: 29ff41380ce0808f53cd7d209175b4ec2dcec3c421745264936e348073746e0977ef30cf604f0a27d9ce0b48eee1ae0941a92bacbe107154560bba537b7cafce
6
+ metadata.gz: eda366027b1fb11e2075eaf541931f89a476900bc3389987443f181cfec655802cb7b906188100df98e1734da073a5e30fa8dbd49a9b016c78d2aefadeb3b538
7
+ data.tar.gz: 4df1f834df6fc5de49b9f2a7acac151b100dd32d2e721d00448138692ffd9dc9dd90e819c760d9024cb456a978be10e39b238eb4488c74a248a7875c1e5ed444
@@ -1,3 +1,3 @@
1
1
  module SidekiqBus
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
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', '< 4.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
- require 'celluloid'
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::Scheduled::Poller.new.poll
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::Scheduled::Poller.new.poll
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
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: 2015-04-06 00:00:00.000000000 Z
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: '4.0'
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: '4.0'
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.2.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