postcode_validation 0.0.13 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 874f4ef4bebde649baf380baf52b76802df6d10a
4
- data.tar.gz: c3b9af4ce0ccddfd52a1a07199bdd598a1dab509
3
+ metadata.gz: 6500c283bbada3eb51bccd8d5b52f36a82ef4932
4
+ data.tar.gz: 2eda7cb1dd52fcdbdb8cc1798da7aa8130dc590f
5
5
  SHA512:
6
- metadata.gz: 56c37f46432341f5ee4863b1a8259a29013da6e7f9a1263b3a19300cdb3ace9e42b64e2343ae4c43996f466abc41808d53e534488b19663ca83ffe2e597ebaf0
7
- data.tar.gz: ce5481c78699cfd23cb8b298e7105883840d4036272043d49e402840c35a5710d7365f9201c2b53258c596eec26e2064f61cdf440c7b5870e994366d44dd6bf8
6
+ metadata.gz: b88ab8fe5aa182e50ff2c96d351e2a2553656f0a6e652be5fdde061488b4df239cf59917004a0c1a4cfd1effd7ac480c55f21555233179fdf9407fb8fd7e3229
7
+ data.tar.gz: 6fdc7957eb24b06cc2c9647e82c785af9a3bd171eebef0ae55269ae810cd4dee78009b47561c441797ca7cb905f0354423cd104cc7ce756cbaabb99bdbc1d4d2
@@ -14,7 +14,9 @@ module PostcodeValidation
14
14
  check_country(country)
15
15
 
16
16
  if country == 'SG'
17
- return check_postcode_format(postcode_without_spaces(postcode), country)
17
+ if check_postcode_format(postcode_without_spaces(postcode), country)
18
+ return { valid?: true, reason: ['valid_postcode'] }
19
+ end
18
20
  end
19
21
 
20
22
  check_postcode_format(postcode, country)
@@ -1,3 +1,3 @@
1
1
  module PostcodeValidation
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postcode_validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig J. Bass