UrlTokenizer: Limelight provider

Build Status Gemnasium Build Status Coverage Status Gem Version Code Climate

Limelight provider for UrlTokenizer gem.

Contents

  1. Installation
  2. Requirements
  3. Contacts
  4. Compatibility
  5. Contributing
  6. 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

  1. Ruby >= 1.9
  2. 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

  1. Fork repository ( http://github.com/AlexParamonov/url_tokenizer-provider-limelight/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright © 2015 Alexander Paramonov.
Released under the MIT License. See the LICENSE file for further details.