Project

mini_token

0.0
No commit activity in last 3 years
No release in over 3 years
Generate simple tokens for short url and other things
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.16.0
>= 1.3.1
 Project Readme

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 © 2010 Antônio Roberto Silva. See LICENSE for details.