Sha256: 6ae8277dece0835101b65fe02d9f577b43ccd9514e1292fb59d07fce66ae6b9c

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

= ShortURL

== Summary 
ShortURL is a very simple library to use URL shortening services such as
TinyURL or RubyURL.

== Installation
ShortURL is available as a gem, installation is just like any other gem:
<tt>$ gem install -r shorturl</tt>

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

== Usage: 
call-seq:
  require "shorturl"
  puts ShortURL.shorten("http://mypage.com")
  puts ShortURL.shorten("http://mypage.com", :tinyurl)

The second parameter represents the service you want to use.  These are:
- <tt>:rubyurl</tt>
- <tt>:tinyurl</tt>
- <tt>:snorl</tt>
- <tt>:snipurl</tt>
- <tt>:metamark</tt>
- <tt>:makeashorterlink</tt>
- <tt>:skinnylink</tt>
- <tt>:linktrim</tt>
- <tt>:shorterlink</tt>

Note that you can use <tt>ShortURL.valid_services</tt> 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 (don't know your real name, sorry) for
  helping me with creating and uploading a RubyGem
  
== Author
Vincent Foley

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shorturl-0.3.0 README