ruby-graphviz 0.9.16 → 0.9.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,10 @@ class GraphViz
8
8
  def output
9
9
  return @data
10
10
  end
11
+
12
+ def source
13
+ return @data
14
+ end
11
15
  end
12
16
 
13
17
  Dir.glob( File.dirname( File.expand_path(__FILE__) )+"/types/*" ).each do |f|
@@ -0,0 +1,20 @@
1
+ class GraphViz
2
+ class Types
3
+ class GvDouble < Common
4
+ def check(data)
5
+ return data
6
+ end
7
+
8
+ def output
9
+ return @data.to_s.inspect.gsub( "\\\\", "\\" )
10
+ end
11
+
12
+ def to_f
13
+ @data.to_f
14
+ end
15
+
16
+ alias :to_gv :output
17
+ alias :to_s :output
18
+ end
19
+ end
20
+ 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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 16
10
- version: 0.9.16
9
+ - 17
10
+ version: 0.9.17
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: 2010-08-02 00:00:00 +02:00
18
+ date: 2010-08-29 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -59,6 +59,13 @@ files:
59
59
  - examples/dot/test.dot
60
60
  - examples/dot/test_parse.rb
61
61
  - examples/dot/unix.dot
62
+ - examples/graphml/attributes.ext.graphml
63
+ - examples/graphml/attributes.graphml
64
+ - examples/graphml/cluster.graphml
65
+ - examples/graphml/hyper.graphml
66
+ - examples/graphml/nested.graphml
67
+ - examples/graphml/port.graphml
68
+ - examples/graphml/simple.graphml
62
69
  - examples/hello.png
63
70
  - examples/rgv/rgv.ps
64
71
  - examples/rgv/test_rgv.rb
@@ -119,28 +126,38 @@ files:
119
126
  - examples/sample54.rb
120
127
  - examples/sample55.rb
121
128
  - examples/sample56.rb
129
+ - examples/sample57.rb
122
130
  - examples/sample99.rb
123
131
  - examples/sdlshapes/README
124
132
  - examples/sdlshapes/sdl.ps
125
133
  - examples/sdlshapes/sdlshapes.dot
126
134
  - examples/simpsons.gv
127
135
  - examples/test.xml
136
+ - examples/theory/matrix.png
137
+ - examples/theory/PERT.png
138
+ - examples/theory/pert.rb
139
+ - examples/theory/tests.rb
128
140
  - lib/ext/gvpr/dot2ruby.g
129
141
  - lib/graphviz/attrs.rb
130
142
  - lib/graphviz/constants.rb
131
143
  - lib/graphviz/core_ext.rb
132
144
  - lib/graphviz/dot2ruby.rb
133
145
  - lib/graphviz/edge.rb
146
+ - lib/graphviz/elements.rb
134
147
  - lib/graphviz/ext.rb
135
148
  - lib/graphviz/family_tree/couple.rb
136
149
  - lib/graphviz/family_tree/generation.rb
137
150
  - lib/graphviz/family_tree/person.rb
138
151
  - lib/graphviz/family_tree/sibling.rb
139
152
  - lib/graphviz/family_tree.rb
153
+ - lib/graphviz/graphml.rb
154
+ - lib/graphviz/math/matrix.rb
140
155
  - lib/graphviz/node.rb
141
156
  - lib/graphviz/nothugly/nothugly.xsl
142
157
  - lib/graphviz/nothugly.rb
158
+ - lib/graphviz/theory.rb
143
159
  - lib/graphviz/types/esc_string.rb
160
+ - lib/graphviz/types/gv_double.rb
144
161
  - lib/graphviz/types/html_string.rb
145
162
  - lib/graphviz/types/lbl_string.rb
146
163
  - lib/graphviz/types.rb
@@ -179,6 +196,9 @@ post_install_message: |
179
196
 
180
197
  /!\ The html attribut is deprecated and will be removed in version 1.0.0
181
198
  You can use the label attribut, as dot do it : :label => '<<html/>>'
199
+
200
+ /!\ Version 0.9.17 introduce GraphML (http://graphml.graphdrawing.org/) support and
201
+ graph theory !
182
202
 
183
203
  rdoc_options:
184
204
  - --title