worldwide 0.6.5 → 0.6.7

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: 3698c638953184523af4adc04e4f628ab8cb23c766d74d7cf93e5a23b0078e3b
4
- data.tar.gz: fde45fe4084e9246bebddd747460b502e6ce1ab0a63ab4044b5f0b7f63c50ffe
3
+ metadata.gz: 178e0c8d74b9c3cec8bf652560c83526bcb3623786524ee1900ad8d346c9a426
4
+ data.tar.gz: 7dc35f369eb2f1e3aff02973de09c9bcc2d027a23a7730215720c9fc94a8a3a7
5
5
  SHA512:
6
- metadata.gz: ae4f407c347a6a1f16050ac9a388ab9cef59ec5b4786d78efbcbc68ba49dc86753472e89322a4d5035b9e4847de3866f3cffa356831782f6055638eb7b5edf2b
7
- data.tar.gz: b8cd3c62b0179d3c51cdf7212b74a3e8142cb8346c7cf948e46c5db831f431234b159fa45eb919553539c9a2de289e16b6c416bc98c581a71aad26e59c7564b8
6
+ metadata.gz: c5d34009294fed8737d30579aeb6595a45be8a99e2ccccfb9f6abc53d99545679caeaf9e5ab8a5c56abdf5e3e59bfaefec0187d3e4c13d03faf2580acf877402
7
+ data.tar.gz: 3abe562d1c290ada493b76695e36ac038bcded8e0d0bfa2ad26975983057877d91afd88ddd1000be468976d46eaa584331ac00decfd65894cb28aef1c3615e48
data/CHANGELOG.md CHANGED
@@ -27,10 +27,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
27
27
 
28
28
  ## [Unreleased]
29
29
 
30
- - nil
30
+ nil.
31
31
 
32
32
  ---
33
33
 
34
+ [0.6.7] - 2024-01-30
35
+
36
+ - Patch some territory names (BQ, NL, TF, TR) [#77](https://github.com/Shopify/worldwide/pull/77)
37
+
38
+ [0.6.6] - 2024-01-25
39
+
40
+ - Allow building numbers on address2 field for Portugal addresses [#73](https://github.com/Shopify/worldwide/pull/73)
41
+
34
42
  [0.6.5] - 2024-01-24
35
43
 
36
44
  - Allow building numbers on address2 field for Polish addresses [#71](https://github.com/Shopify/worldwide/pull/71)
data/Gemfile.lock CHANGED
@@ -13,9 +13,9 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- worldwide (0.6.5)
16
+ worldwide (0.6.7)
17
17
  activesupport (~> 7.0)
18
- i18n (~> 1.12.0)
18
+ i18n
19
19
  phonelib (~> 0.8)
20
20
 
21
21
  GEM
@@ -40,7 +40,7 @@ GEM
40
40
  connection_pool (2.4.1)
41
41
  drb (2.1.1)
42
42
  ruby2_keywords
43
- i18n (1.12.0)
43
+ i18n (1.14.1)
44
44
  concurrent-ruby (~> 1.0)
45
45
  json (2.6.3)
46
46
  language_server-protocol (3.17.0.3)
@@ -62,7 +62,7 @@ da:
62
62
  BM: Bermuda
63
63
  BN: Brunei
64
64
  BO: Bolivia
65
- BQ: De tidligere Nederlandske Antiller
65
+ BQ: Caribisk Nederlandene
66
66
  BR: Brasilien
67
67
  BS: Bahamas
68
68
  BT: Bhutan
@@ -204,7 +204,7 @@ da:
204
204
  NF: Norfolk Island
205
205
  NG: Nigeria
206
206
  NI: Nicaragua
207
- NL: Holland
207
+ NL: Holland (Nederlandene)
208
208
  'NO': Norge
209
209
  NP: Nepal
210
210
  NR: Nauru
@@ -256,7 +256,7 @@ da:
256
256
  TA: Tristan da Cunha
257
257
  TC: Turks- og Caicosøerne
258
258
  TD: Tchad
259
- TF: De Franske Besiddelser i Det Sydlige Indiske Ocean og Antarktis
259
+ TF: Franske sydlige territorier
260
260
  TG: Togo
261
261
  TH: Thailand
262
262
  TJ: Tadsjikistan
@@ -256,7 +256,7 @@ de:
256
256
  TA: Tristan da Cunha
257
257
  TC: Turks- und Caicosinseln
258
258
  TD: Tschad
259
- TF: Französische Süd- und Antarktisgebiete
259
+ TF: Französische Südgebiete
260
260
  TG: Togo
261
261
  TH: Thailand
262
262
  TJ: Tadschikistan
@@ -265,7 +265,7 @@ en:
265
265
  TM: Turkmenistan
266
266
  TN: Tunisia
267
267
  TO: Tonga
268
- TR: Turkey
268
+ TR: Türkiye
269
269
  TT: Trinidad & Tobago
270
270
  TV: Tuvalu
271
271
  TW: Taiwan
@@ -12,6 +12,7 @@ zip_regex: "^(PT?-?)?\\d{4}(-?\\d{3})?$"
12
12
  zip_example: 2725-079
13
13
  phone_number_prefix: 351
14
14
  building_number_required: true
15
+ building_number_may_be_in_address2: true
15
16
  tags:
16
17
  - EU-member
17
18
  week_start_day: monday
@@ -242,7 +242,7 @@ module Worldwide
242
242
  # https://www.unicode.org/reports/tr35/tr35-numbers.html#Compact_Number_Formats
243
243
  # > N is divided by the type, after removing the number of zeros in the pattern, less 1.
244
244
  def compact_format_scale_factor(matched_type, style:)
245
- compact_number_format = Worldwide::Cldr.t("#{COMPACT_DECIMAL_BASE_KEY}.#{style}.standard.#{matched_type}", count: 1, locale: locale)
245
+ compact_number_format = Worldwide::Cldr.t("#{COMPACT_DECIMAL_BASE_KEY}.#{style}.standard.#{matched_type}", count: 5, locale: locale)
246
246
 
247
247
  return 1 if compact_number_format == DEFAULT_COMPACT_PATTERN
248
248
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Worldwide
4
- VERSION = "0.6.5"
4
+ VERSION = "0.6.7"
5
5
  end
data/worldwide.gemspec CHANGED
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.required_ruby_version = ">= 3.0.0"
28
28
 
29
29
  spec.add_dependency("activesupport", "~> 7.0")
30
- spec.add_dependency("i18n", "~> 1.12.0")
30
+ spec.add_dependency("i18n")
31
31
  spec.add_dependency("phonelib", "~> 0.8")
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worldwide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-24 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: i18n
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.12.0
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.12.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: phonelib
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -8231,7 +8231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
8231
8231
  - !ruby/object:Gem::Version
8232
8232
  version: '0'
8233
8233
  requirements: []
8234
- rubygems_version: 3.5.4
8234
+ rubygems_version: 3.5.5
8235
8235
  signing_key:
8236
8236
  specification_version: 4
8237
8237
  summary: Internationalization and localization APIs