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 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
@@ -1,3 +1,3 @@
1
1
  class Gviz
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/spec/gviz_spec.rb CHANGED
@@ -453,14 +453,14 @@ describe Gviz do
453
453
  it do
454
454
  should eql ~<<-EOS
455
455
  digraph G {
456
- a;
457
- b;
458
- a -> b;
459
456
  subgraph cluster0 {
460
457
  c;
461
458
  d;
462
459
  c -> d;
463
460
  }
461
+ a;
462
+ b;
463
+ a -> b;
464
464
  }
465
465
  EOS
466
466
  end
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.8
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-17 00:00:00.000000000 Z
12
+ date: 2012-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec