net-ssh 2.0.18 → 2.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,14 @@
1
+
2
+ === 2.0.19 / 16 Jan 2010
3
+
4
+ * Support plus sign in sshconfig hostname [Jason Weathered]
5
+
6
+
1
7
  === 2.0.18 / 15 Jan 2010
2
8
 
3
9
  * Fix related to #recv(1) to #readpartial change in 2.0.16 [Hans de Graaff, Delano Mandelbaum]
4
10
 
11
+
5
12
  === 2.0.17 / 14 Dec 2009
6
13
 
7
14
  * Don't load net/ssh/authentication/pageant on Windows with Ruby 1.9 [Travis Reeder, Delano Mandelbaum]
data/Manifest CHANGED
@@ -28,6 +28,7 @@ lib/net/ssh/known_hosts.rb
28
28
  lib/net/ssh/loggable.rb
29
29
  lib/net/ssh/packet.rb
30
30
  lib/net/ssh/prompt.rb
31
+ lib/net/ssh/proxy/command.rb
31
32
  lib/net/ssh/proxy/errors.rb
32
33
  lib/net/ssh/proxy/http.rb
33
34
  lib/net/ssh/proxy/socks4.rb
@@ -69,6 +70,7 @@ lib/net/ssh/version.rb
69
70
  net-ssh.gemspec
70
71
  setup.rb
71
72
  support/arcfour_check.rb
73
+ support/ssh_tunnel_bug.rb
72
74
  test/authentication/methods/common.rb
73
75
  test/authentication/methods/test_abstract.rb
74
76
  test/authentication/methods/test_hostbased.rb
@@ -81,6 +83,7 @@ test/authentication/test_session.rb
81
83
  test/common.rb
82
84
  test/configs/eqsign
83
85
  test/configs/exact_match
86
+ test/configs/host_plus
84
87
  test/configs/multihost
85
88
  test/configs/wild_cards
86
89
  test/connection/test_channel.rb
@@ -170,6 +170,7 @@ module Net; module SSH
170
170
  def pattern2regex(pattern)
171
171
  pattern = "^" + pattern.to_s.gsub(/\./, "\\.").
172
172
  gsub(/\?/, '.').
173
+ gsub(/([+\/])/, '\\\\\\0').
173
174
  gsub(/\*/, '.*') + "$"
174
175
  Regexp.new(pattern, true)
175
176
  end
@@ -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 = 18
54
+ TINY = 19
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.18"
4
+ s.version = "2.0.19"
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"]
@@ -103,6 +103,7 @@
103
103
  test/common.rb
104
104
  test/configs/eqsign
105
105
  test/configs/exact_match
106
+ test/configs/host_plus
106
107
  test/configs/multihost
107
108
  test/configs/wild_cards
108
109
  test/connection/test_channel.rb
@@ -0,0 +1,10 @@
1
+ # Jump through hosts with one SSH call
2
+ # via <http://glandium.org/blog/?p=308>
3
+ Host *+*
4
+ ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') PATH=.:\$PATH nc -w1 $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')
5
+
6
+ Host office-offsite
7
+ HostName work-gateway+office-workstation
8
+
9
+ Host test.host
10
+ Compression yes
@@ -90,7 +90,12 @@ class TestConfig < Test::Unit::TestCase
90
90
  assert_equal 1234, net_ssh[:port]
91
91
  assert_equal 1024, net_ssh[:rekey_limit]
92
92
  end
93
-
93
+
94
+ def test_load_with_plus_sign_hosts
95
+ config = Net::SSH::Config.load(config(:host_plus), "test.host")
96
+ assert config['compression']
97
+ end
98
+
94
99
  private
95
100
 
96
101
  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.18
4
+ version: 2.0.19
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-01-15 00:00:00 -05:00
13
+ date: 2010-01-16 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -112,6 +112,7 @@ files:
112
112
  - test/common.rb
113
113
  - test/configs/eqsign
114
114
  - test/configs/exact_match
115
+ - test/configs/host_plus
115
116
  - test/configs/multihost
116
117
  - test/configs/wild_cards
117
118
  - test/connection/test_channel.rb