ActsAsLink
ActsAsLink provides:
- verification if a link is broken;
- verification if a link is to an image;
- shortening links with bit.ly.
Enjoy! ;)
Installation
gem install acts_as_link
Example
require 'rubygems' require 'acts_as_link' link = ActsAsLink::Link.new('http://google.com') link.is_broken? #false link.is_an_image? #false link.shorten #"http://bit.ly/esVFpo"
Maintainers
- FabrÃcio Campos (github.com/FabricioFFC)
How to collaborate
If you would collaborate, you can create a fork, apply the modification and submit a pull request :)