rb-cola 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61104e2a46792defb913daa94a0bf640070bc25926d37b6364a605ccbd955a86
4
- data.tar.gz: 60d3ef544779d8da974ac807821ce937a67a0044e5c3c55a852b0ee85c2ab914
3
+ metadata.gz: '0903814500fa23a1ec6c9db6091f35eec83d16a5d14d9fdefe7b1e2b1acb172d'
4
+ data.tar.gz: 32e6c5ea04cd0c0b1c141e1eebdd8f59d7479d253abdefb18796c071c5b9f8b5
5
5
  SHA512:
6
- metadata.gz: f780b9d8fb8d691162c28e489149ddd13d2d754b46998a4105345a3749a3af1332289d3a618ab284ba8d18f46c32124e77a2fb166175f85dff26404b2eadb073
7
- data.tar.gz: 1b8ebf49d6f3e3cfa99b7688dbe7879bb2e25d8577e1eaa71cf0036f154eeac19e6bc81ad595eb091645372ad1f9ccdc071ac8adca222d1dd6cc4527ddf0aae6
6
+ metadata.gz: 6ce09c08a12d047e5f5c0046fee76b5f383d7969d522b2214865f1f8a1c615d3924c955163dfc328a8db6a7839326dbfacc66fa10bbca524232b48e49ed9b065
7
+ data.tar.gz: 6582f60da5b9e1753666377c937a4bf26c97fbb859ecc0f357bc3e8145986b5f1c31bfa4054a22d56456b2700f995b1b552b075dd116ab203a5e01cc03b6365a
@@ -24,6 +24,8 @@ module Cola
24
24
  @retries = options[:retries] ||= 0
25
25
  end
26
26
 
27
+ # returns the count of the items on the queue.
28
+ # note that this returns the total number which might include expired messages
27
29
  def len
28
30
  @redis.llen @queue_name
29
31
  end
@@ -68,6 +70,7 @@ module Cola
68
70
  end
69
71
 
70
72
  @redis.lpush(@queue_name, wrapped.to_json)
73
+ return wrapped
71
74
  end
72
75
 
73
76
  def pop(non_block = false, timeout: @timeout)
@@ -1,4 +1,4 @@
1
1
  module Cola
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-cola
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khash Sajadi