eaternet 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eaternet/agencies/nyc.rb +2 -1
- data/lib/eaternet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46b957b72f5d34668b2de39feea374370d630590
|
4
|
+
data.tar.gz: 2b7facc64936af8718f374fa9423246775211f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/eaternet/version.rb
CHANGED