beanpool 0.1.2 → 0.1.4

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: 5984f05ecf77b56cc3f5ff52d8b5aad0a9f19e77
4
- data.tar.gz: 8f9ca1bfbddea6e765bbd0597216f126e7fbca11
3
+ metadata.gz: ad5d3c20ab570779d1166d384488141226b617a1
4
+ data.tar.gz: 8ec26e41bb800726ef2646c50a87f986b60b882a
5
5
  SHA512:
6
- metadata.gz: 242dcd6d102801b07d0fb6748deb29d21a002cda2d013a6628a4ed0a6c9ea348fe372675e1b26dc7f0c2d557cdbf98057b269aa3d80d4f9e9f85068adccf1859
7
- data.tar.gz: 7192ba77d94852bd7c75055491965cfa90da044d19dd0e431f1b67216f3405fde6027b3837a224ed40040e22e3ba4ad1bd80fc9d1816b105803642f1e854961e
6
+ metadata.gz: 6b1b8985bcc1b12bbaa83324e283167f76e849994fc7053e2548915440e0cd2ecf13f17d569ee5a3fcc80b6771d5e3f6a7b4f54b02c02227ef96604fdd1ae289
7
+ data.tar.gz: 8486cd0ae44ebb7e615af7684f30e781e4b61ff36e0d56cb1f9d582141bd3465eecdc4807c69be17a6c3aeea8127fe299e2966e61cd29fc7227eee040cb39d3b
@@ -66,7 +66,7 @@ class Beanpool
66
66
  if v[:time] < Time.now - 60
67
67
  begin
68
68
  @connections[k] = Beaneater.new(k)
69
- notify("Readded to live: #{k}")
69
+ notify("Re-added to live: #{k}")
70
70
  @troubled_ips.delete(k)
71
71
  rescue => ex
72
72
  notify(ex)
@@ -103,6 +103,7 @@ class Beanpool
103
103
  ip_id = connection_sample
104
104
  connection = @connections[ip_id]
105
105
  begin
106
+ notify("BEANPOOL: Putting to #{tube_name}")
106
107
  connection.tubes[tube_name].put(body, :pri => pri, :delay => delay, :ttr => ttr)
107
108
  rescue => ex
108
109
  notify(ex)
@@ -113,6 +114,10 @@ class Beanpool
113
114
  end
114
115
  end
115
116
 
117
+ def use_tube(tube_name)
118
+ connection.tubes.use(tube_name)
119
+ end
120
+
116
121
  def keystring_hash(hash)
117
122
  new_hash = {}
118
123
  hash.keys.each do |k|
@@ -1,3 +1,3 @@
1
1
  class Beanpool
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanpool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason M.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler