github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

robbyrussell / shorturl

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 38
    • 7
  • Source
  • Commits
  • Network (7)
  • Issues (1)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A Ruby gem that connects to various URL shortening services like RubyURL, moourl, etc. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updating ChangeLog, bumping gem up to 0.8.7 
robbyrussell (author)
Fri Oct 09 10:39:26 -0700 2009
commit  e6e8496d96d6c262b9be3883482a7421282b399f
tree    c365cf2d1c8be8c20178a0949ce8f32b774b3e35
parent  ac3a47b4c9abea5e920bc63480b9d996cc98adfa
shorturl /
name age
history
message
file ChangeLog Fri Oct 09 10:39:26 -0700 2009 Updating ChangeLog, bumping gem up to 0.8.7 [robbyrussell]
file MIT-LICENSE Thu Jul 24 08:47:35 -0700 2008 Initial checkin (couldnt figure out how to reta... [robbyrussell]
file README Thu Jul 24 08:47:35 -0700 2008 Initial checkin (couldnt figure out how to reta... [robbyrussell]
file Rakefile Thu Jul 24 08:47:35 -0700 2008 Initial checkin (couldnt figure out how to reta... [robbyrussell]
file TODO Thu Jul 24 08:47:35 -0700 2008 Initial checkin (couldnt figure out how to reta... [robbyrussell]
directory bin/ Thu Jul 24 08:47:35 -0700 2008 Initial checkin (couldnt figure out how to reta... [robbyrussell]
directory doc/ Mon Mar 02 08:14:16 -0800 2009 Testing an update with github to see if it will... [robbyrussell]
directory examples/ Thu Jul 24 08:47:35 -0700 2008 Initial checkin (couldnt figure out how to reta... [robbyrussell]
directory lib/ Tue Sep 08 07:05:46 -0700 2009 Add support for ur1.ca [raneksi]
file shorturl.gemspec Fri Oct 09 10:39:26 -0700 2009 Updating ChangeLog, bumping gem up to 0.8.7 [robbyrussell]
directory test/ Mon Mar 02 08:14:16 -0800 2009 Testing an update with github to see if it will... [robbyrussell]
README
= 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:
<tt>$ gem install 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.

== Supported services
Here is the list of the services supported by ShortURL:
* http://rubyurl.com
* http://tinyurl.com
* http://shorl.com
* http://snipurl.com
* http://metamark.net
* http://makeashorterlink.com
* http://skinnylink.com
* http://linktrim.com
* http://shorterlink.com
* http://minilink.org
* http://ln-s.net
* http://fyad.org
* http://d62.net
* http://shiturl.com
* http://littlink.com
* http://clipurl.com
* http://shortify.com
* http://0rz.net
* http://moourl.com
* http://urltea.com

== 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:
* <tt>:rubyurl</tt>
* <tt>:tinyurl</tt>
* <tt>:shorl</tt>
* <tt>:snipurl</tt>
* <tt>:metamark</tt>
* <tt>:makeashorterlink</tt>
* <tt>:skinnylink</tt>
* <tt>:linktrim</tt>
* <tt>:shorterlink</tt>
* <tt>:minlink</tt>
* <tt>:lns</tt>
* <tt>:fyad</tt>
* <tt>:d62</tt>
* <tt>:shiturl</tt>
* <tt>:littlink</tt>
* <tt>:clipurl</tt>
* <tt>:shortify</tt>
* <tt>:orz</tt>
* <tt>:moourl</tt>
* <tt>:urltea</tt>


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 (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>
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server