lib/load_tracer/formatter/dot.rb in load_tracer-0.6.0 vs lib/load_tracer/formatter/dot.rb in load_tracer-0.6.1

- old
+ new

@@ -11,11 +11,11 @@ @dependencies = dependencies @template = File.read(File.expand_path('templates/default.dot.erb', __dir__)) end def export - graph_data = ERB.new(@template, nil, '-').result(binding) + graph_data = ERB.new(@template, trim_mode: '-').result(binding) graph_data.lines.map(&:rstrip).join("\n") end private @@ -34,10 +34,10 @@ end end.sort_by(&:first).uniq end def duplicated_label_names - return @_duplicate_names if @_duplicate_names + return @_duplicate_names if defined?(@_duplicate_names) checked = Hash.new @_duplicate_names = [] @dependencies.each do |from, deps|