beanpool 0.1.5 → 0.1.6

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: 62d2b10d914653d67f452e11b46478a68ac1b7d2
4
- data.tar.gz: 15efd579658562997ffaaf2834a1b6ab2a7ebbb7
3
+ metadata.gz: 653e0fce682e4fd504e3672e2e8a936abfd6a04c
4
+ data.tar.gz: e05f021332f3390d27c93c28f031025c3f145b15
5
5
  SHA512:
6
- metadata.gz: c20242c043d4822cedb099888789a50d0cdfda06edfc74dfcce55c67bd7020d677a7c79fe3b9baca3304970125739bcf93599e2b15bbecdb8f164a18d5fd9ffd
7
- data.tar.gz: 8442c0dd6add69c86bd7f77e3964db46d9534ebcc75132d43b2b93b3656405966bc0385aedfd01a11f1efd663bd82f331e77bf4f37b2448e6086ddd6bc92a083
6
+ metadata.gz: 919cc7491509dd1b65a2e7d236f00000e10ec059295e72fa3a9ae106139eb2a22bd56c9edd7467093e3c22a600b0dd3a33f05f13297c1b84f5b0669114f74196
7
+ data.tar.gz: ec0b09a421c7ca9870904af515d91653b6ef5a900c8d504e45029e771ece17855e366c069768928c8b3dcd86055264a1cd1e90b8b6701bf0a758c4005d3e14be
@@ -97,6 +97,7 @@ class Beanpool
97
97
  options = keystring_hash(options)
98
98
  pri = options["pri"] || 32000
99
99
  ttr = options["ttr"] || 60
100
+ reset = options['reset_use_tube']
100
101
  tube_name = options["tube_name"] || 'default'
101
102
  delay = (options["delay"]).to_i
102
103
 
@@ -112,10 +113,8 @@ class Beanpool
112
113
  connection = @connections[ip_id]
113
114
  connection.tubes[tube_name].put(body, :pri => pri, :delay => delay, :ttr => ttr)
114
115
  end
115
- end
116
-
117
- def use_tube(tube_name)
118
- connection.tubes.use(tube_name)
116
+ # Force default tube reset if requested.
117
+ connection.tubes.use(reset_use_tube) if connection && reset_use_tube
119
118
  end
120
119
 
121
120
  def keystring_hash(hash)
@@ -1,3 +1,3 @@
1
1
  class Beanpool
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanpool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason M.