You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
csv does not store cells the way other formats do. Here's the offending method.
# lib/roo/base.rb
def clean_sheet(sheet)
read_cells(sheet)
@cell[sheet].each_pair do |coord, value|
if value.is_a?(::String)
@cell[sheet][coord] = sanitize_value(value)
end
end
@cleaned[sheet] = true
end
@cell[sheet] should be @cell
This method fixes the issue.
# lib/roo/csv.rb
def clean_sheet(sheet)
read_cells(sheet)
@cell[sheet].each_pair do |coord, value|
if value.is_a?(::String)
@cell[sheet][coord] = sanitize_value(value)
end
end
@cleaned[sheet] = true
end
Attempting to call
parse
on acsv
spreadsheet withclean: true
results in:I'm encountering this on the latest revision of
master
.I've created a gist with reproduction steps and a backtrace, in case that's helpful.
https://gist.github.com/reshleman/d8dd9882ca89e01d1bbe
/cc #182
The text was updated successfully, but these errors were encountered: