excon 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of excon might be problematic. Click here for more details.
- data/excon.gemspec +2 -2
- data/lib/excon.rb +1 -1
- data/lib/excon/connection.rb +6 -3
- metadata +3 -3
data/excon.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'excon'
|
16
|
-
s.version = '0.0.
|
17
|
-
s.date = '2010-06-
|
16
|
+
s.version = '0.0.26'
|
17
|
+
s.date = '2010-06-07'
|
18
18
|
s.rubyforge_project = 'excon'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
data/lib/excon.rb
CHANGED
data/lib/excon/connection.rb
CHANGED
@@ -93,16 +93,19 @@ module Excon
|
|
93
93
|
end
|
94
94
|
|
95
95
|
Thread.current[:_excon_sockets] ||= {}
|
96
|
-
Thread.current[:_excon_sockets][
|
96
|
+
Thread.current[:_excon_sockets][socket_key] = new_socket
|
97
97
|
end
|
98
98
|
|
99
99
|
def socket
|
100
100
|
Thread.current[:_excon_sockets] ||= {}
|
101
|
-
if !Thread.current[:_excon_sockets][
|
101
|
+
if !Thread.current[:_excon_sockets][socket_key] || Thread.current[:_excon_sockets][socket_key].closed?
|
102
102
|
reset_socket
|
103
103
|
end
|
104
|
-
Thread.current[:_excon_sockets][
|
104
|
+
Thread.current[:_excon_sockets][socket_key]
|
105
105
|
end
|
106
106
|
|
107
|
+
def socket_key
|
108
|
+
"#{@connection[:host]}:#{@connection[:port]}"
|
109
|
+
end
|
107
110
|
end
|
108
111
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 26
|
9
|
+
version: 0.0.26
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- geemus (Wesley Beary)
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-07 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|