{"id":20122615,"url":"https://github.com/jomaminoza/nationality","last_synced_at":"2025-05-06T16:32:57.837Z","repository":{"id":56885161,"uuid":"69865675","full_name":"JomaMinoza/nationality","owner":"JomaMinoza","description":"Provides listing of nationality that you may need in your ruby applications.","archived":false,"fork":false,"pushed_at":"2024-03-26T03:14:32.000Z","size":33,"stargazers_count":11,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-07T15:07:21.435Z","etag":null,"topics":["countries","dataset","gem","nationality","ruby","ruby-application"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/nationality","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/JomaMinoza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2016-10-03T11:45:25.000Z","updated_at":"2022-10-19T04:14:00.000Z","dependencies_parsed_at":"2024-03-26T04:27:44.802Z","dependency_job_id":"5207af04-c193-4b1c-9263-cf4fc1ca872c","html_url":"https://github.com/JomaMinoza/nationality","commit_stats":{"total_commits":21,"total_committers":5,"mean_commits":4.2,"dds":"0.38095238095238093","last_synced_commit":"f2ad2a98e70e853c7ada54c18ae4a40549538883"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JomaMinoza%2Fnationality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JomaMinoza%2Fnationality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JomaMinoza%2Fnationality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JomaMinoza%2Fnationality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JomaMinoza","download_url":"https://codeload.github.com/JomaMinoza/nationality/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224515916,"owners_count":17324269,"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":["countries","dataset","gem","nationality","ruby","ruby-application"],"created_at":"2024-11-13T19:39:25.040Z","updated_at":"2024-11-13T19:39:25.590Z","avatar_url":"https://github.com/JomaMinoza.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nationality\n[![Gem Version](https://badge.fury.io/rb/nationality.svg)](https://badge.fury.io/rb/nationality)\n\nby [Jose Marie Antonio Miñoza](https://github.com/JomaMinoza)\n\nProvides listing of nationality that you may need in your ruby applications.\n\nData in this gem was taken from Github GIST and the following repos:\n\n* [marijn/README.markdown](https://gist.github.com/marijn/274449#file-nationalities-yaml)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'nationality', '~\u003e 1.0.7'\n   \n\nor\n\n    gem 'nationality', '~\u003e 1.0.7', git: 'https://github.com/JomaMinoza/nationality'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install nationality\n\n## Usage\n\nThis gem provides the following constant arrays:\n\n* `Nationality::NATIONALITY`\n```ruby\n  Nationality::Nationality.default_option(\"filipino\")\n```\n\n## Pre selected option for Select Helper\n\nCustomize `options_for_select` with default nationality for your Rails application.\n\n```ruby\n= f.select :nationality, options_for_select(Nationality::Nationality.default_option(\"filipino\"), :selected =\u003e f.object.nationality), {include_blank: \"What's your nationality?\"}, {:class =\u003e 'form-control' }\n```\n\n## Includes larger list of nationalities  and some alternative spellings + 300 more options\n* `Nationality::NATIONALITY_EXPANDED_SPELLING` - list of possible alternative spellings, plus additional nationalities, extracted from some Wikipedia parsing. Suggested use - various text processing.\n\n```ruby\nNationality::Nationality.default_option(\"Belorussian\", :expanded)\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\n[MIT](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomaminoza%2Fnationality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjomaminoza%2Fnationality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomaminoza%2Fnationality/lists"}