expand-tinyurl.rb

Path: lib/plugins/expand-tinyurl.rb
Last Update: Tue Jun 29 14:05:17 +0000 2010

Methods

Constants

URL_SHORTTERS = [ {:host => "tinyurl.com", :pattern => %r'(http://tinyurl\.com(/[\w/]+))'}, {:host => "is.gd", :pattern => %r'(http://is\.gd(/[\w/]+))'}, {:host => "bit.ly", :pattern => %r'(http://bit\.ly(/[\w/]+))'}, {:host => "ff.im", :pattern => %r'(http://ff\.im(/[-\w/]+))'}, {:host => "j.mp", :pattern => %r'(http://j\.mp(/[\w/]+))'}, {:host => "goo.gl", :pattern => %r'(http://goo\.gl(/[\w/]+))'}, {:host => "tr.im", :pattern => %r'(http://tr\.im(/[\w/]+))'}, {:host => "short.to", :pattern => %r'(http://short\.to(/[\w/]+))'}, {:host => "ow.ly", :pattern => %r'(http://ow\.ly(/[\w/]+))'}, {:host => "u.nu", :pattern => %r'(http://u\.nu(/[\w/]+))'}, {:host => "twurl.nl", :pattern => %r'(http://twurl\.nl(/\w+))'}, ]

Public Instance methods

[Validate]