postcode_validation 0.0.14 → 0.0.15
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a922f62e35e5bc93aeda352d1ac08cbdd7027e0f
|
4
|
+
data.tar.gz: 20f39e1bc631ee59db188fd571ac73f969334c5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ce2522364823967ab04693e5153bdb771348048a47d677934e9283fc24c7cf146610dc67494c4b8eaaf6daeae982c1c28bd5d702f221815d04fd55086b3a6d9
|
7
|
+
data.tar.gz: 821a879279a19e60f5b4dfdd3243cb6c3c0b34e95702ebb5dc947b8254801d3f18f7c6cbf326a5ed76ccc31eebe7546b67ced4bc37893b5911363923816dfff7
|
@@ -14,7 +14,9 @@ module PostcodeValidation
|
|
14
14
|
check_country(country)
|
15
15
|
|
16
16
|
if country == 'SG'
|
17
|
-
|
17
|
+
check_postcode_format(postcode_without_spaces(postcode), country)
|
18
|
+
|
19
|
+
if @errors.empty?
|
18
20
|
return { valid?: true, reason: ['valid_postcode'] }
|
19
21
|
end
|
20
22
|
end
|