countries 4.1.2 → 4.1.3

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: d7fef1ba0b30d18c6653eb178c2a69c32d42d53e5d21418ed2ead00c94a5ed9c
4
- data.tar.gz: c2160c97c50d1994ee1520607eeff6413bf4ccabe0aa51b82f7e94dec8c25fa2
3
+ metadata.gz: ae71813db656246f61471bd911e6fafe63cb79724c87852516bdf3fe934d87af
4
+ data.tar.gz: 8c5031c3441d62e7175f79646cb74174c5f23fcfb40cc590d879bf60cc67ab79
5
5
  SHA512:
6
- metadata.gz: 4cbc87e4f7c70926939546cdd1bea00f081b135d9063d35c95b9fe4eb372be6fba5231297869e457b82d28c3e232eddde736d497624c2477d837d49d0e55c15d
7
- data.tar.gz: 9de3121086005ae9b98dedb25774e6505d5955db69ef3239ce866c8fe0e4383481bfc2bcc0ab247cecc2f6ad9974c80a8b948b37174cd1c42e1c5f1356cd5a87
6
+ metadata.gz: c5dfde3265a38f0a4a1efa49401651e565d1aab9d1f23f9bda495529563c0739f97703cb0da9b052678b4297254cc1ca411246516f9271faa38fc0ee4428c481
7
+ data.tar.gz: 061abfadd069d1bbad88faf231dfb6e7a88e5aa84d04d5666a75f90d81ca6c533798c88ee454720340925d89abf1aa61f8733b0ea31cfbb2d7d1a38bbe87a88d
@@ -23,6 +23,8 @@ jobs:
23
23
  bundler-version: default
24
24
  - ruby-version: 3.0.3
25
25
  bundler-version: default
26
+ - ruby-version: 3.1.0
27
+ bundler-version: default
26
28
  steps:
27
29
  - uses: actions/checkout@v2
28
30
  - name: Set up Ruby ${{ matrix.ruby-version }}
data/CHANGELOG.md CHANGED
@@ -6,8 +6,20 @@ This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  - Drop support for Ruby 2.5 [\#708](https://github.com/countries/countries/pull/708) ([pmor](https://github.com/pmor))
8
8
 
9
+ ## [4.1.3](https://github.com/countries/countries/releases/tag/v4.1.2) (2022/01/03 12:16 +00:00)
10
+
11
+ **Merged pull requests:**
12
+
13
+ * Fix empty translations in LV subdivisions [\#719](https://github.com/countries/countries/pull/719) ([pmor](https://github.com/pmor))
14
+
15
+ **Closed issues:**
16
+
17
+ * Subdivision translations for some latvian subdivisions nil in countries 4.1.2 [\#718](https://github.com/countries/countries/issues/718)
18
+
9
19
  ## [4.1.2](https://github.com/countries/countries/releases/tag/v4.1.2) (2021/12/20 17:06 +00:00)
10
20
 
21
+ **Merged pull requests:**
22
+
11
23
  * Update subdivisions, fix #600 conflicts [\#710](https://github.com/countries/countries/pull/710) ([donnen](https://github.com/donnen), [pmor](https://github.com/pmor))
12
24
  * Fix conflicts in #605 and update those countries to the latest subdivision data [\#711](https://github.com/countries/countries/pull/711) ([jjamesjohnson](https://github.com/jjamesjohnson), [pmor](https://github.com/pmor))
13
25
  * Update NZ subdivision data and fix Chatham Island entry [\#712](https://github.com/countries/countries/pull/712) ([pmor](https://github.com/pmor))
@@ -57,6 +69,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
57
69
 
58
70
  [Full changelog](https://github.com/countries/countries/compare/v3.1.0...v4.0.0)
59
71
 
72
+ **Breaking changes:**
73
+
74
+ - None
75
+
60
76
  **Closed issues:**
61
77
 
62
78
  - update_cldr_subdivison_data Rake task broken due to CLDR repo change [\#633](https://github.com/countries/countries/issues/633)
data/README.markdown CHANGED
@@ -48,15 +48,20 @@ To Use
48
48
  gem 'countries', require: 'countries/global'
49
49
  ```
50
50
 
51
- ## Upgrading to 4.2 and 5.x
51
+ ## Upgrading to 3.x
52
52
 
53
- In release 4.2 the `#name` attribute was deprecated in favour of `#iso_short_name` and we added `#iso_long_name`, 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.
53
+ We dropped currency support via money by default, read these [instructions](README.markdown#Currencies) if you are using currency features.
54
54
 
55
- The `#name` attribute will be removed in 5.0.
56
-
57
- 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.
55
+ ## Upgrading Country Helper to > 1.2.0
58
56
 
57
+ ```ruby
58
+ gem 'countries', require: 'global'
59
+ ```
59
60
 
61
+ has become
62
+ ```ruby
63
+ gem 'countries', require: 'countries/global'
64
+ ```
60
65
 
61
66
  ## Selective Loading of Locales
62
67
 
@@ -107,8 +112,7 @@ c.gec # => "US"
107
112
  ### Names & Translations
108
113
 
109
114
  ```ruby
110
- c.iso_long_name # => "The United States of America"
111
- c.iso_short_name # => "United States of America"
115
+ c.name # => "United States"
112
116
  c.unofficial_names # => ["United States of America", "Vereinigte Staaten von Amerika", "États-Unis", "Estados Unidos"]
113
117
 
114
118
  # Get the names for a country translated to its local languages
@@ -314,7 +318,7 @@ c.emoji_flag # => "🇲🇾"
314
318
 
315
319
  Any additions should be directed upstream to [pkg-isocodes](https://salsa.debian.org/iso-codes-team/iso-codes)
316
320
 
317
- 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
321
+ New Bugs can be filed upstream here https://salsa.debian.org/iso-codes-team/iso-codes/issues
318
322
  If you need to correct an upstream translation please add it to the lib/countries/data/translations_corrections.yaml
319
323
 
320
324
  ```
@@ -2486,6 +2486,8 @@ VEN:
2486
2486
  min_longitude:
2487
2487
  max_latitude:
2488
2488
  max_longitude:
2489
+ translations:
2490
+ lv: Augšdaugavas novads
2489
2491
  '112':
2490
2492
  name: Dienvidkurzemes Novads
2491
2493
  code:
@@ -2497,6 +2499,8 @@ VEN:
2497
2499
  min_longitude:
2498
2500
  max_latitude:
2499
2501
  max_longitude:
2502
+ translations:
2503
+ lv: Dienvidkurzemes Novads
2500
2504
  '113':
2501
2505
  name: Valmieras Novads
2502
2506
  code:
@@ -2508,3 +2512,5 @@ VEN:
2508
2512
  min_longitude:
2509
2513
  max_latitude:
2510
2514
  max_longitude:
2515
+ translations:
2516
+ lv: Valmieras Novads
@@ -1,3 +1,3 @@
1
1
  module Countries
2
- VERSION = '4.1.2'.freeze
2
+ VERSION = '4.1.3'.freeze
3
3
  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: 4.1.2
4
+ version: 4.1.3
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: 2021-12-20 00:00:00.000000000 Z
14
+ date: 2022-01-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n_data