require 'net/ftp'ftp = Net::FTP.new('ftp.ruby-lang.org')ftp.passive = trueftp.loginftp.chdir('/pub/ruby/1.8')ftp.getbinaryfile('1.8.2-patch1.gz')ftp.close