diff --git a/Rakefile b/Rakefile index 78ada82..52f4771 100644 --- a/Rakefile +++ b/Rakefile @@ -123,9 +123,9 @@ end desc "generate BOM file from schematic" rule ".bom.csv" => ".sch" do |t| attributes = ["device", "value", "description", "footprint", "manufacturer", "mpn", "datasheet", "lcsc", "digikey"] - bom_data = bom2(t.prerequisites[0],attributes) + bom_data = bom2(t.prerequisites[0], attributes) CSV.open(t.name, "wb") do |csv| - all_attributes = ["refdes","qty"]+attributes + all_attributes = ["refdes","qty"] + attributes csv << all_attributes bom_data.each do |line| csv << all_attributes.collect{|attribute| line[attribute]}