From d6a7c07c9c9b289f0d90627122731f2c54214f17 Mon Sep 17 00:00:00 2001 From: Wang Lun Date: Sat, 7 Jan 2023 00:02:29 +0900 Subject: [PATCH 1/3] change to conan --- lib/pod/command/dependencies.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pod/command/dependencies.rb b/lib/pod/command/dependencies.rb index 0cac74c..e677733 100644 --- a/lib/pod/command/dependencies.rb +++ b/lib/pod/command/dependencies.rb @@ -213,7 +213,7 @@ def graphviz_image_output end def graphviz_dot_output - graphviz_data.output( :dot => "#{output_file_basename}.gv") + graphviz_data.output( :conan => "#{output_file_basename}.gv") end end From a3f45de3239459e916f1bb40073af2ed8e23af57 Mon Sep 17 00:00:00 2001 From: Wang Lun Date: Mon, 13 Feb 2023 12:15:56 +0900 Subject: [PATCH 2/3] remove subgraph --- lib/pod/command/dependencies.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pod/command/dependencies.rb b/lib/pod/command/dependencies.rb index e677733..8936565 100644 --- a/lib/pod/command/dependencies.rb +++ b/lib/pod/command/dependencies.rb @@ -18,6 +18,7 @@ def self.options ['--use-podfile-targets', 'Uses targets from the Podfile'], ['--ranksep', 'If you use --image command this command will be useful. The gives desired rank separation, in inches. Example --ranksep=.75, default .75'], ['--nodesep', 'It is same as [--ranksep] command. Minimum space between two adjacent nodes in the same rank, in inches.Example --nodesep=.25, default .25'], + ['--splines', 'straight lines: https://graphviz.readthedocs.io/en/stable/manual.html#styling'], ['--filter-pattern', 'Filters out subtrees from pods with names matching the specified pattern from the --graphviz and --image output. Example --filter-pattern="Tests"'], ].concat(super) end @@ -37,6 +38,7 @@ def initialize(argv) @use_podfile_targets = argv.flag?('use-podfile-targets', false) @ranksep = argv.option('ranksep', '0.75') @nodesep = argv.option('nodesep', '0.25') + @splines = argv.option('splines', 'ortho') @filter_pattern = argv.option('filter-pattern', nil) super end @@ -129,7 +131,7 @@ def sandbox def graphviz_data @graphviz ||= begin require 'graphviz' - graph = GraphViz::new(output_file_basename, :type => :digraph, :ranksep => @ranksep, :nodesep => @nodesep) + graph = GraphViz::new(output_file_basename, :type => :digraph, :ranksep => @ranksep, :nodesep => @nodesep, :splines => @splines) if @use_podfile_targets unless @podspec @@ -213,7 +215,7 @@ def graphviz_image_output end def graphviz_dot_output - graphviz_data.output( :conan => "#{output_file_basename}.gv") + graphviz_data.output( :canon => "#{output_file_basename}.gv") end end From 01cb56e034b608c50a5482548406ac4538762d6a Mon Sep 17 00:00:00 2001 From: Wang Lun Date: Mon, 13 Feb 2023 12:22:18 +0900 Subject: [PATCH 3/3] change node shape --- lib/pod/command/dependencies.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pod/command/dependencies.rb b/lib/pod/command/dependencies.rb index 8936565..f412670 100644 --- a/lib/pod/command/dependencies.rb +++ b/lib/pod/command/dependencies.rb @@ -132,6 +132,7 @@ def graphviz_data @graphviz ||= begin require 'graphviz' graph = GraphViz::new(output_file_basename, :type => :digraph, :ranksep => @ranksep, :nodesep => @nodesep, :splines => @splines) + graph.node["shape"] = "box" if @use_podfile_targets unless @podspec