チケット #245 が報告されました。 (by okkez _) ---------------------------------------- Bug #245: IPAddr#to_range raise ArgumentError http://redmine.ruby-lang.org/issues/show/245 起票者: okkez _ ステータス: Open 優先度: Normal 担当者: カテゴリ: Target version: ipaddr で IPv4 アドレスを以下の方法で作成した場合に IPAddr#to_range すると ArgumentError が発生します。 1.8, 1.9 ともに同じ状況です。 % ruby-1.8.x -ripaddr -ve "IPAddr.new('192.168.1.1').to_range" ruby 1.8.7 (2008-06-09 patchlevel 5000) [i686-linux] /home/kenji/all-ruby/ruby-1.8.x/lib/ruby/1.8/ipaddr.rb:371:in `set': invalid address (ArgumentError) from /home/kenji/all-ruby/ruby-1.8.x/lib/ruby/1.8/ipaddr.rb:347:in `to_range' from -e:1 添付のパッチで IPAddr#to_range は動くようになります。 ---------------------------------------- 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