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: 118,603 of 187,239
Downloads: 5,653

Daily

Ranking: 78,093 of 187,224
Downloads: 4

Depended by

RankDownloadsName
60,26716,993gimme_poc

Depends on

RankDownloadsName
101,151,901,046rake
231,011,545,722public_suffix
73551,545,498pry
1,10738,495,795shoulda

Owners

#GravatarHandle
1iconbinarymason