capistrano 1.3.0 → 1.3.1

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *1.3.1* (January 5, 2007)
2
+
3
+ * Fix connection problems when using gateways [Ezra Zygmuntowicz]
4
+
1
5
  *1.3.0* (December 23, 2006)
2
6
 
3
7
  * Deprecate rake integration in favor of invoking `cap' directly [Jamis Buck]
@@ -21,16 +21,14 @@ module Capistrano
21
21
  def self.connect(server, config, port=22, &block)
22
22
  methods = [ %w(publickey hostbased), %w(password keyboard-interactive) ]
23
23
  password_value = nil
24
+
25
+ user, server_stripped, pport = parse_server(server)
24
26
 
25
27
  begin
26
- ssh_options = { :username => config.user,
28
+ ssh_options = { :username => (user || config.user),
27
29
  :password => password_value,
28
- :port => port,
30
+ :port => ((pport && pport != port) ? pport : port),
29
31
  :auth_methods => methods.shift }.merge(config.ssh_options)
30
-
31
- user, server_stripped, port = parse_server(server)
32
- ssh_options[:username] = user if user
33
- ssh_options[:port] = port if port
34
32
 
35
33
  Net::SSH.start(server_stripped,ssh_options,&block)
36
34
  rescue Net::SSH::AuthenticationFailed
@@ -40,7 +38,7 @@ module Capistrano
40
38
  end
41
39
  end
42
40
 
43
- # This regex is used for its byproducts, the $1-9 match vars.
41
+ # This regex is used for its byproducts, the $1-3 match vars.
44
42
  # This regex will always match the ssh hostname and if there
45
43
  # is a username or port they will be matched as well. This
46
44
  # allows us to set the username and ssh port right in the
@@ -20,7 +20,7 @@ module Capistrano
20
20
 
21
21
  MAJOR = 1
22
22
  MINOR = 3
23
- TINY = 0
23
+ TINY = 1
24
24
 
25
25
  STRING = [MAJOR, MINOR, TINY].join(".")
26
26
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: capistrano
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.3.0
7
- date: 2006-12-23 00:00:00 -07:00
6
+ version: 1.3.1
7
+ date: 2007-01-05 00:00:00 -07:00
8
8
  summary: Capistrano is a framework and utility for executing commands in parallel on multiple remote machines, via SSH. The primary goal is to simplify and automate the deployment of web applications.
9
9
  require_paths:
10
10
  - lib