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
