This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install robbyrussell-shorturl
Robby Russell (author)
Mon Mar 02 08:14:24 -0800 2009
commit ae798649c51f6133f1e837cc8f5e8a23a2699b48
tree e6461927a98a96a1cc8ea69dbf65ee01171026d2
parent 4a78d3207d89e1c7e480d7ba7fde185b8d4a3eac parent 1aca118065061808f913de81a5aa4db48191ced6
tree e6461927a98a96a1cc8ea69dbf65ee01171026d2
parent 4a78d3207d89e1c7e480d7ba7fde185b8d4a3eac parent 1aca118065061808f913de81a5aa4db48191ced6
shorturl /
| name | age | message | |
|---|---|---|---|
| |
ChangeLog | Thu Jul 24 08:47:35 -0700 2008 | |
| |
MIT-LICENSE | Thu Jul 24 08:47:35 -0700 2008 | |
| |
README | Thu Jul 24 08:47:35 -0700 2008 | |
| |
Rakefile | Thu Jul 24 08:47:35 -0700 2008 | |
| |
TODO | Thu Jul 24 08:47:35 -0700 2008 | |
| |
bin/ | Thu Jul 24 08:47:35 -0700 2008 | |
| |
doc/ | Mon Mar 02 08:14:16 -0800 2009 | |
| |
examples/ | Thu Jul 24 08:47:35 -0700 2008 | |
| |
lib/ | Sun Feb 15 20:52:13 -0800 2009 | |
| |
shorturl.gemspec | Mon Mar 02 08:14:16 -0800 2009 | |
| |
test/ | Mon Mar 02 08:14:16 -0800 2009 |
= 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>











