worldwide 1.19.0 → 1.20.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38296da25beecf36a785ee19594e62e093eda9bf7b188851304644891600a4c7
4
- data.tar.gz: 1d0d28aada01f52bfa3b439ffe1c54fd3bfd5af2bf2c78ea7e560f7858655319
3
+ metadata.gz: 1cbb9e0606b63675d9a783759723f4083661820aae022057574e8abaf4490963
4
+ data.tar.gz: d94f426622537b52d93c10a0f9be29980ad131915788ba77224d6043f5583284
5
5
  SHA512:
6
- metadata.gz: 32586456f377f80533c8f4a79aec8b5e49a3abd841947d88459b908696d484690a9efe9b93e561b6b6ad45dff79c917aa26cf52423c5949aa2611fea539d139a
7
- data.tar.gz: 927ffd197d06049ff64026bc4ac8daf175a2a30288aadfdc3366b2f311e5cbac3cb908882511a3cd59ece64e1d7b73957a93d3fb1500e13bae070ee503ba571f
6
+ metadata.gz: 66cc5d0a9561244ae777703aac0acf90a702cb0f891f88d93e8bdf4c5cf72c000c5ee7c107d348dd90dd2531078f505433ad260c97407c3e4fe63df87840f709
7
+ data.tar.gz: 208de89a7c70089590460ab0675ff1e212752a6f1297dc57a0403ede1605803d31d8b52c5a1081ecaa604b00fe3abe00379396ade030436a46168145c49501a9
data/CHANGELOG.md CHANGED
@@ -29,8 +29,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
29
29
 
30
30
  ---
31
31
 
32
+ ## [1.20.0] - 2025-10-15
33
+ - Add has_provinces? method to Region [#396](https://github.com/Shopify/worldwide/pull/396)
34
+
32
35
  ## [1.19.0] - 2025-10-15
33
- - Add new method zip_type to determine if a postal code is `NUMERICAL`, `ALPHANUMERICAL`, or `NUMERICAL_WITH_PUNCTUATIONS`[#395](https://github.com/Shopify/worldwide/pull/395)
36
+ - Add new method zip_type to determine if a postal code is `NUMERIC`, `ALPHANUMERIC`, or `NUMERIC_AND_PUNCTUATION`[#395](https://github.com/Shopify/worldwide/pull/395)
34
37
 
35
38
  ## [1.18.0] - 2025-10-08
36
39
  - Fix broken CLDR data rake tasks [#389](https://github.com/Shopify/worldwide/pull/389)
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- worldwide (1.19.0)
16
+ worldwide (1.20.0)
17
17
  activesupport (>= 7.0)
18
18
  i18n
19
19
  phonelib (~> 0.8)
@@ -401,6 +401,11 @@ module Worldwide
401
401
  !!format["show"]&.include?("{city}")
402
402
  end
403
403
 
404
+ # Does this region have provinces in their addresses?
405
+ def has_provinces?
406
+ !!format["show"]&.include?("{province}")
407
+ end
408
+
404
409
  # Is this Region considered a "province" (political subdivision of a "country")?
405
410
  def province?
406
411
  @province
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Worldwide
4
- VERSION = "1.19.0"
4
+ VERSION = "1.20.0"
5
5
  end
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.19.0
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify