worldwide 1.26.2 → 1.26.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/ci.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +5 -5
- data/data/regions/BR.yml +1 -0
- data/data/regions/CL.yml +0 -1
- data/lib/worldwide/cldr.rb +2 -6
- data/lib/worldwide/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: c7fafadf542d060d153b05e52fd503b7eba9c2348448c5206586fcea77148038
|
|
4
|
+
data.tar.gz: 93a6f8ec9eab7a34f9641c3fa004b6ab343f1eb8eb26ca6b870cfd305d9acfb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 695024436d230a8cf893dfce768b8218428617d6ae1ebf13242e247367f16cf8982664d3ad19f9bf9e23402e1b6878698c54bc08c872f77eb8dbe94fbf23ee2b
|
|
7
|
+
data.tar.gz: '07621898fa7e6641e769f27aab9c5d70bff151a38ce6216eade00a3b911b279383a1ecc9f266c66193b64b4629adb56357cc7f6195de51b03fa43076b1a39022'
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
- name: Check out code
|
|
23
23
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
24
|
- name: Set up Ruby ${{ matrix.ruby }}
|
|
25
|
-
uses: ruby/setup-ruby@
|
|
25
|
+
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
26
26
|
with:
|
|
27
27
|
ruby-version: ${{ matrix.ruby }}
|
|
28
28
|
bundler-cache: true
|
data/CHANGELOG.md
CHANGED
|
@@ -29,6 +29,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
|
+
## [1.26.3] - 2026-09-01
|
|
33
|
+
- Select CLDR storage based on i18n's config behavior instead of Ruby's Fiber API. [#586](https://github.com/Shopify/worldwide/pull/586)
|
|
34
|
+
- No longer require building number for Chile. [#585](https://github.com/Shopify/worldwide/pull/585)
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
32
38
|
## [1.26.2] - 2026-08-05
|
|
33
39
|
- Fix `address1_regex` for NL/BE/DE so house numbers with uppercase unit letters (`Voltastraat 2 A`), hyphenated ranges (`Philippusweg 3-5`), roman-numeral suffixes (`Kerkstraat 12-II`), and NL streets starting with an ordinal (`1e Helmersstraat 5`) split correctly instead of dumping the whole value into `streetName`. [#565](https://github.com/Shopify/worldwide/pull/565)
|
|
34
40
|
|
data/Gemfile.lock
CHANGED
|
@@ -13,7 +13,7 @@ GIT
|
|
|
13
13
|
PATH
|
|
14
14
|
remote: .
|
|
15
15
|
specs:
|
|
16
|
-
worldwide (1.26.
|
|
16
|
+
worldwide (1.26.3)
|
|
17
17
|
activesupport (>= 7.0)
|
|
18
18
|
i18n (>= 1.15)
|
|
19
19
|
phonelib (~> 0.8)
|
|
@@ -21,7 +21,7 @@ PATH
|
|
|
21
21
|
GEM
|
|
22
22
|
remote: https://rubygems.org/
|
|
23
23
|
specs:
|
|
24
|
-
activesupport (7.2.3.
|
|
24
|
+
activesupport (7.2.3.2)
|
|
25
25
|
base64
|
|
26
26
|
benchmark (>= 0.3)
|
|
27
27
|
bigdecimal
|
|
@@ -46,7 +46,7 @@ GEM
|
|
|
46
46
|
drb (2.2.3)
|
|
47
47
|
i18n (1.15.2)
|
|
48
48
|
concurrent-ruby (~> 1.0)
|
|
49
|
-
json (2.21.
|
|
49
|
+
json (2.21.2)
|
|
50
50
|
language_server-protocol (3.17.0.6)
|
|
51
51
|
lint_roller (1.1.0)
|
|
52
52
|
logger (1.7.0)
|
|
@@ -69,7 +69,7 @@ GEM
|
|
|
69
69
|
parser (3.3.12.0)
|
|
70
70
|
ast (~> 2.4.1)
|
|
71
71
|
racc
|
|
72
|
-
phonelib (0.10.
|
|
72
|
+
phonelib (0.10.23)
|
|
73
73
|
prism (1.9.0)
|
|
74
74
|
pry (0.15.2)
|
|
75
75
|
coderay (~> 1.1)
|
|
@@ -88,7 +88,7 @@ GEM
|
|
|
88
88
|
logger
|
|
89
89
|
tsort
|
|
90
90
|
regexp_parser (2.12.0)
|
|
91
|
-
rubocop (1.
|
|
91
|
+
rubocop (1.89.0)
|
|
92
92
|
json (~> 2.3)
|
|
93
93
|
language_server-protocol (~> 3.17.0.2)
|
|
94
94
|
lint_roller (~> 1.1.0)
|
data/data/regions/BR.yml
CHANGED
|
@@ -31,6 +31,7 @@ format_extended:
|
|
|
31
31
|
address1_regex:
|
|
32
32
|
- "^(?<streetName>.+?),\\s*(?<streetNumber>(?:\\d+[a-zà-öø-ÿ]?|\\d+(?:[-/]\\d+[a-zà-öø-ÿ]?)+|\\d+(?:\\s+\\d+)+|s\\/?n|sem n[úu]mero))$"
|
|
33
33
|
- "^(?<streetName>.+?),\\s*(?<streetNumber>(?:\\d+[a-zà-öø-ÿ]?|\\d+(?:[-/]\\d+[a-zà-öø-ÿ]?)+|\\d+(?:\\s+\\d+)+|s\\/?n|sem n[úu]mero))\\s*,\\s*(?<line2>.+)$"
|
|
34
|
+
- "^(?<streetName>.+?),\\s*(?<streetNumber>(?:\\d+[a-zà-öø-ÿ]?|\\d+(?:[-/]\\d+[a-zà-öø-ÿ]?)+|\\d+(?:\\s+\\d+)+|s\\/?n|sem n[úu]mero))\\s+(?<line2>(?:apt(?:o|\\.)?|apartamento|bloco|casa|sala|fundos|loja|condom[ií]nio)\\b.+)$"
|
|
34
35
|
- "^(?<streetName>(?:[^\\d,\\s]+\\s)*[^\\d,\\s]+)\\s+(?<streetNumber>\\d+(?: ?[a-z])?)\\s+(?<line2>(?:apt(?:o|\\.)?|apartamento|bloco|casa|sala|fundos|loja)\\b.+)$"
|
|
35
36
|
- "^(?<streetName>(?:[^\\d,\\s]+\\s)*[^\\d,\\s]+)(?:,? ?)(?<streetNumber>\\d+(?: ?[a-z])?)\\s*,\\s*(?<line2>.+)$"
|
|
36
37
|
- "^(?<streetName>(?:[^\\d,\\s]+\\s)*[^\\d,\\s]+)(?:,? ?)(?<streetNumber>\\d+(?: ?[a-z])?)$"
|
data/data/regions/CL.yml
CHANGED
|
@@ -10,7 +10,6 @@ group: South American Countries
|
|
|
10
10
|
group_name: South America
|
|
11
11
|
zip_example: '8340457'
|
|
12
12
|
phone_number_prefix: 56
|
|
13
|
-
building_number_required: true
|
|
14
13
|
week_start_day: sunday
|
|
15
14
|
format:
|
|
16
15
|
edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}_{province}_{phone}"
|
data/lib/worldwide/cldr.rb
CHANGED
|
@@ -11,11 +11,7 @@ module Worldwide
|
|
|
11
11
|
cldr_config.exception_handler = Worldwide::Config.exception_handler
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# i18n
|
|
15
|
-
# 3.2+ and in thread-local storage otherwise. We must write the same slots
|
|
16
|
-
# i18n reads back, so a Thread.current[:i18n_config] write is not silently
|
|
17
|
-
# ignored on Ruby 3.2+. These strategies mirror i18n's own storage; the one
|
|
18
|
-
# matching the runtime is selected once into STORAGE.
|
|
14
|
+
# Match i18n's config storage behavior, not Ruby's Fiber API.
|
|
19
15
|
module FiberStorage
|
|
20
16
|
class << self
|
|
21
17
|
def config
|
|
@@ -57,7 +53,7 @@ module Worldwide
|
|
|
57
53
|
end
|
|
58
54
|
end
|
|
59
55
|
|
|
60
|
-
STORAGE =
|
|
56
|
+
STORAGE = I18n::Config.method_defined?(:owned_by?) ? FiberStorage : ThreadStorage
|
|
61
57
|
|
|
62
58
|
class << self
|
|
63
59
|
def fallbacks
|
data/lib/worldwide/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: worldwide
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.26.
|
|
4
|
+
version: 1.26.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shopify
|
|
@@ -8736,7 +8736,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
8736
8736
|
- !ruby/object:Gem::Version
|
|
8737
8737
|
version: '0'
|
|
8738
8738
|
requirements: []
|
|
8739
|
-
rubygems_version: 4.0.
|
|
8739
|
+
rubygems_version: 4.0.19
|
|
8740
8740
|
specification_version: 4
|
|
8741
8741
|
summary: Internationalization and localization APIs
|
|
8742
8742
|
test_files: []
|