Skip to content
Mini Token generator for funny :)
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.bundle
db
lib
test
.document
.gitignore
.rvmrc
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
VERSION
mini_token.gemspec

README.rdoc

MiniToken

Simple token generator for short url and some other things :)

Instalation

gem install mini_token

Example

Generate token with default size MiniToken.output # => “S8hQNy”

Generate token with other size MiniToken.output(9) # => “2u27Jum8Y”

Returning all tokens storaged MiniToken.all # => [{:id=>1, :token=>“AcEi87”}, {:id=>2, :token=>“I8uEy2”}]

For truncate the tokens storage MiniToken.truncate_tokens

Copyright

Copyright © 2010 Antônio Roberto Silva. See LICENSE for details.

Something went wrong with that request. Please try again.