ellington 0.2.3 → 0.2.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
  SHA1:
3
- metadata.gz: 5e93725cf8217f513e9f7c233f333bedc0845ae1
4
- data.tar.gz: 6472432af7538e0fd2630acf56d250a8fd98a419
3
+ metadata.gz: e98a3e401eca1277eaa5248eeb90ffc10249ab04
4
+ data.tar.gz: 613d2ecbe5ec22d9f1352cfb406824ee39b0e870
5
5
  SHA512:
6
- metadata.gz: d6b5baf7cc4e5fc2ef8590ad748aea81c41da1a577f342073da5de6631bc19187d57323cc00ba8762d66da77f6e1c0b7614957f720fb70c504e418063983b494
7
- data.tar.gz: 3faad832dc6e2f70ba227708922d9e8217cdbeb7b5fe37dfd081f6452c6c0ea5b43801056416e1e69904a355538d539957d6ac96ad940d30963d735acdfa48f4
6
+ metadata.gz: ba0584803ce5aeb7aef48ec18082b1fc20512031b0714bba4c566348c5edec48ed16dddf257574f7db867313a2b8717ac0b518a1f3fc0248d094425d642867fa
7
+ data.tar.gz: b3526b5577c320bc7d166a0f54ba4224d08023e40dd0240652d7cca60c953efb6965ea83bf1d17aea3315b68dfa7d2d95d4a3aa641ae49d41f345e6aef319078
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ellington (0.2.3)
4
+ ellington (0.2.4)
5
5
  hero (~> 0.2.0)
6
6
  ruby-graphviz (~> 1.2.1)
7
7
  state_jacket (~> 0.1.1)
@@ -1,3 +1,3 @@
1
1
  module Ellington
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -108,20 +108,7 @@ module Ellington
108
108
  end
109
109
  end
110
110
 
111
- if connection.type == :if_any
112
- combos.each do |state, nodes|
113
- nodes.each do |node|
114
- from_line = node.base
115
- g.viz.add_edges(
116
- node.viz.get_node("#{from_line.class.name}#{state}"),
117
- to_node.viz.get_node("#{to_line.class.name}PASS"),
118
- "lhead" => to_node.viz.id
119
- )
120
- end
121
- end
122
- end
123
-
124
- if connection.type == :if_all
111
+ if connection.strict
125
112
  combos.each do |state, nodes|
126
113
  node_name = nodes.map{ |n| n.base.class.name }.join + state
127
114
  node_label = nodes.map{ |n| state_label(state) }.join("\n")
@@ -132,6 +119,17 @@ module Ellington
132
119
  "lhead" => to_node.viz.id
133
120
  )
134
121
  end
122
+ else
123
+ combos.each do |state, nodes|
124
+ nodes.each do |node|
125
+ from_line = node.base
126
+ g.viz.add_edges(
127
+ node.viz.get_node("#{from_line.class.name}#{state}"),
128
+ to_node.viz.get_node("#{to_line.class.name}PASS"),
129
+ "lhead" => to_node.viz.id
130
+ )
131
+ end
132
+ end
135
133
  end
136
134
  end
137
135
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ellington
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins