{"id":15674636,"url":"https://github.com/bugtender/rangu","last_synced_at":"2025-05-06T22:25:36.790Z","repository":{"id":56890962,"uuid":"166742772","full_name":"bugtender/rangu","owner":"bugtender","description":"🔍Paranoid text spacing in Ruby.","archived":false,"fork":false,"pushed_at":"2019-01-21T10:01:49.000Z","size":21,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T15:35:52.124Z","etag":null,"topics":[],"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/bugtender.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-21T03:30:10.000Z","updated_at":"2021-02-16T05:26:39.000Z","dependencies_parsed_at":"2022-08-21T00:20:32.429Z","dependency_job_id":null,"html_url":"https://github.com/bugtender/rangu","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/bugtender%2Frangu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugtender%2Frangu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugtender%2Frangu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugtender%2Frangu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugtender","download_url":"https://codeload.github.com/bugtender/rangu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252777939,"owners_count":21802673,"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":[],"created_at":"2024-10-03T15:48:41.634Z","updated_at":"2025-05-06T22:25:36.750Z","avatar_url":"https://github.com/bugtender.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rangu\n\n[![Build Status](https://travis-ci.org/bugtender/rangu.svg?branch=master)](https://travis-ci.org/bugtender/rangu)\n\nParanoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).\n\nThis is the Ruby copy version from [Vinta](https://github.com/vinta)'s [pangu.py](https://github.com/vinta/pangu.py).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rangu'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rangu\n\n## Usage\n\n```ruby\nrequire \"rangu\"\n\nRangu.spacing(\"當你凝視著bug，bug也凝視著你\")\n=\u003e \"當你凝視著 bug，bug 也凝視著你\"\n\nRangu.spacing(\"path/to/file.txt\")\n=\u003e \"與 PM 戰鬥的人，應當小心自己不要成為 PM\"\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/bugtender/rangu. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\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 Rangu project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/bugtender/rangu/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugtender%2Frangu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugtender%2Frangu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugtender%2Frangu/lists"}