net-ssh 2.0.21 → 2.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/README.rdoc +3 -1
- data/lib/net/ssh/config.rb +1 -1
- data/lib/net/ssh/version.rb +1 -1
- data/net-ssh.gemspec +2 -1
- data/test/configs/numeric_host +4 -0
- data/test/test_config.rb +7 -0
- metadata +3 -2
data/CHANGELOG.rdoc
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
|
2
|
+
=== 2.0.22 / 20 Apr 2010
|
3
|
+
|
4
|
+
* Fix for: "Parsing the config errors out because it coerces the "1" into an integer and then tries to split it on spaces for multiple host checking." (http://net-ssh.lighthouseapp.com/projects/36253/tickets/10) [Lee Marlow]
|
5
|
+
|
2
6
|
|
3
7
|
=== 2.0.21 / 20 Mar 2010
|
4
8
|
|
data/README.rdoc
CHANGED
data/lib/net/ssh/config.rb
CHANGED
@@ -88,7 +88,7 @@ module Net; module SSH
|
|
88
88
|
if key == 'host'
|
89
89
|
# Support "Host host1 host2 hostN".
|
90
90
|
# See http://github.com/net-ssh/net-ssh/issues#issue/6
|
91
|
-
multi_host = value.split(/\s+/)
|
91
|
+
multi_host = value.to_s.split(/\s+/)
|
92
92
|
matched_host = multi_host.select { |h| host =~ pattern2regex(h) }.first
|
93
93
|
seen_host = true
|
94
94
|
elsif !seen_host
|
data/lib/net/ssh/version.rb
CHANGED
data/net-ssh.gemspec
CHANGED
@@ -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.0.
|
4
|
+
s.version = "2.0.22"
|
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"]
|
@@ -107,6 +107,7 @@
|
|
107
107
|
test/configs/host_plus
|
108
108
|
test/configs/multihost
|
109
109
|
test/configs/nohost
|
110
|
+
test/configs/numeric_host
|
110
111
|
test/configs/wild_cards
|
111
112
|
test/connection/test_channel.rb
|
112
113
|
test/connection/test_session.rb
|
data/test/test_config.rb
CHANGED
@@ -102,6 +102,13 @@ class TestConfig < Test::Unit::TestCase
|
|
102
102
|
assert config['compression']
|
103
103
|
end
|
104
104
|
|
105
|
+
def test_load_with_numeric_host
|
106
|
+
config = Net::SSH::Config.load(config(:numeric_host), "1234")
|
107
|
+
assert config['compression']
|
108
|
+
assert_equal '2G', config['rekeylimit']
|
109
|
+
assert_equal 1980, config['port']
|
110
|
+
end
|
111
|
+
|
105
112
|
private
|
106
113
|
|
107
114
|
def config(name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-
|
13
|
+
date: 2010-04-20 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- test/configs/host_plus
|
116
116
|
- test/configs/multihost
|
117
117
|
- test/configs/nohost
|
118
|
+
- test/configs/numeric_host
|
118
119
|
- test/configs/wild_cards
|
119
120
|
- test/connection/test_channel.rb
|
120
121
|
- test/connection/test_session.rb
|