TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'ShortUri'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ShortUri
key = "YOUR_KEY"
long_uri = "http://www.tagskill.com/"
@short_uri = ShortUri.new(key)
short_uri = @short_uri.shorten(long_uri)
puts short_uri
user_short = "ts#{Time.now.to_i}"
puts @short_uri.alias(long_uri,user_short)
puts @short_uri.expand("http://126.am/tagskill")
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request