The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
ShortURL

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Vincent Foley

Posts: 512
Nickname: gnuvince
Registered: Apr, 2005

Vincent Foley is a hobbyist Rubyist.
ShortURL Posted: Jun 1, 2005 5:40 PM
Reply to this message Reply

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

Topic: Racing history in the making Previous Topic   Next Topic Topic: Sign up for Rails Day

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use