From: Arthur Schreiber Date: 2008-07-04T02:18:28+09:00 Subject: [ruby-core:17557] [Ruby 1.8 - Bug #223] (Open) Net::FTP#sendport incompatible with Mathn library Issue #223 has been reported by Arthur Schreiber. ---------------------------------------- Bug #223: Net::FTP#sendport incompatible with Mathn library http://redmine.ruby-lang.org/issues/show/223 Author: Arthur Schreiber Status: Open Priority: Normal Assigned to: Category: Target version: The Mathn library modifies the #/ Operator to return a Rational instead of an Integer. But Net::FTP#sendport relies on getting an Integer and not a Rational value. Using #div instead of #/ for division fixes this error. @ftp.send(:sendport, "192.168.0.1", 1234) writes "PORT 192,168,0,1,4,210\r\n" to the socket require "mathn" @ftp.send(:sendport, "192.168.0.1", 1234) writes "PORT 192,168,0,1,617/128,210\r\n" to the socket. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://redmine.ruby-lang.org/my/account