lib/rbbt/tsv/accessor.rb in rbbt-util-5.21.77 vs lib/rbbt/tsv/accessor.rb in rbbt-util-5.21.78
- old
+ new
@@ -692,10 +692,10 @@
field_values.zip(zipped).each do |field_value,rest|
k = [key,field_value]*sep
if new.include? k
new[k] = Misc.zip_fields(Misc.zip_fields(new[k]) << rest)
else
- new[k] = rest.collect{|v| [v]}
+ new[k] = rest.nil? ? nil : rest.collect{|v| [v]}
end
end
end
new.type = :double
else