bin/gem2gv in ruby-graphviz-1.0.4 vs bin/gem2gv in ruby-graphviz-1.0.5
- old
+ new
@@ -69,19 +69,19 @@
def getNode( name, version )
#nodeName = "#{name}#{version}"
#nodeLabel = "#{name}\n#{version}"
nodeName = "#{name}"
nodeLabel = "#{name}"
- return @oGraph.get_node(nodeName) || @oGraph.add_node( nodeName, "label" => nodeLabel )
+ return @oGraph.get_node(nodeName) || @oGraph.add_nodes( nodeName, "label" => nodeLabel )
end
def createEdges( gemName, version, nodes )
nodeA = getNode( gemName, version )
nodes.each do |node|
nodeB = getNode( node[:name], node[:version] )
- @oGraph.add_edge( nodeA, nodeB )
+ @oGraph.add_edges( nodeA, nodeB )
end
end
end
def usage
@@ -161,6 +161,6 @@
g = Gem2Gv.new( xGVPath, xUse )
g.go( xGem )
result = g.out( xOutFormat, xOutFile )
-puts result unless result.nil?
\ No newline at end of file
+puts result unless result.nil?