dev-ruby/
public_suffix

Parse and decompose a domain name into top level domain, domain and subdomains

https://simonecarletti.com/code/publicsuffix-ruby/

Pull Requests

If you also like to help the Gentoo project, you can consider sending a Pull Request via GitHub.
Before doing so, you might want to take a look at the wiki page.