weppos/publicsuffix-ruby — pull request #26 by itspriddle (2012-11-29 16:55:26+00:00)
Title: Allow a custom List on `PublicSuffix.parse`

I needed a way to allow ".test" as a valid TLD when using `PublicSufffix.parse`. Currently, the only way to do that is to add a custom rule to the default list.

This patch allows one to pass in a custom list when using `PublicSuffix.parse`. This way the default list can remain unchanged; eg:

```ruby
list = PublicSuffix::List.new
list << PublicSuffix::Rule.factory("test")

PublicSuffix.parse("example.test", list)
#=> example.test
```