kicad 0.9.7 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/kicad_dedup_symbols.rb +9 -3
- data/lib/kicad/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b3a5aedb901749d3d91c1a9d24ae1e24548ccf7ec8f601ba0929c73e99e8c78
|
4
|
+
data.tar.gz: fc12a8779485aec2d5543e89e3dbb0943a88116f464bd84cabee12093e03053b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bef41c00de803288ccd0c65c08ba22e4250bc20178968ec0c3893cb8d8fa48ac068f6ab31ed5eb128eae0edf9e84d51854b5b966eda0d8acc7b7c86cc0af9f27
|
7
|
+
data.tar.gz: 4602d101f44ca64533e7f8e2dcd57d4531e590f947dc167d06006dff189a9731b15dbc7c2faeb3ecb888d81f869d9b2c59e449c8ba7e56500e070aca756d6790
|
data/bin/kicad_dedup_symbols.rb
CHANGED
@@ -13,13 +13,19 @@ symbols_by_pretty = {}
|
|
13
13
|
k.all_symbol.
|
14
14
|
each do |s|
|
15
15
|
child_symbols = s.all_symbol
|
16
|
+
next if child_symbols.empty?
|
16
17
|
|
17
|
-
# the key is the concatenated pretty-printed contents of all child symbols
|
18
|
+
# the key is the concatenated pretty-printed contents of all child symbols excluding their names
|
18
19
|
key =
|
19
20
|
child_symbols.map do |c|
|
20
21
|
s['Reference'].inspect+':' +
|
21
|
-
c.children.
|
22
|
-
|
22
|
+
c.children.
|
23
|
+
filter{|e| !(KiCad::AST::Property === e)}.
|
24
|
+
map(&:emit_compact).
|
25
|
+
sort*" "
|
26
|
+
end.sort*" "
|
27
|
+
|
28
|
+
puts "#{s.id} key is #{key}"
|
23
29
|
|
24
30
|
existing = symbols_by_pretty[key]
|
25
31
|
if existing
|
data/lib/kicad/version.rb
CHANGED