active_utils 3.3.13 → 3.3.14
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 +5 -5
- data/CHANGELOG.md +3 -0
- data/lib/active_utils/country.rb +1 -1
- data/lib/active_utils/version.rb +1 -1
- data/test/unit/country_test.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a9d19a82bfba2a27124b8a69c89b7e908e2b53a95d505e02b0aee4571fd82fd9
|
|
4
|
+
data.tar.gz: 9b554a207403c52f17151d0ee4ad6395d839aa8fcaa436247a476aabd8d61c27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78424cc9ce62e9785a61f6f30c2b50eabfff6d09fde5fe7873e2bfdc81352b65db3d013312d47c5bf2788daf476ed2d3d8d9319212cb05a99cb5d72fbc5805a1
|
|
7
|
+
data.tar.gz: a6966f9d461f527decf6e65ab830270b8f63076c941c70aa45d1d0b42510c497a8602cabf98ec83c2e3e8b12f4be9499e5ec9e986645de4c1b902194f5e8926a
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
|
data/lib/active_utils/country.rb
CHANGED
data/lib/active_utils/version.rb
CHANGED
data/test/unit/country_test.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|
|
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
|