Hello all!
Vincent F. was kind enough to let me start maintaining the ShortURL
gem, which means that I was able to fix the support for RubyURL today
and release a new gem.
$ gem install shorturl
This will give you the ShortURL library, which currently supports over
20 URL-shortening services. RubyURL.com is the default service that it
works with.
require ‘rubygems’
require ‘shorturl’
ShortURL.shorten( ‘http://planetargon.com’ )
ShortURL.shorten( ‘http://planetargon.com’, :tinyurl )
Additionally, this gem provides a command-line interface, which will
allow you to generate short URLs.
shorturl http://rubyforge.org
shorturl http://rubyforge.org moourl
http://moourl.com/huyk6
shorturl http://rubyforge.org urltea
For more information, visit the project on RubyForge.
Additionally, if you’re using QuickSilver on OSX, here is a way to use
RubyURL.com through QuickSilver.
Cheers,
Robby