UrlTokenizer
Tokenize url by variety of providers
Contents
- Installation
- Requirements
- Contacts
- Compatibility
- Contributing
- Copyright
Installation
Add this line to your application's Gemfile:
gem 'url_tokenizer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install url_tokenizer
UrlTokenizer gem has Limelight and CDN77 providers bundled.
Requirements
- Ruby >= 2.1
Usage
Register provider using UrlTokenizer.register
require 'url_tokenizer/limelight'
UrlTokenizer.register 'LL' => UrlTokenizer::Limelight.new('super_secret_key')
Obtain provider and tokenize url:
tokenizer = UrlTokenizer.provider 'LL'
tokenizer.call url, expires_in: 1.hour
Contacts
Have questions or recommendations? Contact me via alexander.n.paramonov@gmail.com
Found a bug or have enhancement request? You are welcome at Github bugtracker
Compatibility
tested with Ruby:
- 2.2
- 2.1
- ruby-head
- rbx-2
- jruby-head
See build history
Contributing
- Fork repository ( http://github.com/AlexParamonov/url_tokenizer/fork )
- 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
Copyright
Copyright © 2015 Alexander Paramonov.
Released under the MIT License. See the LICENSE file for further details.