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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fairway (0.0.9)
4
+ fairway (0.0.10)
5
5
  activesupport
6
6
  hiredis
7
7
  redis
@@ -56,6 +56,10 @@ module Fairway
56
56
 
57
57
  return nil
58
58
  end
59
+
60
+ def bulk_requeue(inprogress)
61
+ self.class.bulk_requeue(inprogress)
62
+ end
59
63
  end
60
64
  end
61
65
  end
@@ -1,3 +1,3 @@
1
1
  module Fairway
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -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.10
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-21 00:00:00.000000000 Z
12
+ date: 2013-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport