Issue #4569 has been updated by Marco Ceresa.


Jonas Pfenniger wrote:

> Hi Marco, awesome lib. 

Thank you Jonas

> * IPAddr#[] and IPAddr#each don't hold the same elements, could it be a source of confusion ?

Never thought about that, but it's a good point. IPv4#[] is an alias to IPv4#octet, just some syntax sugar, could be easily removed if we think it may lead to confusion.

> * Is it possible to avoid extending the ruby core ?

It is possible indeed, especially if that's a requirement for the replacement. I chose to extend the core to make some algorithms much clearer, but nothing prevents to make them private methods and removing the extensions. Do you feel it would be better?

Regards,
Marco

----------------------------------------
Feature #4569: Replace IPAddr with IPAddress
http://redmine.ruby-lang.org/issues/4569

Author: Marco Ceresa
Status: Assigned
Priority: Normal
Assignee: Akinori MUSHA
Category: lib
Target version: 


Hello,

following the discussion we had a few months ago about replacing IPAddr with IPAddress [1]. Here is the formal request.

IPAddress is now at version 0.7.5 

URL: https://github.com/bluemonk/ipaddress

I think it's mature and backward compatible enough to be taken into consideration.

Regards,
Marco

[1] http://groups.google.com/group/ruby-core-google/browse_frm/thread/232ac6b06bacd0f5/


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