redis_queue 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/redis_queue.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f49c187b5bb4deb1ca5849534ff7ee9760bc2fcd
4
- data.tar.gz: 10468e1f322dc6a4e68fc5f385ed04c79d28829c
3
+ metadata.gz: 50d11b4132ef645c273d292f80f7e5cb3343a6ff
4
+ data.tar.gz: 3fa5a125253a148c7ceb2ecacfb0244a3e906451
5
5
  SHA512:
6
- metadata.gz: ce68bfda0e8abdbd3a5b189f47d0496004808e1be7f320349127fc6ff749a0cb66d25d75f0537b8158a6dfaf3e7a1aa8157747f26bc4542afbf0a4bc3c8aa5a2
7
- data.tar.gz: 9ee5a1184dacaa73a10906aa03587a6a37eb50599c5e6a56a1d9ecea72fafe7d15c3c2b2a445b40924fb3c06c6c6eb07ad94d95f5cac9c5e12b67c142ea6113a
6
+ metadata.gz: ae6cec0bcd1f7414d8a25b9300e53c2175a3f70ae23607f6bb57e2ae93a75eaa9271e5e0e6a559161bdad086563d9f0355964b8c9abb18bf35a756cc8e811902
7
+ data.tar.gz: 1b943a1bd0e3a0b2fc04f37b96db705c378c8dcea298ab134ae239b4108b543728a310ff1a23649e12fba6f428a689c201591f9932bbabea3e508880acf771ff
data/lib/redis_queue.rb CHANGED
@@ -52,7 +52,7 @@ class RedisQueue
52
52
  local vals = redis.call('hkeys', ARGV[2])
53
53
  for i = 1, table.getn(vals) do
54
54
  local timestamp = redis.call('hget', ARGV[2], vals[i])
55
- if timestamp < ARGV[3] then
55
+ if tonumber(timestamp) < tonumber(ARGV[3]) then
56
56
  redis.call('lpush', ARGV[1], vals[i])
57
57
  redis.call('hdel', ARGV[2], vals[i])
58
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Ignacio Fernandez