{"id":27299771,"url":"https://github.com/mrnovalles/hashtag_parser","last_synced_at":"2025-04-12T00:44:25.071Z","repository":{"id":56876009,"uuid":"252491616","full_name":"mrnovalles/hashtag_parser","owner":"mrnovalles","description":"A ruby hashtag parser that given a string returns an array with an object with text, start and end for each hashtag","archived":false,"fork":false,"pushed_at":"2023-10-18T13:17:33.000Z","size":33,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T00:44:20.161Z","etag":null,"topics":["hashtags","ruby"],"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/mrnovalles.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}},"created_at":"2020-04-02T15:18:57.000Z","updated_at":"2023-07-26T08:45:37.000Z","dependencies_parsed_at":"2023-07-14T11:15:12.042Z","dependency_job_id":null,"html_url":"https://github.com/mrnovalles/hashtag_parser","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":"0.16666666666666663","last_synced_commit":"bc23608962f1bcd7a766eb7164307bed96645f70"},"previous_names":["zucaritask/hashtag_parser"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnovalles%2Fhashtag_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnovalles%2Fhashtag_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnovalles%2Fhashtag_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnovalles%2Fhashtag_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrnovalles","download_url":"https://codeload.github.com/mrnovalles/hashtag_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501921,"owners_count":21114681,"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":["hashtags","ruby"],"created_at":"2025-04-12T00:44:24.406Z","updated_at":"2025-04-12T00:44:25.054Z","avatar_url":"https://github.com/mrnovalles.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HashtagParser\n\n[![Build Status](https://travis-ci.org/zucaritask/hashtag_parser.svg?branch=master)](https://travis-ci.org/zucaritask/hashtag_parser)\n\nA hashtag parser that brings the behavior of [hashtag-rs](https://github.com/tonsser/hashtag-rs)\nto ruby and the work of using an Finite State Machine to do the parsing by [davidpdrsn](https://github.com/davidpdrsn)\n\nGiven a string as `\"#ruby is #awesome\"`, this gem returns an array with an object with `text`, `start` and `end`\nfor each of the two hashtags in the string.\n\nIts goal is to match Instagram's parsing of hashtags.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'hashtag_parser'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install hashtag_parser\n\n## Usage\n\n```ruby\nhashtags = HashtagParser.parse(\"#ruby is #awesome\")\n```\n\n`hashtags` is going to be:\n\n```\n[\n  {\n    text: \"ruby\",\n    start: 0,\n    end: 4\n  },\n  {\n    text: \"awesome\",\n    start: 9,\n    end: 16\n  }\n]\n```\n## Contact \n\nTwitter: [@mrnovalles](http://twitter.com/mrnovalles)\n\nGithub: [@mrnovalles](http://github.com/mrnovalles)\n\n## Contributing\n\n1. Fork it\n1. Create your feature branch (git checkout -b my-new-feature)\n1. Commit your changes (git commit -am 'Add some feature')\n1. Push to the branch (git push origin my-new-feature)\n1. Create new Pull Request\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrnovalles%2Fhashtag_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrnovalles%2Fhashtag_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrnovalles%2Fhashtag_parser/lists"}