jjbananas/gitriol — pull request #1 by MrAdamCook (2012-11-21 12:46:40+00:00)
Title: FTP over Explicit TLS/SSL (FTPES)

Steps for Setting up FTPFXPTLS

1) Open cmd and enter : 'gem install ftpfxp'

2) Navigate to where you have installed Ruby then 'lib/ruby/gems/1.8/gems/ftpfxp-0.0.4/lib/ftpfxp' and open 'ftpfxptls.rb' in a text editor.
Replace the function 'FTPFXPTLS.open' (and everything inside) with :

def FTPFXPTLS.open(host, user = nil, passwd = nil, mode = 0, acct = nil)
ftpfxptls = new(host)
if user
ftpfxptls.login(user, passwd, mode, acct)
end

if block_given?
begin
yield ftpfxptls
ensure
ftpfxptls.close
end
else
ftpfxptls
end
end