{"id":16737948,"url":"https://github.com/tatey/list_of_countries","last_synced_at":"2025-11-11T20:31:03.170Z","repository":{"id":56881393,"uuid":"243896852","full_name":"tatey/list_of_countries","owner":"tatey","description":"A list of countries, states, and cities in Ruby","archived":false,"fork":false,"pushed_at":"2021-08-03T10:58:15.000Z","size":25,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T00:25:26.036Z","etag":null,"topics":["cities","countries","data","ruby","states"],"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/tatey.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":"2020-02-29T03:20:55.000Z","updated_at":"2025-01-29T12:35:17.000Z","dependencies_parsed_at":"2022-08-20T23:40:14.745Z","dependency_job_id":null,"html_url":"https://github.com/tatey/list_of_countries","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatey%2Flist_of_countries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatey%2Flist_of_countries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatey%2Flist_of_countries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatey%2Flist_of_countries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tatey","download_url":"https://codeload.github.com/tatey/list_of_countries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243796742,"owners_count":20349264,"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":["cities","countries","data","ruby","states"],"created_at":"2024-10-13T00:28:36.321Z","updated_at":"2025-11-11T20:31:03.129Z","avatar_url":"https://github.com/tatey.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# List Of Countries ![Ruby](https://github.com/tatey/list_of_countries/workflows/Ruby/badge.svg) [![Gem Version](https://badge.fury.io/rb/list_of_countries.svg)](https://badge.fury.io/rb/list_of_countries)\n\nA list of countries, states, and cities in Ruby. Based on data from:\n\n- [World countries in JSON, CSV, XML and Yaml](https://github.com/mledoze/countries)\n- [Countries States Cities Database](https://github.com/dr5hn/countries-states-cities-database)\n\nThis gem was extracted from [Read Blindly](https://readblindly.com). Companies who use Read Blindly review job applications fairly and without bias.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n``` ruby\ngem 'list_of_countries'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install list_of_countries\n\n## Usage\n\nHow many countries are there?\n\n``` ruby\ncountries = ListOfCountries.countries\ncountries.size # =\u003e 250\n```\n\nWhat's the first country?\n\n``` ruby\naruba = countries.first\naruba.name.common     # =\u003e \"Aruba\"\naruba.name.official   # =\u003e \"Aruba\"\naruba.languages       # =\u003e [\"Dutch\", \"Papiamento\"]\naruba.region          # =\u003e \"Americas\"\naruba.subregion       # =\u003e \"Caribbean\"\naruba.demonyms.female # =\u003e \"Aruban\"\naruba.demonyms.male   # =\u003e \"Aruban\"\n```\n\nHow many states are there?\n\n``` ruby\nstates = ListOfCountries.states\nstates.size # =\u003e 4868\n```\n\nWhat's the first state?\n\n``` ruby\nstate = states.first\nstate.name # =\u003e \"Badakhshan\"\nstate.code # =\u003e \"BDS\"\n```\n\nHow many cities are there?\n\n``` ruby\ncities = ListOfCountries.cities\ncities.size # =\u003e 143852\n```\n\nWhat's the first city?\n\n``` ruby\ncity = cities.first\ncity.name # =\u003e \"Ashkāsham\"\n```\n\n## Development\n\nThis project uses Git Submodules. Use the `--recursive-submodules` flag when cloning the repository.\n\n    $ git clone --recursive-submodules git@github.com:tatey/list_of_countries.git\n\nAfter cloning 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/tatey/list_of_countries. 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/tatey/list_of_countries/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://github.com/tatey/list_of_countries/blob/master/LICENSE.txt). Data is under the terms of their individual submodule.\n\n## Code of Conduct\n\nEveryone interacting in the List of Countries project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/list_of_countries/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatey%2Flist_of_countries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftatey%2Flist_of_countries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatey%2Flist_of_countries/lists"}