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 +4 -4
- data/lib/beanpool/connections.rb +6 -1
- data/lib/beanpool/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad5d3c20ab570779d1166d384488141226b617a1
|
4
|
+
data.tar.gz: 8ec26e41bb800726ef2646c50a87f986b60b882a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b1b8985bcc1b12bbaa83324e283167f76e849994fc7053e2548915440e0cd2ecf13f17d569ee5a3fcc80b6771d5e3f6a7b4f54b02c02227ef96604fdd1ae289
|
7
|
+
data.tar.gz: 8486cd0ae44ebb7e615af7684f30e781e4b61ff36e0d56cb1f9d582141bd3465eecdc4807c69be17a6c3aeea8127fe299e2966e61cd29fc7227eee040cb39d3b
|
data/lib/beanpool/connections.rb
CHANGED
@@ -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("
|
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|
|
data/lib/beanpool/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|