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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ea0d42c32d8bd212ceaa306f4374b267c4f4158fdf9e9110e0c8f323ca6b729
4
- data.tar.gz: cfad1721bc08d8a441093db14df1cff803520618d74c7a4087ab563d6878bfca
3
+ metadata.gz: f0f104afa4985520fd742deb2f3a508aa5228fdece50f05e781967a11610b0e3
4
+ data.tar.gz: 00ea2753585296fb38663736e7001a7c985cac7bf6c690134ccba0826f8c5eff
5
5
  SHA512:
6
- metadata.gz: 05ded502c1824bcccf27573c9a19135e176067b4db942999b4d53fc58b422043a9c339307bbb99f1af7ea91f91fac6ec1deb702b6d9221e04e47f2a4eae21bff
7
- data.tar.gz: d48005f46fca5e2f5cf836c676fce9d2b43d4a4be2bc4af1e1bed8e06518daac7e1dd89e7146f861fca2d804ae286ef7486765e87e46aab41638d05867dc1f3f
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
- { context.id => contexts.select { |c| c.alias == dependee }.first.id }
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
@@ -1,3 +1,3 @@
1
1
  module SimpleHdGraph
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.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-19 00:00:00.000000000 Z
11
+ date: 2021-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector