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.
@@ -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
 
@@ -1,6 +1,8 @@
1
1
  = Net::SSH
2
2
 
3
- * http://net-ssh.github.com/net-ssh
3
+ * Docs: http://net-ssh.github.com/net-ssh
4
+ * Issues: http://net-ssh.lighthouseapp.com/
5
+ * Codes: http://github.com/net-ssh/net-ssh
4
6
 
5
7
  == DESCRIPTION:
6
8
 
@@ -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
@@ -51,7 +51,7 @@ module Net; module SSH
51
51
  MINOR = 0
52
52
 
53
53
  # The tiny component of this version of the Net::SSH library
54
- TINY = 21
54
+ TINY = 22
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.0.21"
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
@@ -0,0 +1,4 @@
1
+ Host 1234
2
+ Compression yes
3
+ Port 1980
4
+ RekeyLimit 2G
@@ -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.21
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-03-20 00:00:00 -04:00
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