Categories: None [Edit]

lazy_domain

https://rubygems.org/gems/lazy_domain
https://github.com/m8ss/lazy_domain
The PublicSuffix gem works great if you give it nice, clean domains WITHOUT a transfer protocol. But what if your application has one (or multiple) urls with or without protocols? LazyDomain assumes it could be either way and uses URI to make up the difference. Because URI can only parse a url WITH a protocol, Lazy Domain automatically adds 'http://' if it is not already present in a url. Now you can easily use PublicSuffix for varying urls.

Total

Ranking: 120,182 of 193,756
Downloads: 5,963

Daily

Ranking: 52,349 of 193,649
Downloads: 2

Depended by

RankDownloadsName
61,32417,814gimme_poc

Depends on

RankDownloadsName
81,345,947,699rake
191,176,291,371public_suffix
71610,500,117pry
1,07245,198,387shoulda

Owners

#GravatarHandle
1iconbinarymason