Vincent Foley
Posts: 512
Nickname: gnuvince
Registered: Apr, 2005
Vincent Foley is a hobbyist Rubyist.
ShortURL
Posted: Jun 1, 2005 5:40 PM
This post originated from an RSS feed registered with Ruby Buzz
by Vincent Foley.
Original Post: ShortURL
Feed Title: Vincent Foley-Bourgon
Feed URL: http://www.livejournal.com/~gnuvince/data/rss
Feed Description: Vincent Foley-Bourgon - LiveJournal.com
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Vincent Foley
Latest Posts From Vincent Foley-Bourgon
Advertisement
Hi everyone, I am please to announce the release of my second open-source software, ShortURL[1]. ShortURL is a very simple library to shorten long URLs using services such as TinyURL and RubyURL. It's so simple that it consists of a single class and three methods :) 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"
This is a first release, so I expect many bugs to show up (I should probably catch more exceptions). Cheers! Vincent P.S: I'm pretty excited, this is my first Ruby software released as a gem
Read: ShortURL