Issue
On the gem's home page, you write:
url = Domainatrix.parse("http://www.pauldix.net")
url.canonical # => "net.pauldix"
However, in IRB, I get the following behavior:
irb> url = Domainatrix.parse('http://www.pauldix.net')
=> #<Domainatrix::Url:0x007fd0409d5310 @scheme="http", @host="www.pauldix.net", @url="http://www.pauldix.net", @public_suffix="net", @domain="pauldix", @subdomain="www", @path="">
> url.canonical
=> "net.pauldix.www"
Is the www supposed to be a part of the canonical name?
Ruby
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin14.0.0]
Gem
$ gem list domainatrix -d
*** LOCAL GEMS ***
domainatrix (0.0.11)
Authors: Paul Dix, Brian John
Homepage: http://github.com/pauldix/domainatrix
Installed at: /Users/craibuc/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0
A cruel mistress that uses the public suffix domain list to dominate
URLs by canonicalizing, finding the public suffix, and breaking them
into their domain parts.
Issue
On the gem's home page, you write:
However, in IRB, I get the following behavior:
Is the
wwwsupposed to be a part of the canonical name?Ruby
Gem