No commit activity in last 3 years
No release in over 3 years
URL shortener and expander with tinyurl.com service.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 12.3, >= 12.3.3
~> 3.8, >= 3.8.0

Runtime

~> 2.1, >= 2.1.0
 Project Readme

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.