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: 6500c283bbada3eb51bccd8d5b52f36a82ef4932
4
- data.tar.gz: 2eda7cb1dd52fcdbdb8cc1798da7aa8130dc590f
3
+ metadata.gz: a922f62e35e5bc93aeda352d1ac08cbdd7027e0f
4
+ data.tar.gz: 20f39e1bc631ee59db188fd571ac73f969334c5d
5
5
  SHA512:
6
- metadata.gz: b88ab8fe5aa182e50ff2c96d351e2a2553656f0a6e652be5fdde061488b4df239cf59917004a0c1a4cfd1effd7ac480c55f21555233179fdf9407fb8fd7e3229
7
- data.tar.gz: 6fdc7957eb24b06cc2c9647e82c785af9a3bd171eebef0ae55269ae810cd4dee78009b47561c441797ca7cb905f0354423cd104cc7ce756cbaabb99bdbc1d4d2
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
- if check_postcode_format(postcode_without_spaces(postcode), country)
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
@@ -1,3 +1,3 @@
1
1
  module PostcodeValidation
2
- VERSION = '0.0.14'
2
+ VERSION = '0.0.15'
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.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig J. Bass