lib/csvlint/validate.rb in csvlint-0.3.3 vs lib/csvlint/validate.rb in csvlint-0.4.0
- old
+ new
@@ -432,10 +432,10 @@
warn_if_unsuccessful = false
case @source
when StringIO
return
when File
- @source_url = "file:#{File.expand_path(@source)}"
+ @source_url = "file:#{URI.encode(File.expand_path(@source))}"
else
@source_url = @source
end
unless @schema.nil?
if @schema.tables[@source_url]