active_utils 3.3.13 → 3.3.14

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
- SHA1:
3
- metadata.gz: 2419f33b62bb5ac91f29b58e341436e5fd8d636a
4
- data.tar.gz: '09d2b0dd502873b3250358165a4d7e05e83174ef'
2
+ SHA256:
3
+ metadata.gz: a9d19a82bfba2a27124b8a69c89b7e908e2b53a95d505e02b0aee4571fd82fd9
4
+ data.tar.gz: 9b554a207403c52f17151d0ee4ad6395d839aa8fcaa436247a476aabd8d61c27
5
5
  SHA512:
6
- metadata.gz: 8d891d8cf21711ea9d1f303a96e01ada3e15c05f24916f0c2ea18c1cfed27ff268dede6f1e31cc144640353e6d32896af7c33a2dfcbc9afedb000b72b19e813e
7
- data.tar.gz: 9f332193f661283e2e50b3b38d32e70fe4ddf1c32c31d7a1e0f6d1d4f9f3cf15a82cd8a71361a8c38ffdbfe815f3f2cb390214f7e24e8786f168c65e18549710
6
+ metadata.gz: 78424cc9ce62e9785a61f6f30c2b50eabfff6d09fde5fe7873e2bfdc81352b65db3d013312d47c5bf2788daf476ed2d3d8d9319212cb05a99cb5d72fbc5805a1
7
+ data.tar.gz: a6966f9d461f527decf6e65ab830270b8f63076c941c70aa45d1d0b42510c497a8602cabf98ec83c2e3e8b12f4be9499e5ec9e986645de4c1b902194f5e8926a
@@ -1,5 +1,8 @@
1
1
  # ActiveUtils changelog
2
2
 
3
+ ### Version 3.3.14 (November 28, 2018)
4
+ - Add `MW` to `ActiveUtils::Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES`
5
+
3
6
  ### Version 3.3.13 (November 26, 2018)
4
7
  - Add support for custom retriable exceptions in `NetworkConnectionRetries#retry_exceptions`
5
8
 
@@ -319,7 +319,7 @@ module ActiveUtils #:nodoc:
319
319
 
320
320
  COUNTRIES_THAT_DO_NOT_USE_POSTALCODES = %w(
321
321
  QA BZ BS BF BJ AG AE AI AO AW HK
322
- FJ ML JM ZW YE UG TV TT TG TD PA
322
+ FJ ML MW JM ZW YE UG TV TT TG TD PA
323
323
  CW GH SS BO
324
324
  )
325
325
 
@@ -1,3 +1,3 @@
1
1
  module ActiveUtils
2
- VERSION = "3.3.13"
2
+ VERSION = "3.3.14"
3
3
  end
@@ -65,6 +65,16 @@ class CountryTest < Minitest::Test
65
65
  assert_equal(country_names.sort, country_names)
66
66
  end
67
67
 
68
+ def test_countries_that_do_not_use_postalcodes_are_unique
69
+ country_codes = Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES
70
+ assert_equal(country_codes.uniq.length, country_codes.length)
71
+ end
72
+
73
+ def test_change_to_countries_that_do_not_use_postalcodes_is_intentional
74
+ country_codes = Country::COUNTRIES_THAT_DO_NOT_USE_POSTALCODES
75
+ assert_equal(country_codes.length, 27)
76
+ end
77
+
68
78
  def test_canada_uses_postal_codes
69
79
  canada = Country.find('Canada')
70
80
  assert canada.uses_postal_codes?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.13
4
+ version: 3.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-26 00:00:00.000000000 Z
11
+ date: 2018-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project: active_utils
154
- rubygems_version: 2.6.14
154
+ rubygems_version: 2.7.6
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Common utils used by active_merchant, active_fulfillment, and active_shipping