ruby-graphviz 0.9.20 → 0.9.21
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +23 -0
- data/lib/graphviz/constants.rb +3 -1
- data/lib/graphviz/node.rb +3 -2
- data/lib/graphviz.rb +61 -5
- data/test/output/sample29.rb.svg +1 -1
- data/test/output/sample30.rb.ps +1 -1
- data/test/output/sample35.rb.gv +2 -2
- data/test/output/sample41.rb.svg +1 -1
- data/test/output/sample55.rb.png +0 -0
- data/test/output/sample56.rb.svg +1 -1
- data/test/test_examples.rb +8 -5
- metadata +6 -6
data/README.rdoc
CHANGED
@@ -14,8 +14,31 @@ Interface to the GraphViz graphing tool
|
|
14
14
|
|
15
15
|
* New FamilyTree
|
16
16
|
|
17
|
+
== WARNING
|
18
|
+
|
19
|
+
<b>We are close to the 1.0 version... So if you use one of the following method or attribut, please update your code because they will be remove.</b>
|
20
|
+
|
21
|
+
* GraphViz::Node#name must be replaced by GraphViz::Node#id
|
22
|
+
* A html attribut must be replaced by a label attribut (<tt>:label => '<<html/>>'</tt>)
|
23
|
+
* :output option must be replaced by :<format> => :<file>
|
24
|
+
* :file option must be replaced by :<format> => :<file>
|
25
|
+
|
17
26
|
== CHANGELOG
|
18
27
|
|
28
|
+
=== 0.9.21 :
|
29
|
+
* Add attributs "label_scheme" and "rotation"
|
30
|
+
* Add missing options :
|
31
|
+
* <tt>:scale => v</tt> : Scale input by 'v' (=72)
|
32
|
+
* <tt>:inverty => [true|false]</tt> : Invert y coordinate in output
|
33
|
+
* <tt>:no_layout => v</tt> : No layout mode 'v' (=1) -- neato only
|
34
|
+
* <tt>:reduce => [true|false]</tt> : Reduce graph -- neato only
|
35
|
+
* <tt>:Lg => [true|false]</tt> : Don't use grid -- fdp only
|
36
|
+
* <tt>:LO => [true|false]</tt> : Use old attractive force -- fdp only
|
37
|
+
* <tt>:Ln => i</tt> : Set number of iterations to i -- fdp only
|
38
|
+
* <tt>:LU => i</tt> : Set unscaled factor to i -- fdp only
|
39
|
+
* <tt>:LC => v</tt> : Set overlap expansion factor to v -- fdp only
|
40
|
+
* <tt>:LT => [*]v</tt> : Set temperature (temperature factor) to v -- fdp only
|
41
|
+
|
19
42
|
=== 0.9.20 :
|
20
43
|
* Add GraphViz#each_attribut, Node#each_attribut and Edge#each_attribut
|
21
44
|
* Bugs corrections in tests (by oupo)
|
data/lib/graphviz/constants.rb
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
# C => cluster
|
41
41
|
#
|
42
42
|
module Constants
|
43
|
-
RGV_VERSION = "0.9.
|
43
|
+
RGV_VERSION = "0.9.21"
|
44
44
|
|
45
45
|
## Const: Output formats
|
46
46
|
FORMATS = [
|
@@ -172,6 +172,7 @@ module Constants
|
|
172
172
|
"imagescale" => { :usedBy => "N", :type => :EscString },
|
173
173
|
"label" => { :usedBy => "ENGC", :type => :LblString },
|
174
174
|
"labelURL" => { :usedBy => "E", :type => :EscString },
|
175
|
+
"label_scheme" => { :usedBy => "G", :type => :EscString },
|
175
176
|
"labelangle" => { :usedBy => "E", :type => :GvDouble },
|
176
177
|
"labeldistance" => { :usedBy => "E", :type => :GvDouble },
|
177
178
|
"labelfloat" => { :usedBy => "E", :type => :EscString },
|
@@ -237,6 +238,7 @@ module Constants
|
|
237
238
|
"resolution" => { :usedBy => "G", :type => :GvDouble },
|
238
239
|
"root" => { :usedBy => "GN", :type => :EscString },
|
239
240
|
"rotate" => { :usedBy => "G", :type => :EscString },
|
241
|
+
"rotation" => { :usedBy => "G", :type => :GvDouble },
|
240
242
|
"samehead" => { :usedBy => "E", :type => :EscString },
|
241
243
|
"sametail" => { :usedBy => "E", :type => :EscString },
|
242
244
|
"samplepoints" => { :usedBy => "G", :type => :EscString },
|
data/lib/graphviz/node.rb
CHANGED
@@ -42,7 +42,8 @@ class GraphViz
|
|
42
42
|
# Get the node ID
|
43
43
|
#
|
44
44
|
def name
|
45
|
-
|
45
|
+
# TODO : Remove in v1.0
|
46
|
+
warn "GraphViz::Node#name is deprecated, please use GraphViz::Node#id! -- BE CAREFUL, it will be removed in the 1.0 version!"
|
46
47
|
return self.id
|
47
48
|
end
|
48
49
|
|
@@ -164,7 +165,7 @@ class GraphViz
|
|
164
165
|
end
|
165
166
|
@oAttrNode.data.each do |k, v|
|
166
167
|
if k == "html"
|
167
|
-
warn "html attribut is deprecated, please use label : :label => '<<html />>'"
|
168
|
+
warn "html attribut is deprecated, please use label : :label => '<<html />>' -- BE CAREFUL, it will be removed in the 1.0 version!"
|
168
169
|
xAttr << xSeparator + "label = " + v.to_gv
|
169
170
|
else
|
170
171
|
xAttr << xSeparator + k + " = " + v.to_gv
|
data/lib/graphviz.rb
CHANGED
@@ -452,13 +452,13 @@ class GraphViz
|
|
452
452
|
xValue = xValue.to_s unless xValue.nil? or [Class, TrueClass, FalseClass].include?(xValue.class)
|
453
453
|
case xKey.to_s
|
454
454
|
when "output"
|
455
|
-
warn ":output option is deprecated, please use :<format> => :<file>"
|
455
|
+
warn ":output option is deprecated, please use :<format> => :<file> -- BE CAREFUL, it will be removed in the 1.0 version!"
|
456
456
|
if FORMATS.index( xValue ).nil? == true
|
457
457
|
raise ArgumentError, "output format '#{xValue}' invalid"
|
458
458
|
end
|
459
459
|
@format = xValue
|
460
460
|
when "file"
|
461
|
-
warn ":file option is deprecated, please use :<format> => :<file>"
|
461
|
+
warn ":file option is deprecated, please use :<format> => :<file> -- BE CAREFUL, it will be removed in the 1.0 version!"
|
462
462
|
@filename = xValue
|
463
463
|
when "use"
|
464
464
|
if PROGRAMS.index( xValue ).nil? == true
|
@@ -471,6 +471,36 @@ class GraphViz
|
|
471
471
|
@errors = xValue
|
472
472
|
when "extlib"
|
473
473
|
@extlibs = xValue.split( "," ).map{ |x| x.strip }
|
474
|
+
when "scale"
|
475
|
+
# Scale input by 'v' (=72)
|
476
|
+
@scale = xValue
|
477
|
+
when "inverty"
|
478
|
+
# Invert y coordinate in output
|
479
|
+
@inverty = xValue
|
480
|
+
when "no_layout"
|
481
|
+
# No layout mode 'v' (=1)
|
482
|
+
@no_layout = xValue
|
483
|
+
when "reduce"
|
484
|
+
# Reduce graph
|
485
|
+
@reduce_graph = xValue
|
486
|
+
when "Lg"
|
487
|
+
# Don't use grid
|
488
|
+
@Lg = xValue
|
489
|
+
when "LO"
|
490
|
+
# Use old attractive force
|
491
|
+
@LO = xValue
|
492
|
+
when "Ln"
|
493
|
+
# Set number of iterations to i
|
494
|
+
@Ln = xValue
|
495
|
+
when "LU"
|
496
|
+
# Set unscaled factor to i
|
497
|
+
@LU = xValue
|
498
|
+
when "LC"
|
499
|
+
# Set overlap expansion factor to v
|
500
|
+
@LC = xValue
|
501
|
+
when "LT"
|
502
|
+
# Set temperature (temperature factor) to v
|
503
|
+
@LT = xValue
|
474
504
|
when "nothugly"
|
475
505
|
begin
|
476
506
|
require 'graphviz/nothugly'
|
@@ -544,8 +574,23 @@ class GraphViz
|
|
544
574
|
xExternalLibraries << "-l#{lib} "
|
545
575
|
end
|
546
576
|
|
577
|
+
xOtherOptions = ""
|
578
|
+
xOtherOptions += " -s#{@scale}" unless @scale.nil?
|
579
|
+
xOtherOptions += " -y" if @inverty == true
|
580
|
+
unless @no_layout.nil?
|
581
|
+
xOtherOptions += " -n"
|
582
|
+
xOtherOptions += "2" if @no_layout.to_i == 2
|
583
|
+
end
|
584
|
+
xOtherOptions += " -x" if @reduce_graph == true
|
585
|
+
xOtherOptions += " -Lg" if @Lg == true
|
586
|
+
xOtherOptions += " -LO" if @LO == true
|
587
|
+
xOtherOptions += " -Ln#{@Ln}" unless @LN.nil?
|
588
|
+
xOtherOptions += " -LU#{@LU}" unless @LU.nil?
|
589
|
+
xOtherOptions += " -LC#{@LC}" unless @LC.nil?
|
590
|
+
xOtherOptions += " -LT#{@LT}" unless @LT.nil?
|
591
|
+
|
547
592
|
if IS_JRUBY
|
548
|
-
xCmd = "#{cmd} -q#{@errors} #{xExternalLibraries} #{xOutputWithFile} #{xOutputWithoutFile} #{t.path}"
|
593
|
+
xCmd = "#{cmd} -q#{@errors} #{xExternalLibraries} #{xOtherOptions} #{xOutputWithFile} #{xOutputWithoutFile} #{t.path}"
|
549
594
|
elsif IS_CYGWIN
|
550
595
|
tmpPath = t.path
|
551
596
|
begin
|
@@ -553,9 +598,9 @@ class GraphViz
|
|
553
598
|
rescue
|
554
599
|
warn "cygpath is not installed!"
|
555
600
|
end
|
556
|
-
xCmd = "\"#{cmd}\" -q#{@errors} #{xExternalLibraries} #{xOutputWithFile} #{xOutputWithoutFile} #{tmpPath}"
|
601
|
+
xCmd = "\"#{cmd}\" -q#{@errors} #{xExternalLibraries} #{xOtherOptions} #{xOutputWithFile} #{xOutputWithoutFile} #{tmpPath}"
|
557
602
|
else
|
558
|
-
xCmd = "\"#{cmd}\" -q#{@errors} #{xExternalLibraries} #{xOutputWithFile} #{xOutputWithoutFile} #{t.path}"
|
603
|
+
xCmd = "\"#{cmd}\" -q#{@errors} #{xExternalLibraries} #{xOtherOptions} #{xOutputWithFile} #{xOutputWithoutFile} #{t.path}"
|
559
604
|
end
|
560
605
|
|
561
606
|
xOutput << output_from_command( xCmd )
|
@@ -725,6 +770,17 @@ class GraphViz
|
|
725
770
|
@nothugly = false
|
726
771
|
@strict = false
|
727
772
|
|
773
|
+
@scale = nil
|
774
|
+
@inverty = nil
|
775
|
+
@no_layout = nil
|
776
|
+
@reduce_graph = nil
|
777
|
+
@Lg = nil
|
778
|
+
@LO = nil
|
779
|
+
@Ln = nil
|
780
|
+
@LU = nil
|
781
|
+
@LC = nil
|
782
|
+
@LT = nil
|
783
|
+
|
728
784
|
@elements_order = GraphViz::Elements::new()
|
729
785
|
|
730
786
|
@oParentGraph = nil
|
data/test/output/sample29.rb.svg
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
3
3
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
|
-
<!-- Generated by graphviz version 2.27.
|
4
|
+
<!-- Generated by graphviz version 2.27.20101125.0545 (20101125.0545)
|
5
5
|
-->
|
6
6
|
<!-- Title: G Pages: 1 -->
|
7
7
|
<svg width="150pt" height="62pt"
|
data/test/output/sample30.rb.ps
CHANGED
data/test/output/sample35.rb.gv
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
digraph G {
|
2
|
-
|
2
|
+
bgcolor = "transparent"; truecolor = "true"; rankdir = "LR";
|
3
3
|
node [label = "N"];
|
4
4
|
subgraph {
|
5
5
|
rank = "same";
|
@@ -14,7 +14,7 @@ subgraph {
|
|
14
14
|
mysite -> dotgraph [color = "blue"]
|
15
15
|
}
|
16
16
|
subgraph cluster_0 {
|
17
|
-
|
17
|
+
color = "black"; label = "my_page.html"; fontname = "Courier"; fontsize = "10";
|
18
18
|
zeimage [label = "", shape = "note", image = "./hello.png"];
|
19
19
|
}
|
20
20
|
mygraph -> mysite [color = "blue"]
|
data/test/output/sample41.rb.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
3
|
-
<!-- Generated by graphviz version 2.27.
|
3
|
+
<!-- Generated by graphviz version 2.27.20101125.0545 (20101125.0545)
|
4
4
|
-->
|
5
5
|
<!-- Title: G Pages: 1 -->
|
6
6
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" width="74pt" height="116pt" viewBox="0.00 0.00 74.00 116.00"><defs><linearGradient id="white" x1="0%" y1="0%" x2="0%" y2="0%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/></linearGradient><linearGradient id="aquamarine" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(127,255,212);stop-opacity:1"/></linearGradient><linearGradient id="azure" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(240,255,255);stop-opacity:1"/></linearGradient><linearGradient id="blue" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:1"/></linearGradient><linearGradient id="blueviolet" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(138,43,226);stop-opacity:1"/></linearGradient><linearGradient id="brown" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(165,42,42);stop-opacity:1"/></linearGradient><linearGradient id="cadetblue" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(95,158,160);stop-opacity:1"/></linearGradient><linearGradient id="chocolate" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(210,105,30);stop-opacity:1"/></linearGradient><linearGradient id="cornflowerblue" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(100,149,237);stop-opacity:1"/></linearGradient><linearGradient id="crimson" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(220,20,60);stop-opacity:1"/></linearGradient><linearGradient id="cyan" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(0,255,255);stop-opacity:1"/></linearGradient><linearGradient id="darkgreen" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(0,100,0);stop-opacity:1"/></linearGradient><linearGradient id="darkorange" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,140,0);stop-opacity:1"/></linearGradient><linearGradient id="gold" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,215,0);stop-opacity:1"/></linearGradient><linearGradient id="gray" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(192,192,192);stop-opacity:1"/></linearGradient><linearGradient id="greenyellow" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(173,255,47);stop-opacity:1"/></linearGradient><linearGradient id="green" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(0,255,0);stop-opacity:1"/></linearGradient><linearGradient id="grey" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(192,192,192);stop-opacity:1"/></linearGradient><linearGradient id="hotpink" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,105,180);stop-opacity:1"/></linearGradient><linearGradient id="indianred" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(205,92,92);stop-opacity:1"/></linearGradient><linearGradient id="indigo" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(75,0,130);stop-opacity:1"/></linearGradient><linearGradient id="lavender" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(230,230,250);stop-opacity:1"/></linearGradient><linearGradient id="lightblue" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(173,216,230);stop-opacity:1"/></linearGradient><linearGradient id="lightgray" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(211,211,211);stop-opacity:1"/></linearGradient><linearGradient id="lightgrey" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(211,211,211);stop-opacity:1"/></linearGradient><linearGradient id="magenta" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,0,255);stop-opacity:1"/></linearGradient><linearGradient id="maroon" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(176,48,96);stop-opacity:1"/></linearGradient><linearGradient id="mediumblue" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(0,0,205);stop-opacity:1"/></linearGradient><linearGradient id="mediumpurple" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(147,112,219);stop-opacity:1"/></linearGradient><linearGradient id="orange" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,165,0);stop-opacity:1"/></linearGradient><linearGradient id="pink" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,192,203);stop-opacity:1"/></linearGradient><linearGradient id="purple" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(160,32,240);stop-opacity:1"/></linearGradient><linearGradient id="red" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1"/></linearGradient><linearGradient id="steelblue" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(70,130,180);stop-opacity:1"/></linearGradient><linearGradient id="violet" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(238,130,238);stop-opacity:1"/></linearGradient><linearGradient id="yellow" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,255,0);stop-opacity:1"/></linearGradient><linearGradient id="none" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/><stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:1"/></linearGradient></defs>
|
data/test/output/sample55.rb.png
CHANGED
Binary file
|
data/test/output/sample56.rb.svg
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
3
3
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
|
-
<!-- Generated by graphviz version 2.27.
|
4
|
+
<!-- Generated by graphviz version 2.27.20101125.0545 (20101125.0545)
|
5
5
|
-->
|
6
6
|
<!-- Title: G Pages: 1 -->
|
7
7
|
<svg width="88pt" height="116pt"
|
data/test/test_examples.rb
CHANGED
@@ -22,8 +22,11 @@ class GraphVizTest < Test::Unit::TestCase
|
|
22
22
|
|
23
23
|
Skips = {
|
24
24
|
#'35' => 'hanging for me',
|
25
|
+
'33' => 'FamilyTree is broken',
|
25
26
|
'36' => 'hangs for me',
|
26
|
-
'
|
27
|
+
'53' => 'FamilyTree is broken',
|
28
|
+
'57' => 'will not be able to find the graphml script',
|
29
|
+
'99' => 'FamilyTree is broken'
|
27
30
|
}
|
28
31
|
|
29
32
|
|
@@ -43,10 +46,6 @@ class GraphVizTest < Test::Unit::TestCase
|
|
43
46
|
assert_output_pattern(/\Adigraph G \{.*\}\n\Z/m, '27')
|
44
47
|
end
|
45
48
|
|
46
|
-
def test_sample33
|
47
|
-
assert_output_pattern(/\Adigraph FamilyTree \{.+\}\n\Z/m, '33')
|
48
|
-
end
|
49
|
-
|
50
49
|
def test_sample38
|
51
50
|
assert_output_pattern(/\Adigraph G \{.*\}\n\Z/m, '38')
|
52
51
|
end
|
@@ -55,6 +54,10 @@ class GraphVizTest < Test::Unit::TestCase
|
|
55
54
|
assert_output_pattern(/\Adigraph G \{.*\}\n\Z/m, '40')
|
56
55
|
end
|
57
56
|
|
57
|
+
def test_sample41
|
58
|
+
assert_output_pattern(/\A.*\Z/m, '40')
|
59
|
+
end
|
60
|
+
|
58
61
|
def test_sample55
|
59
62
|
assert_output_pattern(/\Agraph G \{.*\}\n\Z/m, '55')
|
60
63
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-graphviz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 21
|
10
|
+
version: 0.9.21
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gregoire Lejeune
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-03-26 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
286
286
|
requirements: []
|
287
287
|
|
288
288
|
rubyforge_project: ruby-asp
|
289
|
-
rubygems_version: 1.
|
289
|
+
rubygems_version: 1.5.0
|
290
290
|
signing_key:
|
291
291
|
specification_version: 3
|
292
292
|
summary: Interface to the GraphViz graphing tool
|