examples/shapes.rb in ruby-graphviz-0.9.1 vs examples/shapes.rb in ruby-graphviz-0.9.2

- old
+ new

@@ -3,13 +3,13 @@ $:.unshift( "../lib" ); require "graphviz" g = nil if ARGV[0] - g = GraphViz::new( "G", "output" => "png", "path" => ARGV[0] ) + g = GraphViz::new( "G", "path" => ARGV[0] ) else - g = GraphViz::new( "G", "output" => "png" ) + g = GraphViz::new( "G" ) end g.node["shape"] = "ellipse" [ "box", "polygon", "ellipse", "circle", "point", @@ -19,6 +19,6 @@ "Mdiamond", "Msquare", "Mcircle", "rect", "rectangle", "none", "note", "tab", "folder", "box3d", "component" ].each { |s| g.add_node( s, "shape" => s ) } -g.output( :file => "shapes.png") +g.output( :png => "shapes.png")