# ANN: ShortURL 0.0.1

**URL:** <https://rubytalk.org/t/ann-shorturl-0-0-1/18741>\
**Category:** ruby-talk\
**Created:** [2 June 2005 00:15 UTC](https://rubytalk.org/t/ann-shorturl-0-0-1/18741 "2005-06-02T00:15:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Foley](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@Vincent\_Foley](https://rubytalk.org/u/Vincent_Foley)\
**Post date:** [2 June 2005 00:15 UTC](https://rubytalk.org/t/ann-shorturl-0-0-1/18741/1 "2005-06-02T00:15:24Z")

</div>

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](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&quot;\](http://groups-beta.google.com/group/comp.lang.ruby&quot;%5C))

=\> "[http://rubyurl.com/eiRDm&quot](http://rubyurl.com/eiRDm&quot);

> > ShortURL.shorten("[http://groups-beta.google.com/group/comp.lang.ruby&quot;](http://groups-beta.google.com/group/comp.lang.ruby&quot;), :tinyurl)

=\> "[http://tinyurl.com/bfuu2&quot](http://tinyurl.com/bfuu2&quot);

> >

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

[1] [http://shorturl.rubyforge.org](http://shorturl.rubyforge.org)

---

<div class="post-metadata">

**Author:** ![Jeevan](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@Jeevan](https://rubytalk.org/u/Jeevan)\
**Post date:** [2 June 2005 05:50 UTC](https://rubytalk.org/t/ann-shorturl-0-0-1/18741/2 "2005-06-02T05:50:23Z")

</div>

Just installed it and it works well. Nice work. 🙂

---

<div class="post-metadata">

**Author:** ![Vincent\_Foley](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@Vincent\_Foley](https://rubytalk.org/u/Vincent_Foley)\
**Post date:** [3 June 2005 03:30 UTC](https://rubytalk.org/t/ann-shorturl-0-0-1/18741/3 "2005-06-03T03:30:24Z")

</div>

I just released version 0.1.0. See [http://shorturl.rubyforge.org](http://shorturl.rubyforge.org) for  
the ChangeLog. Usage stays the same
