{"id":13878111,"url":"https://github.com/ruby/abbrev","last_synced_at":"2025-04-09T18:21:30.681Z","repository":{"id":38849747,"uuid":"266079822","full_name":"ruby/abbrev","owner":"ruby","description":"Calculates a set of unique abbreviations for a given set of strings","archived":false,"fork":false,"pushed_at":"2024-05-05T23:19:53.000Z","size":49,"stargazers_count":16,"open_issues_count":0,"forks_count":7,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-04-02T16:07:23.388Z","etag":null,"topics":["ruby"],"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/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2020-05-22T10:10:31.000Z","updated_at":"2025-03-30T00:41:29.000Z","dependencies_parsed_at":"2023-12-16T06:26:40.811Z","dependency_job_id":"c5790fa2-c659-462c-bd3b-63aca53789b5","html_url":"https://github.com/ruby/abbrev","commit_stats":{"total_commits":44,"total_committers":16,"mean_commits":2.75,"dds":0.5909090909090908,"last_synced_commit":"65e7d6f0d5686406185939d7f306f18c72812c7e"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fabbrev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fabbrev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fabbrev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fabbrev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/abbrev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085521,"owners_count":21045174,"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":["ruby"],"created_at":"2024-08-06T08:01:40.079Z","updated_at":"2025-04-09T18:21:30.657Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Abbrev\n\nGiven a set of strings, calculate the set of unambiguous abbreviations for\nthose strings, and return a hash where the keys are all the possible\nabbreviations and the values are the full strings.\n\nThus, given +words+ is \"car\" and \"cone\", the keys pointing to \"car\" would\nbe \"ca\" and \"car\", while those pointing to \"cone\" would be \"co\", \"con\", and\n\"cone\".\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'abbrev'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install abbrev\n\n## Usage\n\n```ruby\nrequire 'abbrev'\n\nAbbrev.abbrev(%w{ car cone })\n#=\u003e {\"ca\"=\u003e\"car\", \"con\"=\u003e\"cone\", \"co\"=\u003e\"cone\", \"car\"=\u003e\"car\", \"cone\"=\u003e\"cone\"}\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/abbrev.\n\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fabbrev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fabbrev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fabbrev/lists"}