ruby-graphviz 0.9.17 → 0.9.18
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +2 -0
- data/README.rdoc +5 -0
- data/lib/graphviz/constants.rb +1 -1
- data/lib/graphviz/node.rb +1 -1
- data/lib/graphviz/types.rb +1 -1
- data/lib/graphviz/utils.rb +3 -1
- data/test/test_examples.rb +2 -1
- metadata +4 -6
- data/examples/theory/PERT.png +0 -0
- data/examples/theory/matrix.png +0 -0
data/AUTHORS
CHANGED
data/README.rdoc
CHANGED
@@ -16,6 +16,11 @@ Interface to the GraphViz graphing tool
|
|
16
16
|
|
17
17
|
== CHANGELOG
|
18
18
|
|
19
|
+
=== 0.9.18 :
|
20
|
+
* JRuby bug correction (by Nigel Thorne)
|
21
|
+
* Fix autoload problem for Rubinius (by Rolf Timmermans)
|
22
|
+
* Bugs corrections
|
23
|
+
|
19
24
|
=== 0.9.17 :
|
20
25
|
* GraphViz::Edge#node_one and GraphViz::Edge#node_one now have un optional parameter to indicate if you want to (or not) get the port in the name (default: true)
|
21
26
|
* GraphViz#each_node now returns the Hash of nodes if there is no block given.
|
data/lib/graphviz/constants.rb
CHANGED
data/lib/graphviz/node.rb
CHANGED
data/lib/graphviz/types.rb
CHANGED
@@ -14,7 +14,7 @@ class GraphViz
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
Dir.glob( File.dirname( File.expand_path(__FILE__) )+"/types
|
17
|
+
Dir.glob( File.dirname( File.expand_path(__FILE__) )+"/types/*.rb" ).each do |f|
|
18
18
|
autoload File.basename(f).gsub(File.extname(f), "").split( "_" ).map{|n| n.capitalize }.join.to_sym, f
|
19
19
|
end
|
20
20
|
end
|
data/lib/graphviz/utils.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
|
1
3
|
module GVUtils
|
2
4
|
# Since this code is an adaptation of Launchy::Application#find_executable
|
3
5
|
# (http://copiousfreetime.rubyforge.org/launchy/Launchy/Application.html)
|
@@ -21,7 +23,7 @@ module GVUtils
|
|
21
23
|
file = (path.nil?)?bin:File.join(path,bin)
|
22
24
|
if File.executable?(file) and not File.directory?(file) then
|
23
25
|
return file
|
24
|
-
elsif RUBY_PLATFORM =~ /mswin|mingw/
|
26
|
+
elsif Config::CONFIG['host_os'] =~ /mswin|mingw/ # WAS: elsif RUBY_PLATFORM =~ /mswin|mingw/
|
25
27
|
found_ext = (ENV['PATHEXT'] || '.exe;.bat;.com').split(";").find {|ext| File.executable?(file + ext) }
|
26
28
|
return file + found_ext if found_ext
|
27
29
|
end
|
data/test/test_examples.rb
CHANGED
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 18
|
10
|
+
version: 0.9.18
|
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-
|
18
|
+
date: 2010-10-07 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -133,8 +133,6 @@ files:
|
|
133
133
|
- examples/sdlshapes/sdlshapes.dot
|
134
134
|
- examples/simpsons.gv
|
135
135
|
- examples/test.xml
|
136
|
-
- examples/theory/matrix.png
|
137
|
-
- examples/theory/PERT.png
|
138
136
|
- examples/theory/pert.rb
|
139
137
|
- examples/theory/tests.rb
|
140
138
|
- lib/ext/gvpr/dot2ruby.g
|
data/examples/theory/PERT.png
DELETED
Binary file
|
data/examples/theory/matrix.png
DELETED
Binary file
|