{"id":25694157,"url":"https://github.com/colorfulcompany/slothful-code-generator","last_synced_at":"2025-10-18T07:47:29.006Z","repository":{"id":56896153,"uuid":"336771092","full_name":"colorfulcompany/slothful-code-generator","owner":"colorfulcompany","description":"ms単位のそこそこの精度のtime-basedでuniqueなIDを人間の扱いやすい桁数で生成する","archived":false,"fork":false,"pushed_at":"2024-07-25T04:50:15.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T11:21:18.660Z","etag":null,"topics":["foundation","id","ruby","rubygems"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colorfulcompany.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-07T11:35:48.000Z","updated_at":"2024-07-25T04:50:17.000Z","dependencies_parsed_at":"2025-06-08T04:02:05.942Z","dependency_job_id":null,"html_url":"https://github.com/colorfulcompany/slothful-code-generator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/colorfulcompany/slothful-code-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colorfulcompany%2Fslothful-code-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colorfulcompany%2Fslothful-code-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colorfulcompany%2Fslothful-code-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colorfulcompany%2Fslothful-code-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colorfulcompany","download_url":"https://codeload.github.com/colorfulcompany/slothful-code-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colorfulcompany%2Fslothful-code-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263481182,"owners_count":23473182,"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":["foundation","id","ruby","rubygems"],"created_at":"2025-02-24T23:51:13.307Z","updated_at":"2025-10-18T07:47:23.961Z","avatar_url":"https://github.com/colorfulcompany.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SlothfulCode\n\nある程度人間にとって扱いやすい長さ、複雑さで、類推しにくく、重複しないコードを生成、検証する\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'slothful-code-generator'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install slothful-code-generator\n\n## Usage\n\n```ruby\nrequire 'slothful_code'\n```\n\n### ganerate\n\n```ruby\nsc = SlothfulCode.new(\u003csalt\u003e)\nsc.generate(type_id: '1') # =\u003e '989JV7WDCN6Q-1'\n```\n\n### decode\n\n```ruby\nsc = SlothfulCode.new(\u003csalt\u003e)\nsc.decode(\u003ccode\u003e) # =\u003e {:type_id=\u003e'1', :time=\u003e[1612769809, 113]}\n```\n\n### valid?\n\n```ruby\nsc = SlothfulCode.new(\u003csalt\u003e)\nsc.valid?(\u003ccode\u003e) # =\u003e true / false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolorfulcompany%2Fslothful-code-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolorfulcompany%2Fslothful-code-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolorfulcompany%2Fslothful-code-generator/lists"}