GitShortener is a very simple library for shorten github long URL using git.io.
Add this line to your application's Gemfile:
gem 'git_shortener', git: 'git@github.com:maximsilver/git_shortener.git'And then execute:
$ bundle
To generate a Shortened URL for the “https://github.com/maximsilver” do the following:
Git::Shortener.shorten('https://github.com/maximsilver')
Bug reports and pull requests are welcome on GitHub at https://github.com/maximsilver/git_shortener.
The gem is available as open source under the terms of the MIT License.