countries 4.1.2 → 4.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +2 -0
- data/CHANGELOG.md +16 -0
- data/README.markdown +12 -8
- data/lib/countries/data/subdivisions/LV.yaml +6 -0
- data/lib/countries/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae71813db656246f61471bd911e6fafe63cb79724c87852516bdf3fe934d87af
|
|
4
|
+
data.tar.gz: 8c5031c3441d62e7175f79646cb74174c5f23fcfb40cc590d879bf60cc67ab79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5dfde3265a38f0a4a1efa49401651e565d1aab9d1f23f9bda495529563c0739f97703cb0da9b052678b4297254cc1ca411246516f9271faa38fc0ee4428c481
|
|
7
|
+
data.tar.gz: 061abfadd069d1bbad88faf231dfb6e7a88e5aa84d04d5666a75f90d81ca6c533798c88ee454720340925d89abf1aa61f8733b0ea31cfbb2d7d1a38bbe87a88d
|
data/.github/workflows/tests.yml
CHANGED
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
|
|
51
|
+
## Upgrading to 3.x
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
We dropped currency support via money by default, read these [instructions](README.markdown#Currencies) if you are using currency features.
|
|
54
54
|
|
|
55
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
data/lib/countries/version.rb
CHANGED
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.
|
|
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:
|
|
14
|
+
date: 2022-01-03 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: i18n_data
|