Hello all!
Vincent Foley 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
> shorturl http://rubyforge.org urltea
For more information, visit the project on RubyForge.
* http://rubyforge.org/projects/shorturl/
* http://shorturl.rubyforge.org/ (Documentation)
Additionally, if you're using QuickSilver on OSX, here is a way to use RubyURL.com through QuickSilver.
Cheers,
Robby
ยทยทยท
--
Robby Russell
http://www.robbyonrails.com # my blog
http://www.planetargon.com # my business
http://www.programmingrails.com # my book