UrlTokenizer: Limelight provider
Limelight provider for UrlTokenizer gem.
Contents
- Installation
- Requirements
- Contacts
- Compatibility
- Contributing
- Copyright
Installation
Add this line to your application's Gemfile:
gem 'url_tokenizer-provider-limelight'
And then execute:
$ bundle
Or install it yourself as:
$ gem install url_tokenizer-provider-limelight
Most likely you'll install UrlTokenizer gem as well:
$ gem install url_tokenizer
Requirements
- Ruby >= 1.9
- UrlTokenizer gem
Usage
Gem is designed to be used with UrlTokenizer gem.
Register provider using UrlTokenizer.register
UrlTokenizer.register 'LL' => UrlTokenizer::Provider::Limelight
Obtain provider and tokenize url:
tokenizer = UrlTokenizer.provider('LL', key: 'super_secret_key')
tokenizer.call url, expire_in: 1.hour
Or user provider directly:
UrlTokenizer::Provider::Limelight.new('super_secret_key').call url, expire_in: 1.hour
Contacts
Have questions or recommendations? Contact me via [email protected]
Found a bug or have enhancement request? You are welcome at Github bugtracker
Compatibility
tested with Ruby:
- 2.2
- 2.1
- 2.0
- 1.9.3
- ruby-head
- rbx-2
- jruby-19mode
- jruby-head
See build history
Contributing
- Fork repository ( http://github.com/AlexParamonov/url_tokenizer-provider-limelight/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.