lib/io_streams/tabular/header.rb in iostreams-1.1.0 vs lib/io_streams/tabular/header.rb in iostreams-1.1.1

- old
+ new

@@ -89,11 +89,11 @@ return if IOStreams::Utils.blank?(row) case row when Array unless columns - raise(IOStreams::Errors::InvalidHeader, 'Missing mandatory header when trying to convert a row into a hash') + raise(IOStreams::Errors::InvalidHeader, "Missing mandatory header when trying to convert a row into a hash") end array_to_hash(row) when Hash cleanse && columns ? cleanse_hash(row) : row @@ -140,12 +140,12 @@ h end def cleanse_column(name) cleansed = name.to_s.strip.downcase - cleansed.gsub!(/\s+/, '_') - cleansed.gsub!(/-+/, '_') - cleansed.gsub!(/\W+/, '') + cleansed.gsub!(/\s+/, "_") + cleansed.gsub!(/-+/, "_") + cleansed.gsub!(/\W+/, "") cleansed end end end end