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: 121,445 of 196,480
Downloads: 6,021

Daily

Ranking: 68,498 of 196,444
Downloads: 0

Depended by

RankDownloadsName
62,07117,975gimme_poc

Depends on

RankDownloadsName
81,412,729,553rake
181,234,951,128public_suffix
72632,579,294pry
1,06347,479,534shoulda

Owners

#GravatarHandle
1iconbinarymason