resque-rate_limited_queue 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/resque-rate_limited_queue/version.rb +1 -1
- data/spec/apis/angellist_queue_spec.rb +5 -1
- data/spec/apis/evernote_queue_spec.rb +4 -1
- data/spec/apis/twitter_queue_spec.rb +5 -1
- data/spec/rate_limited_queue_spec.rb +1 -1
- data/spec/rate_limited_un_pause_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b89853941b0fa15d9583d9f67bb373c94df3b346
|
4
|
+
data.tar.gz: 089fe56d8af8943886833268c2770b810162acc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d323535acad9651970c70c19e10b402b1bf2913ee0a619d26b2b2028d514fc2b399c41eddd800433e376ae47fa7bd7f36153d40ca66530e7d0dd65fcb44ae8ea
|
7
|
+
data.tar.gz: 77831135d5154dc0c5abaf0e0eb64d6d5ed6893f96e3e30cc4694f0155b3553b93a275dc259013d4609003e21d74abe2d707f7ecbb227d079c385a67409b0982
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require '
|
2
|
+
require 'resque/rate_limited_queue'
|
3
3
|
|
4
4
|
class RateLimitedTestQueueAL
|
5
5
|
def self.perform(succeed)
|
@@ -8,6 +8,10 @@ class RateLimitedTestQueueAL
|
|
8
8
|
end
|
9
9
|
|
10
10
|
describe Resque::Plugins::RateLimitedQueue::AngellistQueue do
|
11
|
+
before do
|
12
|
+
Resque::Plugins::RateLimitedQueue::AngellistQueue.stub(:paused?).and_return(false)
|
13
|
+
end
|
14
|
+
|
11
15
|
describe 'enqueue' do
|
12
16
|
it 'enqueues to the correct queue with the correct parameters' do
|
13
17
|
Resque.should_receive(:enqueue_to).with(
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require '
|
2
|
+
require 'resque/rate_limited_queue'
|
3
3
|
|
4
4
|
class RateLimitDuration
|
5
5
|
def self.seconds
|
@@ -14,6 +14,9 @@ class RateLimitedTestQueueEn
|
|
14
14
|
end
|
15
15
|
|
16
16
|
describe Resque::Plugins::RateLimitedQueue::EvernoteQueue do
|
17
|
+
before do
|
18
|
+
Resque::Plugins::RateLimitedQueue::EvernoteQueue.stub(:paused?).and_return(false)
|
19
|
+
end
|
17
20
|
describe 'enqueue' do
|
18
21
|
it 'enqueues to the correct queue with the correct parameters' do
|
19
22
|
Resque.should_receive(:enqueue_to).with(
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require '
|
2
|
+
require 'resque/rate_limited_queue'
|
3
3
|
|
4
4
|
class RateLimitedTestQueueTw
|
5
5
|
def self.perform(succeed)
|
@@ -9,6 +9,10 @@ class RateLimitedTestQueueTw
|
|
9
9
|
end
|
10
10
|
|
11
11
|
describe Resque::Plugins::RateLimitedQueue::TwitterQueue do
|
12
|
+
before do
|
13
|
+
Resque::Plugins::RateLimitedQueue::TwitterQueue.stub(:paused?).and_return(false)
|
14
|
+
end
|
15
|
+
|
12
16
|
describe 'enqueue' do
|
13
17
|
it 'enqueues to the correct queue with the correct parameters' do
|
14
18
|
Resque.should_receive(:enqueue_to).with(
|