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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18fb51abbed1c58f99dbd73f3f9af6b8cac11938f885eb69f1af2b767b41d084
4
- data.tar.gz: 9379a13c657dfa54b433c02cba67392447a93146980d33299ffd73d8a61860ef
3
+ metadata.gz: 4b3a5aedb901749d3d91c1a9d24ae1e24548ccf7ec8f601ba0929c73e99e8c78
4
+ data.tar.gz: fc12a8779485aec2d5543e89e3dbb0943a88116f464bd84cabee12093e03053b
5
5
  SHA512:
6
- metadata.gz: 9181bf9733dea2ab7483dfa622088c4604146def2cfcdd1eb249221f8a8a7b6e3dcab80cbb2075d6c3bca72cacd9d9d76e1bb3246e5c07c5210170963629de2e
7
- data.tar.gz: 884bdd9984b362aee84d9a12af8843732c35d69f92836a349a1a2e1b31167226fb8985325c8b8977f8f14434c89c182b95f2ebcef8cea1efb8d4356a3d669463
6
+ metadata.gz: bef41c00de803288ccd0c65c08ba22e4250bc20178968ec0c3893cb8d8fa48ac068f6ab31ed5eb128eae0edf9e84d51854b5b966eda0d8acc7b7c86cc0af9f27
7
+ data.tar.gz: 4602d101f44ca64533e7f8e2dcd57d4531e590f947dc167d06006dff189a9731b15dbc7c2faeb3ecb888d81f869d9b2c59e449c8ba7e56500e070aca756d6790
@@ -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.filter{|e| KiCad::AST::Property === e}.map(&:emit).sort*" "
22
- end.sort*"\n"
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
@@ -1,3 +1,3 @@
1
1
  module KiCad
2
- VERSION = "0.9.7"
2
+ VERSION = "0.9.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kicad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath