Read my latest article: Was away on vacation (posted Sun, 11 May 2008 22:33:00 GMT)

RubyURL-friendly library

Posted by Robby Russell Wed, 01 Jun 2005 23:21:00 GMT

Vincent Foley-Bourgon has just released ShortURL.

From his post:

You can install it with RubyGems:

$ gem install -r shorturl

or you can go to http://rubyforge.org/frs/?group_id=732 and download
the tar.bz2 archive.

Usage is very simple, here's a sample irb session:

>> require "rubygems" 
=> true 
>> require "shorturl" 
=> false 
>> ShortURL.shorten("http://groups-beta.google.com/group/comp.lang.ruby") 
=> "http://rubyurl.com/eiRDm" 
>> ShortURL.shorten("http://groups-beta.google.com/group/comp.lang.ruby", :tinyurl) 
=> "http://tinyurl.com/bfuu2" 


On that note, RubyURL is almost at 1,000 unique URLs!
Subscribe to my RSS feed Enjoying the content? Be sure to subscribe to my RSS feed.
Comments

Share your thoughts... (really...I want to hear them)

Comments