eaternet 0.3.8 → 0.3.9

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: ff6175db527668d8bd514bb319d2e13208518be4
4
- data.tar.gz: 1a6230beb016725a566d0ab090d599859dd13c4c
3
+ metadata.gz: 46b957b72f5d34668b2de39feea374370d630590
4
+ data.tar.gz: 2b7facc64936af8718f374fa9423246775211f47
5
5
  SHA512:
6
- metadata.gz: 31841f71e071ae88ff56be7eb528c488bfe7c4471274f4d54e5772be869b656007b88f83d9cdae955919e2448fc9961abdc52236375be8cf92624fc9b08ae101
7
- data.tar.gz: 7bfd07a732ebfd9db5723328d64e342f49197bc3ca75fd55b518daba2c7be645d086cb1e52320db695d1bfa6f4ac5a7bb773fec14f9ac835d615045abcb3d864
6
+ metadata.gz: 0c21c49824a2e6be256d734a9f843f23abf1128a11c66b82558354e8c8f9b3febbad97f07e35ad7789a48150b9846c8e22e9f9c82d62844241da268c200047e8
7
+ data.tar.gz: ac79c70d1ef9d5b5eaf4e76990ba4534c7161e291060a1fff09facce7613443a68133483293cf235301b3e93eeb165dad18fe1e8969dc05431fa7561b521f4e1
@@ -116,7 +116,7 @@ module Eaternet
116
116
 
117
117
  def business(row)
118
118
  address = "#{cleanup(row['BUILDING'])} #{cleanup(row['STREET'])}"
119
-
119
+
120
120
  Business.new do |b|
121
121
  b.business_id = business_id(row)
122
122
  b.name = row['DBA'].titleize
@@ -209,6 +209,7 @@ module Eaternet
209
209
  end
210
210
 
211
211
  def cleanup(a_string)
212
+ return nil if a_string.nil?
212
213
  a_string.strip.gsub(/ +/, ' ')
213
214
  end
214
215
  end
@@ -1,3 +1,3 @@
1
1
  module Eaternet
2
- VERSION = '0.3.8'
2
+ VERSION = '0.3.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eaternet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter