resque-rate_limited_queue 0.0.32 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/resque-rate_limited_queue/version.rb +1 -1
- data/lib/resque/plugins/{rate_limited → rate_limited_queue}/apis/angellist_queue.rb +0 -0
- data/lib/resque/plugins/{rate_limited → rate_limited_queue}/apis/base_api_queue.rb +0 -0
- data/lib/resque/plugins/{rate_limited → rate_limited_queue}/apis/evernote_queue.rb +0 -0
- data/lib/resque/plugins/{rate_limited → rate_limited_queue}/apis/twitter_queue.rb +0 -0
- data/lib/resque/plugins/{rate_limited → rate_limited_queue}/rate_limited_queue.rb +3 -2
- data/lib/resque/plugins/{rate_limited → rate_limited_queue}/rate_limited_un_pause.rb +0 -0
- data/lib/resque/rate_limited_queue.rb +6 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8544eb833a85a7a6b5cd003bddd2e097e4034ed7
|
4
|
+
data.tar.gz: 0ecf8482ad460b4b4bd1047ba8307a0ce67d3cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbcbf0020606852984ad1daa69ceb3779e996c27eb3781896e5d9b60396163fa24dd404bd0d113ade3afc3b18b279ebf0eb8f47e8a5d52ce1f5ce03d1e5b8316
|
7
|
+
data.tar.gz: 90c75260a1ed508201587427eab4c30125803b8246d72ef40a23a67b971a7c93f388dff954a5b74b7e89b0b745018bbd5847894070998409adc7cbff385432d7
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Resque Rate Limited Queue
|
2
2
|
|
3
|
-
PLEASE NOTE THIS IS
|
3
|
+
PLEASE NOTE THIS IS NOW SUITABLE FOR TRIAL USE - I EXPECT TO RELEASE A STABLE VERSION IN EARLY JAN 2015
|
4
4
|
|
5
5
|
A Resque plugin which makes handling jobs that use rate limited apis easier
|
6
6
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -30,8 +30,7 @@ module Resque
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def pause_for(timestamp)
|
33
|
-
pause
|
34
|
-
UnPause.enqueue(timestamp, name)
|
33
|
+
UnPause.enqueue(timestamp, name) if pause
|
35
34
|
end
|
36
35
|
|
37
36
|
def un_pause
|
@@ -48,8 +47,10 @@ module Resque
|
|
48
47
|
|
49
48
|
def pause
|
50
49
|
Resque.redis.renamenx(RESQUE_PREFIX + @queue.to_s, RESQUE_PREFIX + paused_queue_name)
|
50
|
+
true
|
51
51
|
rescue Redis::CommandError => e
|
52
52
|
raise unless e.message == 'ERR no such key'
|
53
|
+
false
|
53
54
|
end
|
54
55
|
|
55
56
|
def paused?
|
File without changes
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'resque'
|
2
2
|
require 'redis-mutex'
|
3
3
|
require 'resque/version'
|
4
|
-
require 'resque/plugins/
|
5
|
-
require 'resque/plugins/
|
6
|
-
require 'resque/plugins/
|
7
|
-
require 'resque/plugins/
|
8
|
-
require 'resque/plugins/
|
9
|
-
require 'resque/plugins/
|
4
|
+
require 'resque/plugins/rate_limited_queue/rate_limited_queue'
|
5
|
+
require 'resque/plugins/rate_limited_queue/rate_limited_un_pause'
|
6
|
+
require 'resque/plugins/rate_limited_queue/apis/base_api_queue'
|
7
|
+
require 'resque/plugins/rate_limited_queue/apis/angellist_queue'
|
8
|
+
require 'resque/plugins/rate_limited_queue/apis/evernote_queue'
|
9
|
+
require 'resque/plugins/rate_limited_queue/apis/twitter_queue'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-rate_limited_queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Dowling
|
@@ -185,12 +185,12 @@ files:
|
|
185
185
|
- README.md
|
186
186
|
- Rakefile
|
187
187
|
- lib/resque-rate_limited_queue/version.rb
|
188
|
-
- lib/resque/plugins/
|
189
|
-
- lib/resque/plugins/
|
190
|
-
- lib/resque/plugins/
|
191
|
-
- lib/resque/plugins/
|
192
|
-
- lib/resque/plugins/
|
193
|
-
- lib/resque/plugins/
|
188
|
+
- lib/resque/plugins/rate_limited_queue/apis/angellist_queue.rb
|
189
|
+
- lib/resque/plugins/rate_limited_queue/apis/base_api_queue.rb
|
190
|
+
- lib/resque/plugins/rate_limited_queue/apis/evernote_queue.rb
|
191
|
+
- lib/resque/plugins/rate_limited_queue/apis/twitter_queue.rb
|
192
|
+
- lib/resque/plugins/rate_limited_queue/rate_limited_queue.rb
|
193
|
+
- lib/resque/plugins/rate_limited_queue/rate_limited_un_pause.rb
|
194
194
|
- lib/resque/rate_limited_queue.rb
|
195
195
|
- resque-rate_limited_queue.gemspec
|
196
196
|
- spec/apis/angellist_queue_spec.rb
|