{"id":17548669,"url":"https://github.com/djo/tokenie","last_synced_at":"2025-04-24T00:41:35.821Z","repository":{"id":62559201,"uuid":"2410157","full_name":"djo/tokenie","owner":"djo","description":"Generation a friendly token randomically.","archived":false,"fork":false,"pushed_at":"2012-01-30T21:25:42.000Z","size":108,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-26T19:48:29.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djo.png","metadata":{"files":{"readme":"README.rdoc","changelog":"CHANGELOG.rdoc","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-18T16:16:27.000Z","updated_at":"2019-08-13T14:50:22.000Z","dependencies_parsed_at":"2022-11-03T11:15:41.399Z","dependency_job_id":null,"html_url":"https://github.com/djo/tokenie","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djo%2Ftokenie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djo%2Ftokenie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djo%2Ftokenie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djo%2Ftokenie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djo","download_url":"https://codeload.github.com/djo/tokenie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540927,"owners_count":21447426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-21T02:24:42.679Z","updated_at":"2025-04-24T00:41:35.802Z","avatar_url":"https://github.com/djo.png","language":"Ruby","readme":"= Tokenie\n{\u003cimg src=\"https://secure.travis-ci.org/Djo/tokenie.png\" /\u003e}[http://travis-ci.org/Djo/tokenie]\n\nTokenie gem provides generation friendly token randomically. Symbols '+/=1lIO0o' are replaced with 'abcdefghj'. Inspired by devise's friendly token generation.\n\n== Installation\n\nInstall as a gem from RubyGems:\n\n  gem install tokenie\n\n== Getting Started\n\nGenerate a token:\n\n  require 'tokenie'\n  Tokenie.friendly # =\u003e \"De6paD\"\n\nBy default it uses 6 characters for the end-string. To change it use :length option:\n\n  Tokenie.friendly(:length =\u003e 8) # =\u003e \"gRaxwBg7\"\n\nIf you want to ensure uniqueness you should provide a block which returns false in the case that means a token is not included in your storage:\n\n  existing_tokens = ['qwerty1', 'qwerty2', 'qwerty3']\n  Tokenie.friendly { |token| existing_tokens.include? token }\n\nAn example with ActiveRecord:\n\n  Tokenie.friendly { |t| self.class.exists?(:token =\u003e t) }\n\n== Dependencies\n\n* Ruby 1.8.7 or later\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjo%2Ftokenie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjo%2Ftokenie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjo%2Ftokenie/lists"}