resque-uniqueue 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9526c9f5e8b737923144968315ff0185374ad076
4
- data.tar.gz: 94bf7dbeaab6263e46fb84dbbb0188dc20c39bab
3
+ metadata.gz: 82dd24cd61411329eba05dbbd572892033eb222d
4
+ data.tar.gz: 4236940f19d59dcce251b233eca5dd6859ac5eb6
5
5
  SHA512:
6
- metadata.gz: 14ffbdd450c03b2a3f1f9d3f155fcad5e267d2119cb5108c26d72d196aae0d4874d000b5f3ad806a3b34ba8b726e623b79d78883e3052a1b9d5b11ff755f882a
7
- data.tar.gz: 15b8f168561acb0bdd38f16d9b6f5ff8b97589c440b67cd7fe9e5356a27228aa86363cf4b1e10c7753a132cfa474bd34bdbedd0e8665b7088bbf2074f392e7c3
6
+ metadata.gz: d2223c6664917f0f307a121b9557fd46a55c3bd5470d4c02b8aeec4f1ae65c41deae234f1b3adef7dac12abd3d953b9070d27f6f9736237f8b08e4017b4cbe21
7
+ data.tar.gz: 26d0b83e189b5d7560866e856567f5a5c5d83753aa866a673701dc632fe859ca423e5f5656555962b68f69da8c5a5cae8491b2043b2b91b9791f2681cf4ccf25
data/Gemfile CHANGED
@@ -14,5 +14,6 @@ group :development do
14
14
  gem "bundler", ">= 1.5.0"
15
15
  gem "jeweler", "~> 1.8.4"
16
16
  gem "pry"
17
+ gem "test-unit"
17
18
  end
18
19
 
@@ -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.0
1
+ 1.0.1
@@ -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
- redis.call('srem', uniqueue_name, results[1])
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)
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "resque-uniqueue"
9
- s.version = "1.0.0"
9
+ s.version = "1.0.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
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.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.2.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