lib/blackbook/importer/csv.rb in rakutenusa-blackbook-1.0.18 vs lib/blackbook/importer/csv.rb in rakutenusa-blackbook-1.0.19

- old
+ new

@@ -57,10 +57,13 @@ if tags.first =~ /^e.?mail/i # E-mail or Email tags.shift columns << :email end end - tags.each{|v| columns << v.gsub(/\0/,"").strip.to_sym} + tags.each do |v| + v = v.to_s.gsub(/\0/,"") + columns << v.strip.to_sym unless v.blank? + end columns end def pattern @pattern ||= (options[:pattern] || DEFAULT_PATTERN) rescue DEFAULT_PATTERN