lib/dech/yahoo/ftp.rb in dech-0.1.0 vs lib/dech/yahoo/ftp.rb in dech-0.1.1

- old
+ new

@@ -36,10 +36,13 @@ end private def ftp_connection - Net::FTP.open(@host, @username, @password){|ftp| yield(ftp) } + Net::FTP.open(@host, @username, @password) do |ftp| + ftp.passive = true + yield(ftp) + end end end end end