resque-uniqueue 1.0.0 → 1.0.1
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/Gemfile +1 -0
- data/Gemfile.lock +7 -0
- data/VERSION +1 -1
- data/lib/resque/uniqueue.rb +4 -2
- data/resque-uniqueue.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82dd24cd61411329eba05dbbd572892033eb222d
|
|
4
|
+
data.tar.gz: 4236940f19d59dcce251b233eca5dd6859ac5eb6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2223c6664917f0f307a121b9557fd46a55c3bd5470d4c02b8aeec4f1ae65c41deae234f1b3adef7dac12abd3d953b9070d27f6f9736237f8b08e4017b4cbe21
|
|
7
|
+
data.tar.gz: 26d0b83e189b5d7560866e856567f5a5c5d83753aa866a673701dc632fe859ca423e5f5656555962b68f69da8c5a5cae8491b2043b2b91b9791f2681cf4ccf25
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -46,6 +46,7 @@ GEM
|
|
|
46
46
|
multi_json (~> 1.3)
|
|
47
47
|
multi_xml (~> 0.5)
|
|
48
48
|
rack (~> 1.2)
|
|
49
|
+
power_assert (0.3.0)
|
|
49
50
|
pry (0.9.11.3)
|
|
50
51
|
coderay (~> 1.0.5)
|
|
51
52
|
method_source (~> 0.8)
|
|
@@ -76,6 +77,8 @@ GEM
|
|
|
76
77
|
rack-protection (~> 1.4)
|
|
77
78
|
tilt (~> 1.3, >= 1.3.4)
|
|
78
79
|
slop (3.4.3)
|
|
80
|
+
test-unit (3.2.0)
|
|
81
|
+
power_assert
|
|
79
82
|
tilt (1.4.1)
|
|
80
83
|
vegas (0.1.11)
|
|
81
84
|
rack (>= 1.0.0)
|
|
@@ -91,3 +94,7 @@ DEPENDENCIES
|
|
|
91
94
|
rdoc (~> 3.12)
|
|
92
95
|
resque (~> 1.25.0)
|
|
93
96
|
shoulda
|
|
97
|
+
test-unit
|
|
98
|
+
|
|
99
|
+
BUNDLED WITH
|
|
100
|
+
1.11.2
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.1
|
data/lib/resque/uniqueue.rb
CHANGED
|
@@ -56,7 +56,9 @@ module Resque
|
|
|
56
56
|
local results = {}
|
|
57
57
|
results[1] = redis.call('lpop', queue_name)
|
|
58
58
|
results[2] = redis.call('lpop', start_at_name)
|
|
59
|
-
|
|
59
|
+
if results[1] then
|
|
60
|
+
redis.call('srem', uniqueue_name, results[1])
|
|
61
|
+
end
|
|
60
62
|
return results
|
|
61
63
|
LUA
|
|
62
64
|
end
|
|
@@ -130,4 +132,4 @@ module Resque
|
|
|
130
132
|
end
|
|
131
133
|
end
|
|
132
134
|
|
|
133
|
-
Resque.send(:extend, Resque::Uniqueue)
|
|
135
|
+
Resque.send(:extend, Resque::Uniqueue)
|
data/resque-uniqueue.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: resque-uniqueue
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aaron Scruggs
|
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
148
148
|
version: '0'
|
|
149
149
|
requirements: []
|
|
150
150
|
rubyforge_project:
|
|
151
|
-
rubygems_version: 2.
|
|
151
|
+
rubygems_version: 2.4.5
|
|
152
152
|
signing_key:
|
|
153
153
|
specification_version: 4
|
|
154
154
|
summary: Unique Resque queues using redis 1.6.0 scripting, sets and not much else
|