From: Simone Carletti Date: 2010-12-17T22:59:58+09:00 Subject: [ruby-core:33758] Re: Proposal: IPAddress in the standard library --0016e6434bd6cdbe4804979b9535 Content-Type: text/plain; charset=ISO-8859-1 I'm really interested in this topic. I the last couple of years I had to deal with IP manipulation several times, especially for the Whois ( http://www.ruby-whois.org ) and Net::DNS gems. I had the chance to give IPAddress a try in the past, and I really enjoyed it. The current IPAddr implementation doesn't expose some very useful methods, such as the ability to validate an IP Address on-the-fly without instantiating an IPAddr object, and I often had to rely on hacks or cut&paste to accomplish this. Also, IPAddr has a couple of weird bugs when you have to work with IP ranges (thanks to Marco for helping me spotting them out in the past ;) ). I'm really curious to know if the Ruby would consider this proposal. -- Simone On Thu, Dec 16, 2010 at 8:31 AM, Marco Ceresa wrote: > Hello, > > IPAddress [1] is a library to manipulate IPv4 and IPv6 addresses. It > has been written as a replacement for IPAddr, trying to fix some of > its bugs, and at the same time extending its functionalities and > offering a more powerful and flexible interface. > > Migrating from IPAddr to IPAddress is very easy, as most of the > methods have the same name and same behaviour. Moreover, IPAddress is > around 50% faster than IPAddr, and it's very well documented in each > of its parts. The code is very clear, easy to read, to maintain and to > extend, consisting mostly of one line methods. > > I've been in touch with the maintainer of IPAddr, Mr. Akinori MUSHA, > asking him if he would consider IPAddress as a replacement, and he > suggested me to write to -core. > > I think IPAddress is mature enough, so here is my proposal. Let me > know what you think. > > Best regards, > Marco > > [1] https://github.com/bluemonk/ipaddress > > --0016e6434bd6cdbe4804979b9535 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I'm really interested in this topic.

I th= e last couple of years I had to deal with IP manipulation several times,
especially for the Whois (=A0= http://www.ruby-whois.org ) and Net::DNS gems.

I had the chance to give IPAddress a try in the past,
and I really enjoyed it. The current IPAddr implementation doesn&#= 39;t expose some very useful methods,
such as the ability to vali= date an IP Address on-the-fly without=A0instantiating=A0an IPAddr object,
and I often had to rely on hacks or cut&paste to accomplish this.<= /div>

Also, IPAddr has a couple of weird bugs when you h= ave to work with IP ranges
(thanks to Marco for helping me spotti= ng them out in the past ;) ).

I'm really curious to know if the Ruby would consid= er this proposal.

-- Simone


On Thu, Dec 16, 2010 at 8:31 AM, Marco Ceresa <ceresa@gmail.com>= ; wrote:
Hello,

IPAddress [1] is a library to manipulate IPv4 and IPv6 addresses. It
has been written as a replacement for IPAddr, trying to fix some of
its bugs, and at the same time extending its functionalities and
offering a more powerful and flexible interface.

Migrating from IPAddr to IPAddress is very easy, as most of the
methods have the same name and same behaviour. Moreover, IPAddress is
around 50% faster than IPAddr, and it's very well documented in each of its parts. The code is very clear, easy to read, to maintain and to
extend, consisting mostly of one line methods.

I've been in touch with the maintainer of IPAddr, Mr. Akinori MUSHA, asking him if he would consider IPAddress as a replacement, and he
suggested me to write to -core.

I think IPAddress is mature enough, so here is my proposal. Let me
know what you think.

Best regards,
Marco

[1] htt= ps://github.com/bluemonk/ipaddress




--0016e6434bd6cdbe4804979b9535--