lib/kpm/database.rb in kpm-0.8.2 vs lib/kpm/database.rb in kpm-0.9.0

- old
+ new

@@ -84,12 +84,13 @@ columns_names = table[:col_names].join(',').gsub(/'/, '') rows = [] table[:rows].each do |row| rows << row.map do |value| - if value.is_a?(Symbol) + case value + when Symbol value.to_s - elsif value.is_a?(Blob) + when Blob value.value else escaped_value = value.to_s.gsub(/['"]/, "'" => "\\'", '"' => '\\"') .gsub('\N{LINE FEED}', "\n") .gsub('\N{VERTICAL LINE}', '|')