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: 119,289 of 189,455
Downloads: 5,807

Daily

Ranking: 84,964 of 189,432
Downloads: 0

Depended by

RankDownloadsName
60,71717,385gimme_poc

Depends on

RankDownloadsName
91,233,545,601rake
231,088,514,532public_suffix
74576,596,639pry
1,10341,369,712shoulda

Owners

#GravatarHandle
1iconbinarymason