# Ipaddress 0.6.0 released

**URL:** <https://www.ruby-forum.com/t/ipaddress-0-6-0-released/191832>\
**Category:** Ruby\
**Created:** [July 19, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/ipaddress-0-6-0-released/191832 "2010-07-19T15:19:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![collimarco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecb155/32.png) [@collimarco](https://www.ruby-forum.com/u/collimarco)\
**Post date:** [July 19, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/ipaddress-0-6-0-released/191832/1 "2010-07-19T15:19:32Z")

</div>

ipaddress version 0.6.0 has been released!

> **[GitHub - ipaddress-gem/ipaddress: A library to handle IPv4 and IPv6 addresses...](https://github.com/ipaddress-gem/ipaddress)**
>
> A library to handle IPv4 and IPv6 addresses in a modern and productive way. - GitHub - ipaddress-gem/ipaddress: A library to handle IPv4 and IPv6 addresses in a modern and productive way.

IPAddress is a Ruby library to manipulate IPv4 and IPv6 addresses in a  
modern and productive way. In this release we focused on making the  
library more compatible with IPAddr.

I’ve just opened a discussion group to discuss about future  
developments, feature requests and support. You’re more than welcome  
to join:

[http://groups.google.com/group/ruby-ipaddress](http://groups.google.com/group/ruby-ipaddress)

Feel free to come back to me for any question, bug report or feature  
request.  
Hope you will enjoy it!

Here is the changelog:

== ipaddress 0.6.0

=== API changes

- IPv4#to\_s now returns the address portion only,  
to retain compatibility with IPAddr. Example:

- IPv6#to\_s now returns the address portion only,  
to retain compatibility with IPAddr. Example:

- IPv6::Unspecified#to\_s, IPv6::Loopback and  
IPv6::Mapped#to\_s now return the address portion only,  
to retain compatibility with IPAddr.

- IPv4::summarize now returns an array even if the  
result is a single subnet, to keep consistency  
and avoid confusion

=== New methods

- IPv4#to\_string and IPv6#to\_string: print the address  
with the prefix portion, like the #to\_s method in  
ipaddress 0.5.0
- IPAddress::parse, for those who don’t like the wrapper  
method IPAddress()
- IPv6#to\_string\_uncompressed, returns a string with the  
uncompressed IPv6 and the prefix
- IPv6::Mapped#to\_string, returns the IPv6 Mapped address  
with IPv4 notation and the prefix
- IPv6#reverse, returns the ip6.arpa DNS reverse lookup  
string
- IPv4#arpa and IPv6#arpa, alias of the respective #reverse  
methods
- Prefix#+, Prefix#-

=== Library structure

- Moved all the IPAddress module methods from  
lib/ipaddress/ipbase.rb to lib/ipaddress.rb
- Removed IPBase superclass
- IPv4 and IPv6 classes no longer inherit from IPBase
- Removed lib/ipaddress/ipbase.rb
- Removed test/ipaddress/ipbase\_test.rb

=== Minor fixes

- Replaced Ruby 1.9 deprecated Hash#index with Hash#key
- Removed require ruby-prof from tests which was causing  
users to install ruby-prof or manually remove the line
- Removed “must” method from tests, replaced by normal  
Test::Unit methods
- Removed duplicate Jeweler entry in Rakefile
- Made Integer#closest\_power\_of\_2 more general by adding  
an optional limit parameter
- Fixed summarization algorithm (thanks to nicolas fevrier)
- Fixed bug in prefix\_from\_ip (thanks to jdpace)

=== Documentation

- Normalized README rdoc headers
- Added documentation for IPAddress::Prefix
- Added documentation for IPAddress::IPv4 and  
IPAddress::IPv6
- Fixed formatting
- Fixed lots of typos
