[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ShortURL 0.8.4 released

Robby Russell

1/7/2008 5:09:00 AM

Hello all!

Vincent Foley was kind enough to let me start maintaining the ShortURL
gem, which means that I was able to fix the support for RubyURL today
and release a new gem.

$ gem install shorturl

This will give you the ShortURL library, which currently supports over
20 URL-shortening services. RubyURL.com is the default service that it
works with.

require 'rubygems'
require 'shorturl'

ShortURL.shorten( 'http://planetargo... )
ShortURL.shorten( 'http://planetargo..., :tinyurl )

Additionally, this gem provides a command-line interface, which will
allow you to generate short URLs.

> shorturl http://rub...



http://rubyu...

> shorturl http://rub... moourl


http://moourl...

> shorturl http://rub... urltea



http://urlte...

For more information, visit the project on RubyForge.

* http://rub.../projects/shorturl/
* http://shorturl.ruby... (Documentation)

Additionally, if you're using QuickSilver on OSX, here is a way to use
RubyURL.com through QuickSilver.

* http://rubyu...

Cheers,
Robby



--
Robby Russell
http://www.robbyo... # my blog
http://www.plane... # my business
http://www.programmin... # my book