Skip to content

hrs113355/tinyurl_shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyurlShortener

Gem Version Build Status

URL shortener with tinyurl.com service.

Installation

Add this line to your application's Gemfile:

gem 'tinyurl_shortener'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tinyurl_shortener

Usage

TinyurlShortener.shorten("https://github.com/hrs113355/tinyurl_shortener")
=> "http://tinyurl.com/oybhnsm"

TinyurlShortener.expand("http://tinyurl.com/oybhnsm")
=> "https://github.com/hrs113355/tinyurl_shortener"

Changes

  • 1.0.1 - fix issue of detecting url redirection when expanding tinyurl
  • 1.0.2 - relax rest-client dependency
  • 1.0.3 - update rest-client dependency. drop support for ruby version < 2.0.0.

About

URL shortener with tinyurl.com service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages