Add functions to validate ipv4 and ipv6 addresses
Ruby 2.0 introduces IPAddr::InvalidAddressError
Update ipv6 examples
Don't run certain tests under 1.8.7
Merge pull request #158 from wfarr/validate_ip

[#20862] Add functions to validate ipv4 and ipv6 addresses