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 CHANGED
@@ -8,6 +8,8 @@ Hugh Sasse <hgs@dmu.ac.uk>
8
8
  axgle <http://github.com/axgle>
9
9
  hipe <http://github.com/hipe>
10
10
  Stefan Huber <http://github.com/MSNexploder>
11
+ Nigel Thorne <http://github.com/NigelThorne>
12
+ Rolf Timmermans <http://github.com/rolftimmermans>
11
13
 
12
14
  Thanks to :
13
15
 
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.
@@ -40,7 +40,7 @@
40
40
  # C => cluster
41
41
  #
42
42
  module Constants
43
- RGV_VERSION = "0.9.17"
43
+ RGV_VERSION = "0.9.18"
44
44
 
45
45
  ## Const: Output formats
46
46
  FORMATS = [
data/lib/graphviz/node.rb CHANGED
@@ -80,7 +80,7 @@ class GraphViz
80
80
  self[key] = value
81
81
  end
82
82
  else
83
- @oAttrNode[xAttrName.to_s].clone
83
+ (@oAttrNode[xAttrName.to_s].nil?)?nil:@oAttrNode[xAttrName.to_s].clone
84
84
  end
85
85
  end
86
86
 
@@ -14,7 +14,7 @@ class GraphViz
14
14
  end
15
15
  end
16
16
 
17
- Dir.glob( File.dirname( File.expand_path(__FILE__) )+"/types/*" ).each do |f|
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
@@ -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
@@ -22,7 +22,8 @@ class GraphVizTest < Test::Unit::TestCase
22
22
 
23
23
  Skips = {
24
24
  #'35' => 'hanging for me',
25
- '36' => 'hangs for me'
25
+ '36' => 'hangs for me',
26
+ '57' => 'will not be able to find the graphml script'
26
27
  }
27
28
 
28
29
 
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 17
10
- version: 0.9.17
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-08-29 00:00:00 +02:00
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
Binary file
Binary file