{"id":31796871,"url":"https://github.com/kevinstuffandthings/nameq","last_synced_at":"2025-10-26T15:03:26.312Z","repository":{"id":56885115,"uuid":"287816292","full_name":"kevinstuffandthings/nameq","owner":"kevinstuffandthings","description":"Create unique names via numeric suffixes","archived":false,"fork":false,"pushed_at":"2023-03-27T16:44:19.000Z","size":25,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T23:58:14.301Z","etag":null,"topics":["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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinstuffandthings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-15T20:01:05.000Z","updated_at":"2023-03-27T16:35:36.000Z","dependencies_parsed_at":"2022-08-21T00:20:24.162Z","dependency_job_id":null,"html_url":"https://github.com/kevinstuffandthings/nameq","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kevinstuffandthings/nameq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinstuffandthings%2Fnameq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinstuffandthings%2Fnameq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinstuffandthings%2Fnameq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinstuffandthings%2Fnameq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinstuffandthings","download_url":"https://codeload.github.com/kevinstuffandthings/nameq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinstuffandthings%2Fnameq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005255,"owners_count":26083864,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ruby","rubygems"],"created_at":"2025-10-10T20:52:59.987Z","updated_at":"2025-10-10T20:53:28.173Z","avatar_url":"https://github.com/kevinstuffandthings.png","language":"Ruby","readme":"# NameQ ![Build Status](https://github.com/kevinstuffandthings/nameq/actions/workflows/ruby.yml/badge.svg) [![Gem Version](https://badge.fury.io/rb/nameq.svg)](https://badge.fury.io/rb/nameq)\n\nFor when you need to name things, but not worry about whether or not those names are already taken.\n\nOriginally developed for [Simulmedia](https://simulmedia.com).\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\n# update with the version of your choice\ngem 'nameq'\n```\n\nAnd then execute:\n\n```bash\n$ bundle install\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install nameq\n```\n\n## Usage\n\nBuild a pool of regular text strings. Each time you take an item from the pool, the pool will take note.\n\n```ruby\npool = NameQ::TextPool.new(['Kevin', 'Lynne', 'You', 'You (1)'])\n\npool.take('Someone Else')\n# =\u003e \"Someone Else\"\n\npool.take('Kevin')\n# =\u003e \"Kevin (1)\"\n\npool.take('You')\n# =\u003e \"You (2)\"\n\npool.take('Kevin')\n# =\u003e \"Kevin (2)\"\n\npool.take('Someone Else')\n# =\u003e \"Someone Else (1)\"\n```\n\nOr point to a directory. In addition to the `take` behavior mentioned in the `TextPool`, new entries in the specified directory will\nbe considered on each pool operation.\n\n```ruby\npool = NameQ::Directory.new('/tmp/nameq')\n\npool.take('not-a-file')\n# =\u003e 'not-a-file'\n\npool.take('Rakefile')\n# =\u003e 'Rakefile (1)'\n```\n\nEither type of pool can be treated case-insensitively:\n\n```ruby\nNameQ::Directory.new('/tmp/nameq', case_sensitive: false)\n```\n\n# Problems?\nPlease submit an [issue](https://github.com/kevinstuffandthings/nameq/issues).\nWe'll figure out how to get you up and running with NameQ as smoothly as possible.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinstuffandthings%2Fnameq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinstuffandthings%2Fnameq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinstuffandthings%2Fnameq/lists"}