{"id":20273669,"url":"https://github.com/yuzurus/jp_jis_code","last_synced_at":"2025-04-11T04:43:06.978Z","repository":{"id":56879273,"uuid":"119829336","full_name":"YuzuruS/jp_jis_code","owner":"YuzuruS","description":"全国地方公共団体コードから住所を取得するgem","archived":false,"fork":false,"pushed_at":"2018-03-26T08:36:50.000Z","size":113,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-11T04:43:01.373Z","etag":null,"topics":["address-code","gem","jis-code","ruby"],"latest_commit_sha":null,"homepage":null,"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/YuzuruS.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}},"created_at":"2018-02-01T11:54:46.000Z","updated_at":"2018-03-26T08:36:51.000Z","dependencies_parsed_at":"2022-08-20T23:10:57.110Z","dependency_job_id":null,"html_url":"https://github.com/YuzuruS/jp_jis_code","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YuzuruS%2Fjp_jis_code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YuzuruS%2Fjp_jis_code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YuzuruS%2Fjp_jis_code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YuzuruS%2Fjp_jis_code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YuzuruS","download_url":"https://codeload.github.com/YuzuruS/jp_jis_code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345281,"owners_count":21088242,"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":["address-code","gem","jis-code","ruby"],"created_at":"2024-11-14T12:49:52.165Z","updated_at":"2025-04-11T04:43:06.961Z","avatar_url":"https://github.com/YuzuruS.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JpJisCode\n\n[![Gem Version](https://badge.fury.io/rb/jp_jis_code.svg)](https://badge.fury.io/rb/jp_jis_code)\n[![Build Status](https://travis-ci.org/YuzuruS/jp_jis_code.svg?branch=master)](https://travis-ci.org/YuzuruS/jp_jis_code)\n[![Maintainability](https://api.codeclimate.com/v1/badges/74f87eba9109855a15f1/maintainability)](https://codeclimate.com/github/YuzuruS/jp_jis_code/maintainability)\n[![Coverage Status](https://coveralls.io/repos/github/YuzuruS/jp_jis_code/badge.svg)](https://coveralls.io/github/YuzuruS/jp_jis_code)\n[![Dependency Status](https://beta.gemnasium.com/badges/github.com/YuzuruS/jp_jis_code.svg)](https://beta.gemnasium.com/projects/github.com/YuzuruS/jp_jis_code)\n\n全国地方公共団体コード(JIS地名コード、地方自治体コード、都道府県コード、市町村コードなどと呼ばれることもある。)から都道府県、市区町村を取得するライブラリです。\n\n参考: [全国地方公共団体コード](https://ja.wikipedia.org/wiki/全国地方公共団体コード)\n\n## インストール方法\n\nGemfileに下記の行を追加してください。\n\n```ruby\ngem 'jp_jis_code'\n```\n\nそれから下記を実行してください。\n\n    $ bundle\n\nもしくは下記のようなコマンドでもインストールできます。\n\n    $ gem install jp_jis_code\n\n## 使用方法\n\n市区町村コードには5桁のものと6桁のものがありますが、\n両方対応しています。\n\n```ruby\ncode = JpJisCode::Code.find('011002')\ncode.prefecture_name\n# =\u003e '北海道'\ncode.prefecture_name_h\n# =\u003e 'ほっかいどう'\ncode.city_name\n# =\u003e '札幌市'\ncode.city_name_h\n# =\u003e 'さっぽろし'\n\ncode = JpJisCode::Code.find('01100')\ncode.prefecture_name\n# =\u003e '北海道'\ncode.prefecture_name_h\n# =\u003e 'ほっかいどう'\ncode.city_name\n# =\u003e '札幌市'\ncode.city_name_h\n# =\u003e 'さっぽろし'\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 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/YuzuruS/jp_jis_code. 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](http://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the JpJisCode project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/YuzuruS/jp_jis_code/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuzurus%2Fjp_jis_code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuzurus%2Fjp_jis_code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuzurus%2Fjp_jis_code/lists"}