lib/gush/graph.rb in gush-3.0.0 vs lib/gush/graph.rb in gush-4.0.0

- old
+ new

@@ -2,11 +2,11 @@ require 'tmpdir' module Gush class Graph - attr_reader :workflow, :filename, :path, :start_node, :end_node + attr_reader :workflow, :filename, :start_node, :end_node def initialize(workflow, options = {}) @workflow = workflow @filename = options.fetch(:filename, "graph.png") @path = options.fetch(:path, Pathname.new(Dir.tmpdir).join(filename)) @@ -30,10 +30,10 @@ format = 'png' file_format = path.split('.')[-1] format = file_format if file_format.length == 3 - Graphviz::output(@graph, path: path, format: format) + Graphviz.output(@graph, path: path, format: format) end def path @path.to_s end