countries 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f4c18c20a21b358c31c0453a13252eb30f5b9aff3b2fc09803b83ab42bbc434
4
- data.tar.gz: a7b7997ff12a290673f51e3b672dd501fb0f42e9a02c17a0c2c75c92a593be27
3
+ metadata.gz: baeec795ef76c0171afb436d9371e30837e0eef7290642e36ae9ac96a99d02aa
4
+ data.tar.gz: e621054ef6fa804e1116a0ac79fbaf6251a32181bd4941c9028b9fcf0a9c6b19
5
5
  SHA512:
6
- metadata.gz: 23ffc95eb8c0584db74fc5cdebc3965020c5047784fc5e18b8a1064dc61e28a3962e4d32516fff593652ce8ae5c0fdfd05e3ac6389f975ca7777cc1f1399f978
7
- data.tar.gz: 5a749c3c933871d1716102959bcbd6a96f0f5207317267a645cdbac1dddc4daff0e66701bc735c605ad0cf3a53b7c2e0f54564ae84bf504b0b1b9d45408190f9
6
+ metadata.gz: 388d84578afe4d7c8fd5e31dbfa0827e0a1ed2f63aee0f4ebd59da436200268ffa23af28952351474c47bd51ac4d6bfe1ea798353987da9ec1e6e31dce1da2af
7
+ data.tar.gz: a610bd578f9ceba72e04353c1edb69d4f93b23ba4ad398f1280b86959b4d19ef079c30df102b715097755136b32926d3e5ffdd48176e032fd05047303390e84d
data/CHANGELOG.md CHANGED
@@ -3,14 +3,21 @@
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
- ## [5.0.1] (https://github.com/countries/countries/releases/tag/v5.0.1') (2022/05/02 12:03 +00:00)
6
+ ## [5.0.2](https://github.com/countries/countries/releases/tag/v5.0.2') (2022/06/02 20:01 +00:00)
7
+
8
+ **Merged pull requests:**
9
+
10
+ * Fix common name for IR [\#754](https://github.com/countries/countries/pull/754) ([pmor](https://github.com/pmor))
11
+ * Update MX subdivisions: Remove DIF and update some unofficial names [\#755](https://github.com/countries/countries/pull/755) ([pmor](https://github.com/pmor))
12
+
13
+ ## [5.0.1](https://github.com/countries/countries/releases/tag/v5.0.1') (2022/05/02 12:03 +00:00)
7
14
 
8
15
  **Merged pull requests:**
9
16
 
10
17
  * Added subdivision_names_with_codes method in documentation [\#747](https://github.com/countries/countries/pull/747) ([arymoraes](https://github.com/arymoraes))
11
- * Corrected Portuguese subdivision names by @FilipaDurao in [\#748](https://github.com/countries/countries/pull/748) ([FilipaDurao](https://github.com/FilipaDurao))
18
+ * Corrected Portuguese subdivision names [\#748](https://github.com/countries/countries/pull/748) ([FilipaDurao](https://github.com/FilipaDurao))
12
19
 
13
- ## [5.0.0] (https://github.com/countries/countries/releases/tag/v5.0.0') (2022/04/03 17:44 +00:00)
20
+ ## [5.0.0](https://github.com/countries/countries/releases/tag/v5.0.0') (2022/04/03 17:44 +00:00)
14
21
 
15
22
  **Breaking Changes**
16
23
 
data/README.markdown CHANGED
@@ -48,51 +48,11 @@ gem 'countries', require: 'countries/global'
48
48
 
49
49
  ## Upgrading to 4.2 and 5.x
50
50
 
51
- In release 4.2 the `#name` attribute was deprecated in favour of `#iso_short_name` and we added the `#iso_long_name` attribute, to make it clear that these attributes use the ISO3166 names, and are not the "common names" most people might expect, eg: The ISO name for "United Kingdom" is "United Kingdom of Great Britain and Northern Ireland", but if you're building a dropdown box to select a country, you're likely expecting to see "United Kingdom" instead.
51
+ Release 4.2.0 introduced changes to name attributes and finders and deprecated several methods to resolve some existing confusion regardign official ISO country names vs. the "common names" that are commonly used.
52
52
 
53
- "Common names" in English have been available in the translation data, via `#translation('en')`. As of release 4.2, a shortcut method has been added for simplicity, `#common_name`, which delegates to `#translation('en')`.
53
+ The 5.0 release removed these deprecated methods and also removed support for Ruby 2.5 and 2.6
54
54
 
55
- For additional clarity, the `#names` method, which was an alias to `#unofficial_names` has also been deprecated, together with the finder methods that use `name` or `names` attributes.
56
-
57
- The `#name` and `#names` attributes, and corresponding finder methods were removed in 5.0.
58
-
59
- The replacement finders added in 5.0 are:
60
-
61
- - `#find_by_name` => `#find_by_any_name` - Searches all the name attributes, same as before
62
- - `#find_by_names` => `#find_by_unofficial_names`
63
- - `#find_*_by_name` => `#find_*_by_any_name`
64
- - `#find_*_by_names` => `#find_*_by_unofficial_names`
65
-
66
- With the addition of the new name attributes, there are now also the following finders:
67
-
68
- - `#find_by_common_name`/`#find_*_by_common_name`
69
- - `#find_by_iso_short_name`/`#find_*_by_iso_short_name`
70
- - `#find_by_iso_long_name`/`#find_*_by_iso_long_name`
71
-
72
- For translated country names, we use data from [pkg-isocodes](https://salsa.debian.org/iso-codes-team/iso-codes), via the [i18n_data](https://github.com/grosser/i18n_data) gem, and these generally correspond to the expected "common names". These names and the corresponding methods have not been changed.
73
-
74
- The 5.0 release removed support for Ruby 2.5 (EOL 2021-03-01) and 2.6 (EOL 2022-03-31)
75
-
76
- ## Selective Loading of Locales
77
-
78
- As of 2.0 you can selectively load locales to reduce memory usage in production.
79
-
80
- By default we load `I18n.available_locales` if I18n is present, otherwise only `[:en]`. This means almost any Rails environment will only bring in its supported translations.
81
-
82
- You can add all the locales like this.
83
-
84
- ```ruby
85
- ISO3166.configure do |config|
86
- config.locales = [:af, :am, :ar, :as, :az, :be, :bg, :bn, :br, :bs, :ca, :cs, :cy, :da, :de, :dz, :el, :en, :eo, :es, :et, :eu, :fa, :fi, :fo, :fr, :ga, :gl, :gu, :he, :hi, :hr, :hu, :hy, :ia, :id, :is, :it, :ja, :ka, :kk, :km, :kn, :ko, :ku, :lt, :lv, :mi, :mk, :ml, :mn, :mr, :ms, :mt, :nb, :ne, :nl, :nn, :oc, :or, :pa, :pl, :ps, :pt, :ro, :ru, :rw, :si, :sk, :sl, :so, :sq, :sr, :sv, :sw, :ta, :te, :th, :ti, :tk, :tl, :tr, :tt, :ug, :uk, :ve, :vi, :wa, :wo, :xh, :zh, :zu]
87
- end
88
- ```
89
-
90
- or something a bit more simple
91
- ```ruby
92
- ISO3166.configure do |config|
93
- config.locales = [:en, :de, :fr, :es]
94
- end
95
- ```
55
+ Plase see [UPGRADE.md](../master/UPGRADE.md) for more information
96
56
 
97
57
  ## Attribute-Based Finder Methods
98
58
 
@@ -103,13 +63,13 @@ c = ISO3166::Country.find_country_by_iso_short_name('italy')
103
63
  c = ISO3166::Country.find_country_by_any_name('united states')
104
64
  h = ISO3166::Country.find_all_by(:translated_names, 'França')
105
65
  list = ISO3166::Country.find_all_countries_by_region('Americas')
106
- c = ISO3166::Country.find_country_by_alpha3('can')
66
+ c = ISO3166::Country.find_country_by_alpha2("FR")
107
67
  ```
108
68
 
109
69
  For a list of available attributes please see `ISO3166::DEFAULT_COUNTRY_HASH`.
110
70
  Note: searches are *case insensitive and ignore accents*.
111
71
 
112
- _Please note that `find_by_name`, `find_by_names`, `find_*_by_name` and `find_*_by_names` methods were removed in 5.0. See [Upgrading to 4.2 and 5.x](#upgrading-to-4-2-and-5-x) above for the new methods_
72
+ _Please note that `find_by_name`, `find_by_names`, `find_*_by_name` and `find_*_by_names` methods were removed in 5.0. See [UPGRADE.md](../blob/master/UPGRADE.md) for more information_
113
73
 
114
74
  ## Country Info
115
75
 
@@ -218,13 +178,19 @@ c.in_eu? # => false
218
178
  c.in_eea? # => false
219
179
  ```
220
180
 
221
-
222
181
  ### European Single Market Membership
223
182
 
224
183
  ```ruby
225
184
  c.in_esm? # => false
226
185
  ```
227
186
 
187
+ ## Country Code in Emoji
188
+
189
+ ```ruby
190
+ c = Country['MY']
191
+ c.emoji_flag # => "🇲🇾"
192
+ ```
193
+
228
194
  ### Plucking multiple attributes
229
195
 
230
196
  ```ruby
@@ -262,6 +228,27 @@ A template for formatting addresses is available through the address_format meth
262
228
  c.address_format # => "{{recipient}}\n{{street}}\n{{city}} {{region}} {{postalcode}}\n{{country}}"
263
229
  ```
264
230
 
231
+ ## Selective Loading of Locales
232
+
233
+ As of 2.0 you can selectively load locales to reduce memory usage in production.
234
+
235
+ By default we load `I18n.available_locales` if I18n is present, otherwise only `[:en]`. This means almost any Rails environment will only bring in its supported translations.
236
+
237
+ You can add all the locales like this.
238
+
239
+ ```ruby
240
+ ISO3166.configure do |config|
241
+ config.locales = [:af, :am, :ar, :as, :az, :be, :bg, :bn, :br, :bs, :ca, :cs, :cy, :da, :de, :dz, :el, :en, :eo, :es, :et, :eu, :fa, :fi, :fo, :fr, :ga, :gl, :gu, :he, :hi, :hr, :hu, :hy, :ia, :id, :is, :it, :ja, :ka, :kk, :km, :kn, :ko, :ku, :lt, :lv, :mi, :mk, :ml, :mn, :mr, :ms, :mt, :nb, :ne, :nl, :nn, :oc, :or, :pa, :pl, :ps, :pt, :ro, :ru, :rw, :si, :sk, :sl, :so, :sq, :sr, :sv, :sw, :ta, :te, :th, :ti, :tk, :tl, :tr, :tt, :ug, :uk, :ve, :vi, :wa, :wo, :xh, :zh, :zu]
242
+ end
243
+ ```
244
+
245
+ or something a bit more simple
246
+ ```ruby
247
+ ISO3166.configure do |config|
248
+ config.locales = [:en, :de, :fr, :es]
249
+ end
250
+ ```
251
+
265
252
  ## Loading Custom Data
266
253
 
267
254
  As of 2.0 countries supports loading custom countries / overriding data in its data set, though if you choose to do this please contribute back to the upstream repo!
@@ -327,32 +314,14 @@ def country
327
314
  end
328
315
  ```
329
316
 
330
- ## Country Code in Emoji
331
-
332
- ```ruby
333
- c = Country['MY']
334
- c.emoji_flag # => "🇲🇾"
335
- ```
336
-
337
317
  ## Note on Patches/Pull Requests
338
318
 
339
- ### Please do not submit pull requests on `cache/**/*`
319
+ **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.
340
320
 
341
- Any additions should be directed upstream to [pkg-isocodes](https://salsa.debian.org/iso-codes-team/iso-codes)
342
-
343
- Localized country name data is sourced from https://github.com/grosser/i18n_data (which is based on https://salsa.debian.org/iso-codes-team/iso-codes/). Issues regarding localized country names can be reported to https://github.com/grosser/i18n_data/issues or https://salsa.debian.org/iso-codes-team/iso-codes/issues
344
- If you need to correct an upstream translation please add it to the lib/countries/data/translations_corrections.yaml
345
-
346
- ```
347
- # Ex:
348
- #
349
- # locale:
350
- # alpha2: localized_name
351
- #
352
- ```
321
+ Localized country name data is sourced from the [i18n_data](https://github.com/grosser/i18n_data) gem (which is based on [pkg-isocodes](https://salsa.debian.org/iso-codes-team/iso-codes)).
322
+ Issues regarding localized country names can be reported to https://github.com/grosser/i18n_data/issues or https://salsa.debian.org/iso-codes-team/iso-codes/issues
353
323
 
354
- Any corrections can be applied in translations_corrections.yaml these will be injected during
355
- the next `rake update_cache`.
324
+ If you need to correct an upstream translation please add it to the `lib/countries/data/translations_corrections.yaml`, and they will be injected during the next `rake update_cache`.
356
325
 
357
326
  * Fork the project.
358
327
  * Make your feature addition or bug fix.
@@ -361,12 +330,11 @@ the next `rake update_cache`.
361
330
  * Commit, do not mess with rakefile, version, or history.
362
331
  (if you want to have your own version, that is fine but
363
332
  bump version in a commit by itself I can ignore when I pull)
364
- * Send me a pull request. Bonus points for topic branches.
333
+ * Make sure your you haven't made changes to `cache/**/*`
334
+ * Submit a pull request. Bonus points for topic branches.
365
335
 
366
336
  ## Copyright
367
337
 
368
- Copyright (c) 2012-2015 hexorx
369
- Copyright (c) 2015-2021 hexorx, rposborne
370
- Copyright (c) 2022 hexorx, rposborne, pmor
338
+ Copyright (c) 2012-2015 hexorx; 2015-2021 hexorx, rposborne; 2022 hexorx, rposborne, pmor
371
339
 
372
340
  See LICENSE for details.
data/UPGRADE.md ADDED
@@ -0,0 +1,26 @@
1
+ # Upgrading to 4.2 and 5.x
2
+
3
+ In release 4.2 the `#name` attribute was deprecated in favour of `#iso_short_name` and we added the `#iso_long_name` attribute, to make it clear that these attributes use the ISO3166 names, and are not the "common names" most people might expect, eg: The ISO name for "United Kingdom" is "United Kingdom of Great Britain and Northern Ireland", but if you're building a dropdown box to select a country, you're likely expecting to see "United Kingdom" instead.
4
+
5
+ "Common names" in English have been available in the translation data, via `#translation('en')`. As of release 4.2, a shortcut method has been added for simplicity, `#common_name`, which delegates to `#translation('en')`.
6
+
7
+ For additional clarity, the `#names` method, which was an alias to `#unofficial_names` has also been deprecated, together with the finder methods that use `name` or `names` attributes.
8
+
9
+ The `#name` and `#names` attributes, and corresponding finder methods were removed in 5.0.
10
+
11
+ The replacement finders added in 5.0 are:
12
+
13
+ - `#find_by_name` => `#find_by_any_name` - Searches all the name attributes, same as before
14
+ - `#find_by_names` => `#find_by_unofficial_names`
15
+ - `#find_*_by_name` => `#find_*_by_any_name`
16
+ - `#find_*_by_names` => `#find_*_by_unofficial_names`
17
+
18
+ With the addition of the new name attributes, there are now also the following finders:
19
+
20
+ - `#find_by_common_name`/`#find_*_by_common_name`
21
+ - `#find_by_iso_short_name`/`#find_*_by_iso_short_name`
22
+ - `#find_by_iso_long_name`/`#find_*_by_iso_long_name`
23
+
24
+ For translated country names, we use data from [pkg-isocodes](https://salsa.debian.org/iso-codes-team/iso-codes), via the [i18n_data](https://github.com/grosser/i18n_data) gem, and these generally correspond to the expected "common names". These names and the corresponding methods have not been changed.
25
+
26
+ The 5.0 release removed support for Ruby 2.5 (EOL 2021-03-01) and 2.6 (EOL 2022-03-31)
@@ -1 +1 @@
1
- {"AW":"Aruba","AF":"Afghanistan","AO":"Angola","AI":"Anguilla","AX":"Åland Islands","AL":"Albania","AD":"Andorra","AE":"United Arab Emirates","AR":"Argentina","AM":"Armenia","AS":"American Samoa","AQ":"Antarctica","TF":"French Southern Territories","AG":"Antigua and Barbuda","AU":"Australia","AT":"Austria","AZ":"Azerbaijan","BI":"Burundi","BE":"Belgium","BJ":"Benin","BQ":"Bonaire, Sint Eustatius and Saba","BF":"Burkina Faso","BD":"Bangladesh","BG":"Bulgaria","BH":"Bahrain","BS":"Bahamas","BA":"Bosnia and Herzegovina","BL":"Saint Barthélemy","BY":"Belarus","BZ":"Belize","BM":"Bermuda","BO":"Bolivia","BR":"Brazil","BB":"Barbados","BN":"Brunei Darussalam","BT":"Bhutan","BV":"Bouvet Island","BW":"Botswana","CF":"Central African Republic","CA":"Canada","CC":"Cocos (Keeling) Islands","CH":"Switzerland","CL":"Chile","CN":"China","CI":"Côte d'Ivoire","CM":"Cameroon","CD":"Congo, The Democratic Republic of the","CG":"Congo","CK":"Cook Islands","CO":"Colombia","KM":"Comoros","CV":"Cabo Verde","CR":"Costa Rica","CU":"Cuba","CW":"Curaçao","CX":"Christmas Island","KY":"Cayman Islands","CY":"Cyprus","CZ":"Czechia","DE":"Germany","DJ":"Djibouti","DM":"Dominica","DK":"Denmark","DO":"Dominican Republic","DZ":"Algeria","EC":"Ecuador","EG":"Egypt","ER":"Eritrea","EH":"Western Sahara","ES":"Spain","EE":"Estonia","ET":"Ethiopia","FI":"Finland","FJ":"Fiji","FK":"Falkland Islands (Malvinas)","FR":"France","FO":"Faroe Islands","FM":"Micronesia, Federated States of","GA":"Gabon","GB":"United Kingdom","GE":"Georgia","GG":"Guernsey","GH":"Ghana","GI":"Gibraltar","GN":"Guinea","GP":"Guadeloupe","GM":"Gambia","GW":"Guinea-Bissau","GQ":"Equatorial Guinea","GR":"Greece","GD":"Grenada","GL":"Greenland","GT":"Guatemala","GF":"French Guiana","GU":"Guam","GY":"Guyana","HK":"Hong Kong","HM":"Heard Island and McDonald Islands","HN":"Honduras","HR":"Croatia","HT":"Haiti","HU":"Hungary","ID":"Indonesia","IM":"Isle of Man","IN":"India","IO":"British Indian Ocean Territory","IE":"Ireland","IR":"Iran, Islamic Republic of","IQ":"Iraq","IS":"Iceland","IL":"Israel","IT":"Italy","JM":"Jamaica","JE":"Jersey","JO":"Jordan","JP":"Japan","KZ":"Kazakhstan","KE":"Kenya","KG":"Kyrgyzstan","KH":"Cambodia","KI":"Kiribati","KN":"Saint Kitts and Nevis","KR":"South Korea","KW":"Kuwait","LA":"Lao People's Democratic Republic","LB":"Lebanon","LR":"Liberia","LY":"Libya","LC":"Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LS":"Lesotho","LT":"Lithuania","LU":"Luxembourg","LV":"Latvia","MO":"Macao","MF":"Saint Martin (French part)","MA":"Morocco","MC":"Monaco","MD":"Moldova","MG":"Madagascar","MV":"Maldives","MX":"Mexico","MH":"Marshall Islands","MK":"North Macedonia","ML":"Mali","MT":"Malta","MM":"Myanmar","ME":"Montenegro","MN":"Mongolia","MP":"Northern Mariana Islands","MZ":"Mozambique","MR":"Mauritania","MS":"Montserrat","MQ":"Martinique","MU":"Mauritius","MW":"Malawi","MY":"Malaysia","YT":"Mayotte","NA":"Namibia","NC":"New Caledonia","NE":"Niger","NF":"Norfolk Island","NG":"Nigeria","NI":"Nicaragua","NU":"Niue","NL":"Netherlands","NO":"Norway","NP":"Nepal","NR":"Nauru","NZ":"New Zealand","OM":"Oman","PK":"Pakistan","PA":"Panama","PN":"Pitcairn","PE":"Peru","PH":"Philippines","PW":"Palau","PG":"Papua New Guinea","PL":"Poland","PR":"Puerto Rico","KP":"North Korea","PT":"Portugal","PY":"Paraguay","PS":"Palestine, State of","PF":"French Polynesia","QA":"Qatar","RE":"Réunion","RO":"Romania","RU":"Russian Federation","RW":"Rwanda","SA":"Saudi Arabia","SD":"Sudan","SN":"Senegal","SG":"Singapore","GS":"South Georgia and the South Sandwich Islands","SH":"Saint Helena, Ascension and Tristan da Cunha","SJ":"Svalbard and Jan Mayen","SB":"Solomon Islands","SL":"Sierra Leone","SV":"El Salvador","SM":"San Marino","SO":"Somalia","PM":"Saint Pierre and Miquelon","RS":"Serbia","SS":"South Sudan","ST":"Sao Tome and Principe","SR":"Suriname","SK":"Slovakia","SI":"Slovenia","SE":"Sweden","SZ":"Eswatini","SX":"Sint Maarten (Dutch part)","SC":"Seychelles","SY":"Syrian Arab Republic","TC":"Turks and Caicos Islands","TD":"Chad","TG":"Togo","TH":"Thailand","TJ":"Tajikistan","TK":"Tokelau","TM":"Turkmenistan","TL":"Timor-Leste","TO":"Tonga","TT":"Trinidad and Tobago","TN":"Tunisia","TR":"Turkey","TV":"Tuvalu","TW":"Taiwan","TZ":"Tanzania","UG":"Uganda","UA":"Ukraine","UM":"United States Minor Outlying Islands","UY":"Uruguay","US":"United States","UZ":"Uzbekistan","VA":"Holy See (Vatican City State)","VC":"Saint Vincent and the Grenadines","VE":"Venezuela","VG":"Virgin Islands, British","VI":"Virgin Islands, U.S.","VN":"Vietnam","VU":"Vanuatu","WF":"Wallis and Futuna","WS":"Samoa","YE":"Yemen","ZA":"South Africa","ZM":"Zambia","ZW":"Zimbabwe"}
1
+ {"AW":"Aruba","AF":"Afghanistan","AO":"Angola","AI":"Anguilla","AX":"Åland Islands","AL":"Albania","AD":"Andorra","AE":"United Arab Emirates","AR":"Argentina","AM":"Armenia","AS":"American Samoa","AQ":"Antarctica","TF":"French Southern Territories","AG":"Antigua and Barbuda","AU":"Australia","AT":"Austria","AZ":"Azerbaijan","BI":"Burundi","BE":"Belgium","BJ":"Benin","BQ":"Bonaire, Sint Eustatius and Saba","BF":"Burkina Faso","BD":"Bangladesh","BG":"Bulgaria","BH":"Bahrain","BS":"Bahamas","BA":"Bosnia and Herzegovina","BL":"Saint Barthélemy","BY":"Belarus","BZ":"Belize","BM":"Bermuda","BO":"Bolivia","BR":"Brazil","BB":"Barbados","BN":"Brunei Darussalam","BT":"Bhutan","BV":"Bouvet Island","BW":"Botswana","CF":"Central African Republic","CA":"Canada","CC":"Cocos (Keeling) Islands","CH":"Switzerland","CL":"Chile","CN":"China","CI":"Côte d'Ivoire","CM":"Cameroon","CD":"Congo, The Democratic Republic of the","CG":"Congo","CK":"Cook Islands","CO":"Colombia","KM":"Comoros","CV":"Cabo Verde","CR":"Costa Rica","CU":"Cuba","CW":"Curaçao","CX":"Christmas Island","KY":"Cayman Islands","CY":"Cyprus","CZ":"Czechia","DE":"Germany","DJ":"Djibouti","DM":"Dominica","DK":"Denmark","DO":"Dominican Republic","DZ":"Algeria","EC":"Ecuador","EG":"Egypt","ER":"Eritrea","EH":"Western Sahara","ES":"Spain","EE":"Estonia","ET":"Ethiopia","FI":"Finland","FJ":"Fiji","FK":"Falkland Islands (Malvinas)","FR":"France","FO":"Faroe Islands","FM":"Micronesia, Federated States of","GA":"Gabon","GB":"United Kingdom","GE":"Georgia","GG":"Guernsey","GH":"Ghana","GI":"Gibraltar","GN":"Guinea","GP":"Guadeloupe","GM":"Gambia","GW":"Guinea-Bissau","GQ":"Equatorial Guinea","GR":"Greece","GD":"Grenada","GL":"Greenland","GT":"Guatemala","GF":"French Guiana","GU":"Guam","GY":"Guyana","HK":"Hong Kong","HM":"Heard Island and McDonald Islands","HN":"Honduras","HR":"Croatia","HT":"Haiti","HU":"Hungary","ID":"Indonesia","IM":"Isle of Man","IN":"India","IO":"British Indian Ocean Territory","IE":"Ireland","IR":"Iran","IQ":"Iraq","IS":"Iceland","IL":"Israel","IT":"Italy","JM":"Jamaica","JE":"Jersey","JO":"Jordan","JP":"Japan","KZ":"Kazakhstan","KE":"Kenya","KG":"Kyrgyzstan","KH":"Cambodia","KI":"Kiribati","KN":"Saint Kitts and Nevis","KR":"South Korea","KW":"Kuwait","LA":"Lao People's Democratic Republic","LB":"Lebanon","LR":"Liberia","LY":"Libya","LC":"Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LS":"Lesotho","LT":"Lithuania","LU":"Luxembourg","LV":"Latvia","MO":"Macao","MF":"Saint Martin (French part)","MA":"Morocco","MC":"Monaco","MD":"Moldova","MG":"Madagascar","MV":"Maldives","MX":"Mexico","MH":"Marshall Islands","MK":"North Macedonia","ML":"Mali","MT":"Malta","MM":"Myanmar","ME":"Montenegro","MN":"Mongolia","MP":"Northern Mariana Islands","MZ":"Mozambique","MR":"Mauritania","MS":"Montserrat","MQ":"Martinique","MU":"Mauritius","MW":"Malawi","MY":"Malaysia","YT":"Mayotte","NA":"Namibia","NC":"New Caledonia","NE":"Niger","NF":"Norfolk Island","NG":"Nigeria","NI":"Nicaragua","NU":"Niue","NL":"Netherlands","NO":"Norway","NP":"Nepal","NR":"Nauru","NZ":"New Zealand","OM":"Oman","PK":"Pakistan","PA":"Panama","PN":"Pitcairn","PE":"Peru","PH":"Philippines","PW":"Palau","PG":"Papua New Guinea","PL":"Poland","PR":"Puerto Rico","KP":"North Korea","PT":"Portugal","PY":"Paraguay","PS":"Palestine, State of","PF":"French Polynesia","QA":"Qatar","RE":"Réunion","RO":"Romania","RU":"Russian Federation","RW":"Rwanda","SA":"Saudi Arabia","SD":"Sudan","SN":"Senegal","SG":"Singapore","GS":"South Georgia and the South Sandwich Islands","SH":"Saint Helena, Ascension and Tristan da Cunha","SJ":"Svalbard and Jan Mayen","SB":"Solomon Islands","SL":"Sierra Leone","SV":"El Salvador","SM":"San Marino","SO":"Somalia","PM":"Saint Pierre and Miquelon","RS":"Serbia","SS":"South Sudan","ST":"Sao Tome and Principe","SR":"Suriname","SK":"Slovakia","SI":"Slovenia","SE":"Sweden","SZ":"Eswatini","SX":"Sint Maarten (Dutch part)","SC":"Seychelles","SY":"Syrian Arab Republic","TC":"Turks and Caicos Islands","TD":"Chad","TG":"Togo","TH":"Thailand","TJ":"Tajikistan","TK":"Tokelau","TM":"Turkmenistan","TL":"Timor-Leste","TO":"Tonga","TT":"Trinidad and Tobago","TN":"Tunisia","TR":"Turkey","TV":"Tuvalu","TW":"Taiwan","TZ":"Tanzania","UG":"Uganda","UA":"Ukraine","UM":"United States Minor Outlying Islands","UY":"Uruguay","US":"United States","UZ":"Uzbekistan","VA":"Holy See (Vatican City State)","VC":"Saint Vincent and the Grenadines","VE":"Venezuela","VG":"Virgin Islands, British","VI":"Virgin Islands, U.S.","VN":"Vietnam","VU":"Vanuatu","WF":"Wallis and Futuna","WS":"Samoa","YE":"Yemen","ZA":"South Africa","ZM":"Zambia","ZW":"Zimbabwe"}
@@ -565,7 +565,7 @@ CMX:
565
565
  COA:
566
566
  name: Coahuila
567
567
  code:
568
- unofficial_names: Coahuila
568
+ unofficial_names: Coahuila de Zaragoza
569
569
  geo:
570
570
  latitude: 27.058676
571
571
  longitude: -101.7068294
@@ -1170,7 +1170,7 @@ MEX:
1170
1170
  MIC:
1171
1171
  name: Michoacán
1172
1172
  code:
1173
- unofficial_names: Michoacán
1173
+ unofficial_names: Michoacán de Ocampo
1174
1174
  geo:
1175
1175
  latitude: 19.5665192
1176
1176
  longitude: -101.7068294
@@ -2234,7 +2234,7 @@ TLA:
2234
2234
  VER:
2235
2235
  name: Veracruz
2236
2236
  code:
2237
- unofficial_names: Veracruz
2237
+ unofficial_names: Veracruz de Ignacio de la Llave
2238
2238
  geo:
2239
2239
  latitude: 19.173773
2240
2240
  longitude: -96.1342241
@@ -2463,15 +2463,3 @@ ZAC:
2463
2463
  mk: Закатекас
2464
2464
  'no': Zacatecas
2465
2465
  comments:
2466
- DIF:
2467
- name: Mexico City
2468
- code:
2469
- unofficial_names:
2470
- geo:
2471
- latitude: 19.3663162
2472
- longitude: -99.1593231
2473
- translations:
2474
- en: Mexico City
2475
- ccp: "\U0001111F\U0001112C\U00011107\U00011134\U00011125\U00011128\U00011107\U0001112E
2476
- \U00011125\U00011128\U00011111\U00011128"
2477
- comments:
@@ -21,6 +21,8 @@ ar:
21
21
  CW: "كوراساو"
22
22
  da:
23
23
  CZ: 'Tjekkiet'
24
+ en:
25
+ IR: 'Iran'
24
26
  fa:
25
27
  IR: "ایران"
26
28
  he:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Countries
4
- VERSION = '5.0.1'.freeze
4
+ VERSION = '5.0.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: countries
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Robinson
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-05-02 00:00:00.000000000 Z
14
+ date: 2022-06-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n_data
@@ -104,6 +104,7 @@ files:
104
104
  - LICENSE
105
105
  - README.markdown
106
106
  - Rakefile
107
+ - UPGRADE.md
107
108
  - bin/console
108
109
  - countries.gemspec
109
110
  - lib/countries.rb