clienteer 1.5.6 → 1.5.7

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: 4fb76e7023e6703bd2e6938914340e0aba91c07e
4
- data.tar.gz: 209c0d20df2b554f6d1e2b1833926ab37fb392b0
3
+ metadata.gz: f053131cb2cb4b1f4cda1245f6ce6cf72c8cf27e
4
+ data.tar.gz: 2a406c36fcdf79ca326aeb45fcddc963a4526053
5
5
  SHA512:
6
- metadata.gz: dd34a97b59477bf7074b2b2e127a4abe5ff84584934909fe83fac46a80126fe17493141d9b8b94197acdce27f7407b2a4588127b5bfab1e7a6c97c5093027058
7
- data.tar.gz: 33385bae63584a775089bce172445ffbccf0e0239092cb1fa05ce13a24fcb683d7efa3ef30cacf08f5e5b81f08c1e650d2449b3057b4a04d7e73851d8e7db2f0
6
+ metadata.gz: 5cc3822a3670a5f3521c148fa9c5dd4396ced8468af1d0facc76a68d3256d8b23a33bb3a2ebb8e3650d06163180c65647402795f119f170ba8ba77b14de59fb5
7
+ data.tar.gz: c013e4de4949c4160b3d3570a3c55869147df880bd9e8daa80658cd0ca8ce784014c622a4f9dd9637f408cbc60afa26e12328b760655b1cac24c1f6e1e78178d
@@ -15,11 +15,11 @@ module Clienteer
15
15
  end
16
16
 
17
17
  def valid_zip_code?(address)
18
- address.zip_code.match /\A\d{5}(-\d{4})?\Z/
18
+ address.zip_code && address.zip_code.match /\A\d{5}(-\d{4})?\Z/
19
19
  end
20
20
 
21
21
  def clean_state(address)
22
- address.state = "Illinois" if address.state.match /il/i
22
+ address.state = "Illinois" if address.state && address.state.match /il/i
23
23
  end
24
24
  end
25
25
  end
@@ -5,7 +5,7 @@ module Clienteer
5
5
 
6
6
  def process(row)
7
7
  raw = row[:raw]
8
- attrs = [row, raw, raw.first_name, raw.last_name, raw.email]
8
+ attrs = [row, raw, raw.first_name, raw.last_name, raw.email, raw.address]
9
9
  if contains_nils? attrs
10
10
  row[:reason] = "contains nils"
11
11
  $skipped_people << row
@@ -1,3 +1,3 @@
1
1
  module Clienteer
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clienteer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Metcalfe