{"id":21878352,"url":"https://github.com/pepabo/currency_coder","last_synced_at":"2025-03-21T23:45:05.259Z","repository":{"id":146415704,"uuid":"104235473","full_name":"pepabo/currency_coder","owner":"pepabo","description":"Convert Strings to Currency-like Code","archived":false,"fork":false,"pushed_at":"2017-11-17T16:07:29.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-26T18:17:32.372Z","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/pepabo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-09-20T15:44:50.000Z","updated_at":"2017-12-15T02:52:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c872e44-c054-434b-9ad3-b6585898c5b3","html_url":"https://github.com/pepabo/currency_coder","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/pepabo%2Fcurrency_coder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fcurrency_coder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fcurrency_coder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fcurrency_coder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepabo","download_url":"https://codeload.github.com/pepabo/currency_coder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885532,"owners_count":20526293,"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-11-28T08:12:23.558Z","updated_at":"2025-03-21T23:45:05.235Z","avatar_url":"https://github.com/pepabo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CurrencyCoder\n\nThis library provides a functionality to allow you to convert strings to some currency-like code.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'currency_coder'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install currency_coder\n\n## Usage\n\n```ruby\ncc = CurrencyCoder.new\n\ncurrency_map = {\n  \"osamu\"    =\u003e \"OSM\",\n  \"mayoto\"   =\u003e \"MYT\",\n  \"kurotaki\" =\u003e \"KRT\",\n  \"putchom\"  =\u003e \"PTM\",\n  \"antipop\"  =\u003e \"ATP\",\n  \"jitsuzon\" =\u003e \"JZN\"\n}\n\ncurrency_map.each do |name, code|\n  assert_equal code, cc.as_currency_code(name)\nend\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/pepabo/currency_coder.\n\n## Author\n\n[Kentaro Kuribayashi](https://kentarok.org/)\n\n## License\n\nCopyright (c) 2017 [GMO Pepabo, Inc.](https://pepabo.com/)\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fcurrency_coder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepabo%2Fcurrency_coder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fcurrency_coder/lists"}