README

Path: README
Last Update: Sun Jan 06 15:48:40 -0800 2008

ShortURL 0.8.4

Summary

ShortURL is a very simple library to use URL shortening services such as RubyURL, urlTea, and TinyURL.

Installation

ShortURL is available as a gem, installation is just like any other gem: $ gem install shorturl

You can also download the tar.bz2 archive at rubyforge.org/frs/?group_id=732 if you do not want to use the gem.

Supported services

Here is the list of the services supported by ShortURL:

Usage:

call-seq:

  require "shorturl"
  puts ShortURL.shorten("http://mypage.com")
  puts ShortURL.shorten("http://mypage.com", :moourl)

The second parameter represents the service you want to use. These are:

  • :rubyurl
  • :tinyurl
  • :shorl
  • :snipurl
  • :metamark
  • :makeashorterlink
  • :skinnylink
  • :linktrim
  • :shorterlink
  • :minlink
  • :lns
  • :fyad
  • :d62
  • :shiturl
  • :littlink
  • :clipurl
  • :shortify
  • :orz
  • :moourl
  • :urltea

You can use ShortURL.valid_services to obtain a list of the valid services (in case I forget to update the documentation)

Thanks

  • Marcel Molina Jr., Devin Mullins for some ideas
  • imperator from ruby-lang (I don‘t know your real name, sorry) for helping me with creating and uploading a RubyGem
  • Daniel Dipaolo for telling me about ln-s.net and fyad.org

Authors

  • Vincent Foley (original developer)
  • Robby Russell <robbyrussell@gmail.com>

[Validate]