simple-hd-graph 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple-hd-graph/parser.rb +7 -1
- data/lib/simple-hd-graph/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0f104afa4985520fd742deb2f3a508aa5228fdece50f05e781967a11610b0e3
|
4
|
+
data.tar.gz: 00ea2753585296fb38663736e7001a7c985cac7bf6c690134ccba0826f8c5eff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bddb9cf8a77b9c75978e45d72829883480dc937bcdc1f9d581167ac2e204332a39951c9d386889fa380fba51fca967a6a13a425bf0657edec6d580cdf610642d
|
7
|
+
data.tar.gz: d35882bc09d6b3ba53ea8aef0823e5ee593caa6a4e031e4b39186b81404f47d3ac599dc130db9db1a9d7797ac891650832bfd9046f04720060d2959315aa1c34
|
@@ -83,7 +83,13 @@ module SimpleHdGraph
|
|
83
83
|
contexts.map { |context|
|
84
84
|
if context.depends
|
85
85
|
regularized = context.depends.map { |dependee|
|
86
|
-
|
86
|
+
d = contexts.select { |c|
|
87
|
+
c.alias == dependee
|
88
|
+
}.first
|
89
|
+
|
90
|
+
{
|
91
|
+
context.id => d ? d.id : dependee
|
92
|
+
}
|
87
93
|
}
|
88
94
|
context.set_depends regularized
|
89
95
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-hd-graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wtnabe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|