Project

General

Profile

Actions

Bug #245

closed

IPAddr#to_range raise ArgumentError

Added by okkez (okkez _) over 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-dev:35400]

Description

=begin
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 は動くようになります。
=end


Files

a.diff (384 Bytes) a.diff okkez (okkez _), 07/09/2008 12:15 PM
Actions #1

Updated by ko1 (Koichi Sasada) over 16 years ago

  • Assignee set to knu (Akinori MUSHA)

=begin

=end

Actions #2

Updated by nobu (Nobuyoshi Nakada) over 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
r17940でコミット済みです。
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0