- Add
IPAddr#to_json/as_json
#77 (taketo1113) - Consider IPv4-mapped IPv6 addresses link local/loopback if IPV4 address is private #65 (Earlopain)
- Fix broken exception messages #64 (lrandall-godaddy)
- ntop: Measure address size in bytes #61 (hanazuki)
- String#split seems to be faster than capturing digits with Regexp #50 (amatsuda)
- Prefer String#start_with? over Regexp.match #49 (amatsuda)
- Add IPAddr#wildcard_mask #44 (taketo1113)
- Add IPAddr.cidr to return ip address in cidr notation #23 (beanieboi)
- Consider IPv4-mapped IPv6 addresses private if IPv4 address is private #57 (jeremyevans)
- Improve performance of include? by 5-10x #47 (skipkayhil)
- No user-visible changes for gem users
- Fix exception calling
to_range' after
freeze' - fix #35 #36 (esparta) - IPAddr#native must also coerce
@mask_addr
#34 (casperisfine) - Expose IPAddr::VERSION #33 (casperisfine)
- Ruby 2.3 is the minimum supported version
- Follow the license change in Ruby and add BSD-2-Clause
- Make the parser a bit stricter Bug #15832
- Disallow leading zeros and extra slashes in mask
- Make IPAddr#include? consider range of argument Bug #14119
- Support zone identifiers in IPv6 addresses Feature #10911
- Fix include? and ipv4_mapped (ruby#31)
- Include the input in the message when raising InvalidAddressError [Feature #5987] (https://bugs.ruby-lang.org/issues/5987)
- Enable frozen_string_literal and do a bit of code cleanup
- Add
IPAddr#link_local?
Feature #10912 - Add
IPAddr#private?
Feature #11666 - Add
IPAddr#loopback?
- IPAddr.new now rejects invalid address mask. [Bug #13399]
- Warn that
IPAddr#ipv4_compat
and#ipv4_compat?
are deprecated [Bug #13769]
- Add IPAddr#prefix
- Initial release as gem extracted from ruby 2.4.1.