This is a Domain Name manipulation library for Ruby. It can also be used for cookie domain validation based on the Public Suffix List.
Akinori MUSHA
BSD + MPL 1.1/GPL 2.0/LGPL 2.1
gem "domain_name", "~> 0.5.7"