{"id":15505590,"url":"https://github.com/aldavigdis/shyguy-gem","last_synced_at":"2025-03-28T18:44:51.731Z","repository":{"id":65751424,"uuid":"598793523","full_name":"aldavigdis/shyguy-gem","owner":"aldavigdis","description":"A Ruby class for managing manually hyphenized text.","archived":false,"fork":false,"pushed_at":"2023-02-08T02:32:49.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T03:34:10.103Z","etag":null,"topics":["gem","hyphenation","ruby","string-manipulation"],"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/aldavigdis.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-07T20:24:22.000Z","updated_at":"2023-02-19T15:04:30.000Z","dependencies_parsed_at":"2023-02-22T02:00:16.737Z","dependency_job_id":null,"html_url":"https://github.com/aldavigdis/shyguy-gem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldavigdis%2Fshyguy-gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldavigdis%2Fshyguy-gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldavigdis%2Fshyguy-gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldavigdis%2Fshyguy-gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aldavigdis","download_url":"https://codeload.github.com/aldavigdis/shyguy-gem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246083126,"owners_count":20720913,"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":["gem","hyphenation","ruby","string-manipulation"],"created_at":"2024-10-02T09:23:57.641Z","updated_at":"2025-03-28T18:44:51.726Z","avatar_url":"https://github.com/aldavigdis.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shyguy\n\nA Ruby class for managing manually hyphenized text.\n\nThis a simple gem that helps with soft hyphenation in cases when that needs to\nbe done manually and both a \"stripped\" (without hyphens) and \"hyphenized\"\nversion need to be eiher stored or displayed.\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add shyguy\n\nIf bundler is not being used to manage dependencies:\n\n    $ gem install shyguy\n\n\n## Usage\n\n### Using instance methods\n\n```ruby\n# Create a new Shyguy object:\nmyguy = Shyguy.new('Rechts|schutz|ver|sicher|ungs|gesell|schaften')\n\n# Use the `.shy` instance method to display the string with the `|` symbol\n# replaced with `\"\\u00AD\"`.\nmyguy.shy\n=\u003e\n\"Rechts\\u00ADschutz\\u00ADver\\u00ADsicher\\u00ADungs\\u00ADgesell\\u00ADschaften\"\n\n# In case you need to use the string value where you can't use hyphenation\n# (in an HTML a meta tag, certain database values etc.), then you can also use\n# the `.normalize` instance method to get the string without any hyphenation.\nmyguy.normalize\n=\u003e\n\"Rechtsschutzversicherungsgesellschaften\"\n```\n\n### Using class methods\n\n```ruby\nShyguy.display_shy('Holta|vörðu|heiðar|vega|vinnu|verka|manna|skúr')\n=\u003e\n\"Holta\\u00ADvörðu\\u00ADheiðar\\u00ADvega\\u00ADvinnu\\u00ADverka\\u00ADmanna\\u00ADskúr\"\n\nShyguy.display_normalized('Holta|vörðu|heiðar|vega|vinnu|verka|manna|skúr')\n=\u003e\n\"Holtavörðuheiðarvegavinnuverkamannaskúr\"\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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 the created tag, 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/aldavigdis/shyguy-gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/aldavigdis/shyguy-gem/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Shyguy project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/shyguy/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldavigdis%2Fshyguy-gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faldavigdis%2Fshyguy-gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldavigdis%2Fshyguy-gem/lists"}