From d21265f0837de3301079d6a0f4a72d90f0eca2fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Fri, 28 Jan 2022 18:44:48 +0100 Subject: [PATCH] Rakefile: minor, improve readability --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]}