countries 5.2.1 → 5.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/.github/workflows/tests.yml +5 -12
  4. data/CHANGELOG.md +17 -0
  5. data/{README.markdown → README.md} +8 -12
  6. data/countries.gemspec +4 -3
  7. data/lib/countries/cache/countries.json +1 -1
  8. data/lib/countries/cache/locales/th.json +1 -1
  9. data/lib/countries/cache/locales/tk.json +1 -1
  10. data/lib/countries/country.rb +6 -0
  11. data/lib/countries/data/countries/AU.yaml +1 -0
  12. data/lib/countries/data/countries/TM.yaml +1 -1
  13. data/lib/countries/data/subdivisions/AE.yaml +6 -0
  14. data/lib/countries/data/subdivisions/AF.yaml +34 -0
  15. data/lib/countries/data/subdivisions/AG.yaml +8 -0
  16. data/lib/countries/data/subdivisions/AL.yaml +12 -0
  17. data/lib/countries/data/subdivisions/AM.yaml +10 -0
  18. data/lib/countries/data/subdivisions/AO.yaml +18 -0
  19. data/lib/countries/data/subdivisions/AR.yaml +23 -0
  20. data/lib/countries/data/subdivisions/AT.yaml +7 -0
  21. data/lib/countries/data/subdivisions/AU.yaml +8 -0
  22. data/lib/countries/data/subdivisions/AZ.yaml +77 -2
  23. data/lib/countries/data/subdivisions/BA.yaml +3 -0
  24. data/lib/countries/data/subdivisions/BB.yaml +11 -0
  25. data/lib/countries/data/subdivisions/BD.yaml +72 -0
  26. data/lib/countries/data/subdivisions/IR.yaml +31 -1
  27. data/lib/countries/data/subdivisions/KZ.yaml +14 -0
  28. data/lib/countries/data/subdivisions/PY.yaml +1 -1
  29. data/lib/countries/data/subdivisions/TJ.yaml +1 -1
  30. data/lib/countries/data/subdivisions/TM.yaml +1 -1
  31. data/lib/countries/data/subdivisions/UA.yaml +26 -1
  32. data/lib/countries/data/subdivisions/US.yaml +48 -3
  33. data/lib/countries/data/subdivisions/UZ.yaml +13 -1
  34. data/lib/countries/data/translations/countries-th.yaml +2 -2
  35. data/lib/countries/data/translations/countries-tk.yaml +88 -88
  36. data/lib/countries/iso3166.rb +0 -1
  37. data/lib/countries/version.rb +1 -1
  38. data/spec/country_spec.rb +33 -0
  39. metadata +5 -5
  40. data/lib/countries/kwarg_struct.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29decb615bd839a613742131109d3bdc48c14222435991e61e065ab7753c69a9
4
- data.tar.gz: 58f962d821d13637e32c8dcfc25a348a28b12fdebf097ed6646326e9760a6e14
3
+ metadata.gz: bc93451afdab4af4e84a38f9f37ed3175c7eacda4e61cf22cf3a026f861707ee
4
+ data.tar.gz: 2eba6085694a0b344d47701297c3c907a4a539d946b3807eedef4c974f135fa4
5
5
  SHA512:
6
- metadata.gz: '0952b16b26c6ee09a166813bd2b44270e6c1bfec42b519f421aecb3baad10d9530dd2142c759cf2b9c01c6bfb21e7822eac9a4f5d0a6e8f0b4bc029cdfe87448'
7
- data.tar.gz: 4548ae892a3c711901b244ae1be32e3156bac81eb46e4a921a5ce3f2ebba16a430f1bf981c3255551b17191e469bdfd8916d6d87ec3d4307ada2a9c07cc58456
6
+ metadata.gz: 78923a53a74f230417019140eabec95115274a39c6bcedf042e660afa80938908a4e8d3d10df5a6e4f25e6e04759960022ec7058a9ede37d55d12b2461acb829
7
+ data.tar.gz: 8e85eab6ece18c5f0decf040928d8042f684b04f1ccb5ce555eea4352f4a5dd24c8124fcd5fd8cd7670200a17f0323857085cca1e8514db9f4d746873abc4aac
@@ -0,0 +1 @@
1
+ github: pmor
@@ -4,32 +4,25 @@ on:
4
4
  pull_request:
5
5
  paths-ignore:
6
6
  - 'README.md'
7
+ - 'CHANGELOG.md'
7
8
  push:
8
9
  paths-ignore:
9
10
  - 'README.md'
11
+ - 'CHANGELOG.md'
10
12
 
11
13
  jobs:
12
14
  test:
13
15
  runs-on: ubuntu-latest
14
-
15
16
  strategy:
17
+ fail-fast: false
16
18
  matrix:
17
- include:
18
- - ruby-version: 2.7.6
19
- bundler-version: default
20
- - ruby-version: 3.0.4
21
- bundler-version: default
22
- - ruby-version: 3.1.3
23
- bundler-version: default
19
+ ruby: [2.7, '3.0', 3.1, 3.2]
24
20
  steps:
25
21
  - uses: actions/checkout@v3
26
22
  - name: Set up Ruby ${{ matrix.ruby-version }}
27
23
  uses: ruby/setup-ruby@v1
28
24
  with:
29
- ruby-version: ${{ matrix.ruby-version }}
30
- bundler: ${{ matrix.bundler-version }}
25
+ ruby-version: ${{ matrix.ruby }}
31
26
  bundler-cache: true
32
- - name: Install dependencies
33
- run: bundle install
34
27
  - name: Run tests
35
28
  run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](https://semver.org/).
5
5
 
6
+
7
+ ## [5.3.1](https://github.com/countries/countries/releases/tag/v5.3.1') (2023/01/26 14:05 +00:00)
8
+
9
+ * Update countries-th.yaml [\#792](https://github.com/countries/countries/pull/792) ([worrawutp](https://github.com/worrawutp))
10
+ * Fix [\#765](https://github.com/countries/countries/issues/765) - Restore `Australia` as first unnoficial name for Australia ([pmor](https://github.com/pmor))
11
+
12
+
13
+ **Full Changelog**: https://github.com/countries/countries/compare/v5.3.0...v5.3.1
14
+
15
+ ## [5.3.0](https://github.com/countries/countries/releases/tag/v5.3.0') (2023/01/03 17:02 +00:00)
16
+
17
+ **Merged pull requests:**
18
+
19
+ * Remove dead code: KwargStruct [\#787](https://github.com/countries/countries/pull/787) ([pmor](https://github.com/pmor))
20
+ * Update data for Turkmenistan and add Turkmen translation [\#789](https://github.com/countries/countries/pull/789) ([msuliq](https://github.com/msuliq))
21
+ * Add Country#subdivision_names method [\#788](https://github.com/countries/countries/pull/788) ([pmor](https://github.com/pmor))
22
+
6
23
  ## [5.2.1](https://github.com/countries/countries/releases/tag/v5.2.1') (2022/12/22 15:29 +00:00)
7
24
 
8
25
  **Important changes**
@@ -1,6 +1,8 @@
1
1
  # Countries
2
2
 
3
- Countries is a collection of all sorts of useful information for every country in the ISO 3166 standard. It contains info for the following standards ISO3166-1 (countries), ISO3166-2 (states/subdivisions), ISO4217 (currency) and E.164 (phone numbers). I will add any country based data I can get access to. I hope this to be a repository for all country based information.
3
+ Countries is a collection of all sorts of useful information for every country in the ISO 3166 standard. It contains info for the following standards ISO3166-1 (countries), ISO3166-2 (states/subdivisions), ISO4217 (currency) and E.164 (phone numbers).
4
+
5
+ The data used in this gem is also available as git submodules in [YAML](https://github.com/countries/countries-data-yaml) and [JSON](https://github.com/countries/countries-data-json) files.
4
6
 
5
7
  [![Gem Version](https://badge.fury.io/rb/countries.svg)](https://badge.fury.io/rb/countries) [![Tests](https://github.com/countries/countries/actions/workflows/tests.yml/badge.svg)](https://github.com/countries/countries/actions/workflows/tests.yml) [![Code Climate](https://codeclimate.com/github/countries/countries.svg)](https://codeclimate.com/github/countries/countries)
6
8
  [![CodeQL](https://github.com/countries/countries/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/countries/countries/actions/workflows/codeql-analysis.yml)
@@ -335,17 +337,11 @@ end
335
337
 
336
338
  **Please do not submit pull requests on `cache/**/*`**. These files generated by a rake task when preparing new releases and are not meant to be manually updated.
337
339
 
338
- If you with to submit a PR to correct an translation, please edit the `lib/countries/data/translations/countries-<locale>.yaml` file. Changes to the locale YAML files will be injected during the next `rake update_cache`.
339
-
340
- * Fork the project.
341
- * Make your feature addition or bug fix.
342
- * Add tests for it. This is important so I don't break it in a
343
- future version unintentionally.
344
- * Commit, do not mess with rakefile, version, or history.
345
- (if you want to have your own version, that is fine but
346
- bump version in a commit by itself I can ignore when I pull)
347
- * Make sure your you haven't made changes to `cache/**/*`
348
- * Submit a pull request. Bonus points for topic branches.
340
+ If you with to submit a PR to update or correct country data, please edit the corresponding YAML file `lib/countries/data/**`. Changes to the YAML files will be injected during the next `rake update_cache`.
341
+
342
+ This project seeks to follow ISO3166, ISO4217 and E.164 standards in its data.
343
+
344
+ 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.
349
345
 
350
346
  ## Copyright
351
347
 
data/countries.gemspec CHANGED
@@ -3,11 +3,15 @@
3
3
  require File.expand_path('lib/countries/version', __dir__)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
+ gem.name = 'countries'
7
+ gem.version = Countries::VERSION.dup
8
+ gem.licenses = ['MIT']
6
9
  gem.authors = ['Josh Robinson', 'Joe Corcoran', 'Russell Osborne', 'Pedro Moreira']
7
10
  gem.email = ['hexorx@gmail.com', 'russell@burningpony.com', 'pedro@codecreations.tech']
8
11
  gem.description = 'All sorts of useful information about every country packaged as pretty little country objects. It includes data from ISO 3166'
9
12
  gem.summary = 'Gives you a country object full of all sorts of useful information.'
10
13
  gem.homepage = 'https://github.com/countries/countries'
14
+
11
15
  gem.metadata = { 'bug_tracker_uri' => 'https://github.com/countries/countries/issues',
12
16
  'changelog_uri' => 'https://github.com/countries/countries/blob/master/CHANGELOG.md',
13
17
  'source_code_uri' => 'https://github.com/countries/countries',
@@ -16,10 +20,7 @@ Gem::Specification.new do |gem|
16
20
 
17
21
  gem.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
18
22
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
- gem.name = 'countries'
20
23
  gem.require_paths = ['lib']
21
- gem.version = Countries::VERSION.dup
22
- gem.license = 'MIT'
23
24
 
24
25
  gem.required_ruby_version = '>= 2.7'
25
26