universe_compiler 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: da014c3e9cc37f1f99bbedb67688c7dbbe5a91e4
4
- data.tar.gz: d2cffc16ba1d162ba824861ecf44b4f9a05d4dde
3
+ metadata.gz: 0c3c0569c71c1313f07e003b124ecd2d54da1d59
4
+ data.tar.gz: a3451f49670fb9502d65f83e6e38734d263b60fa
5
5
  SHA512:
6
- metadata.gz: 2b566f2070273cbecb289d6023bab4fd8ac968db544095a580cf3ba1fafbc55926e22efed42726abc454c9937737aba901696679ca3058234d0836c78c463e19
7
- data.tar.gz: 92c74c7f20d6bf36c5227ef7279467fb655f9c82e4b117ad62403d1cdb423782c8bc3698250eef489cfa1d9404b52afb7a6998baa935cc920c2c7ae952d292ff
6
+ metadata.gz: 6b094768cfd07cf42e638d7a062f543785cdeacbfe755b950f582477e37b3a03038e4367a42e6ef212029cf779f1e10a49ef65a2a3de575c9458c674da38180a
7
+ data.tar.gz: 4c11aa5563182cb1b374d6bfb6e7223f4f95ac4d3e986b157ef26870e7b92bb10f5c4a38953f92024724e3048e673c90eb24e6e4fb35158031e9a57e6c354e4d
@@ -30,10 +30,10 @@ module UniverseCompiler
30
30
  case constraint_name
31
31
  when :has_one
32
32
  target = entity[field_name]
33
- g.add_edges cache[:by_entity][entity], cache[:by_entity][target] unless entities.include? target
33
+ g.add_edges cache[:by_entity][entity], cache[:by_entity][target] if entities.include? target
34
34
  when :has_many
35
35
  entity[field_name].each do |target|
36
- g.add_edges cache[:by_entity][entity], cache[:by_entity][target] unless entities.include? target
36
+ g.add_edges cache[:by_entity][entity], cache[:by_entity][target] if entities.include? target
37
37
  end
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module UniverseCompiler
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: universe_compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent B.