Bug #760: Net::FTP does not work when "mathn" is loaded.
http://redmine.ruby-lang.org/issues/show/760

Author: Lavir the Whiolet
Status: Open, Priority: Normal

Net::FTP starts raising exceptions when "mathn" is loaded. The problem is in Net::FTP#sendport(): when "mathn" is required, "port / 256" starts resulting in Rational rather than in Integer. And "sprintf("%d", port)" results in incorrect "number/256" string (as Rational#to_s() does) rather than just "number".


----------------------------------------
http://redmine.ruby-lang.org