Rakefile: update deprecated CSV call

This commit is contained in:
King Kévin 2020-01-12 17:10:36 +01:00
parent 151cef0f64
commit 1e15be607d
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ def bom2(schematic, attributes)
list.gsub!(/(.+)$/, '\1"')
list.gsub!(/(?!http):(?!\/\/)/, '\1":"\2') # protect the values between ':' (such as URLs)
# parse bom2
csv = CSV.parse(list, {:col_sep => ":", :quote_char => '"'})
csv = CSV.parse(list, col_sep: ":", quote_char: '"')
csv[1..-1].each do |row|
line = {}
row.each_index do |col|