fairway 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/fairway/sidekiq/fetch.rb +4 -0
- data/lib/fairway/version.rb +1 -1
- data/spec/lib/fairway/fetch_spec.rb +14 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/fairway/version.rb
CHANGED
@@ -60,6 +60,20 @@ module Fairway::Sidekiq
|
|
60
60
|
q1.size.should == 2
|
61
61
|
q2.size.should == 1
|
62
62
|
end
|
63
|
+
|
64
|
+
it "requeues jobs to redis from instance" do
|
65
|
+
uow = Sidekiq::BasicFetch::UnitOfWork
|
66
|
+
q1 = Sidekiq::Queue.new('foo')
|
67
|
+
q2 = Sidekiq::Queue.new('bar')
|
68
|
+
|
69
|
+
q1.size.should == 0
|
70
|
+
q2.size.should == 0
|
71
|
+
|
72
|
+
Fetch.new{ |f| }.bulk_requeue([uow.new('queue:foo', 'bob'), uow.new('queue:foo', 'bar'), uow.new('queue:bar', 'widget')])
|
73
|
+
|
74
|
+
q1.size.should == 2
|
75
|
+
q2.size.should == 1
|
76
|
+
end
|
63
77
|
end
|
64
78
|
|
65
79
|
describe "#fetch_order" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fairway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|