net-ssh 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,9 @@
1
1
 
2
+ === 2.2.2 / 04 Jan 2012
3
+
4
+ * Fixed: Connection hangs on ServerVersion.new(socket, logger) [muffl0n]
5
+ * Avoid dying when unsupported auth mechanisms are defined [pcn]
6
+
2
7
  === 2.2.1 / 24 Aug 2011
3
8
 
4
9
  * Do not prompt any passphrases before trying all identities from agent. [musybite]
@@ -68,7 +68,12 @@ module Net; module SSH; module Authentication
68
68
  attempted << name
69
69
 
70
70
  debug { "trying #{name}" }
71
- method = Methods.const_get(name.split(/\W+/).map { |p| p.capitalize }.join).new(self, :key_manager => key_manager)
71
+ begin
72
+ method = Methods.const_get(name.split(/\W+/).map { |p| p.capitalize }.join).new(self, :key_manager => key_manager)
73
+ rescue NameError => ne
74
+ debug{"Mechanism #{name} was requested, but isn't a known type. Ignoring it."}
75
+ next
76
+ end
72
77
 
73
78
  return true if method.authenticate(next_service, username, password)
74
79
  rescue Net::SSH::Authentication::DisallowedMethod
@@ -73,7 +73,8 @@ module Net; module SSH; module Transport
73
73
 
74
74
  @host_key_verifier = select_host_key_verifier(options[:paranoid])
75
75
 
76
- @server_version = ServerVersion.new(socket, logger)
76
+
77
+ @server_version = timeout(options[:timeout] || 0) { ServerVersion.new(socket, logger) }
77
78
 
78
79
  @algorithms = Algorithms.new(self, options)
79
80
  wait { algorithms.initialized? }
@@ -51,7 +51,7 @@ module Net; module SSH
51
51
  MINOR = 2
52
52
 
53
53
  # The tiny component of this version of the Net::SSH library
54
- TINY = 1
54
+ TINY = 2
55
55
 
56
56
  # The current version of the Net::SSH library as a Version instance
57
57
  CURRENT = new(MAJOR, MINOR, TINY)
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "net-ssh"
3
3
  s.rubyforge_project = 'net-ssh'
4
- s.version = "2.2.1"
4
+ s.version = "2.2.2"
5
5
  s.summary = "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol."
6
6
  s.description = s.summary
7
7
  s.authors = ["Jamis Buck", "Delano Mandelbaum"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: net-ssh
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.2.1
5
+ version: 2.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jamis Buck
@@ -11,8 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-08-24 00:00:00 -04:00
15
- default_executable:
14
+ date: 2012-01-05 00:00:00 Z
16
15
  dependencies: []
17
16
 
18
17
  description: "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol."
@@ -141,7 +140,6 @@ files:
141
140
  - test/transport/test_server_version.rb
142
141
  - test/transport/test_session.rb
143
142
  - test/transport/test_state.rb
144
- has_rdoc: true
145
143
  homepage: http://github.com/net-ssh/net-ssh
146
144
  licenses: []
147
145
 
@@ -169,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
167
  requirements: []
170
168
 
171
169
  rubyforge_project: net-ssh
172
- rubygems_version: 1.5.2
170
+ rubygems_version: 1.8.10
173
171
  signing_key:
174
172
  specification_version: 3
175
173
  summary: "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol."