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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
ShortURL 0.8.4 released
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password