gviz 0.0.8 → 0.0.9
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.
- data/lib/gviz/core.rb +6 -6
- data/lib/gviz/version.rb +1 -1
- data/spec/gviz_spec.rb +3 -3
- metadata +2 -2
data/lib/gviz/core.rb
CHANGED
@@ -190,6 +190,12 @@ class Gviz
|
|
190
190
|
tabs = " "
|
191
191
|
result << "#{@type} #{@name} {"
|
192
192
|
|
193
|
+
subgraphs.each do |graph|
|
194
|
+
graph.to_s.lines do |line|
|
195
|
+
result << tabs + line.chomp
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
193
199
|
unless graph_attrs.empty?
|
194
200
|
result << tabs + build_attrs(graph_attrs, false).join(";\n#{tabs}") + ";"
|
195
201
|
end
|
@@ -210,12 +216,6 @@ class Gviz
|
|
210
216
|
result << tabs + "#{edge}#{build_attrs(edge.attrs)};"
|
211
217
|
end
|
212
218
|
|
213
|
-
subgraphs.each do |graph|
|
214
|
-
graph.to_s.lines do |line|
|
215
|
-
result << tabs + line.chomp
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
219
|
@ranks.each do |type, nodes|
|
220
220
|
result << tabs + "{ rank=#{type}; #{nodes.join('; ')}; }"
|
221
221
|
end
|
data/lib/gviz/version.rb
CHANGED
data/spec/gviz_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gviz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|