cocoapods-dependencies 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2976669ac6c0073c47f9aa8dc23682f96bc6094ce7e7ab085372d6cc447bfe6
4
- data.tar.gz: b20351c49307f27fa098310a6563d1e086296c0c9753a1174331c9af377039c1
3
+ metadata.gz: ff706ac7dea043fca05b511cd1721283551de7f39a23fd89c8f3792cc7d84c4c
4
+ data.tar.gz: 8f176c0dcff8b5bfe479d8f88a8c5f37b42de7e2914b31029d46cb0cb0ef1fad
5
5
  SHA512:
6
- metadata.gz: 4e84343b21452464d23a188abecf79a2a8fb467ddaa6140380f9d4b038ecbab363c339d879b2087f5a1c289105f71fdf746561b5b3376cd52138f1ae558128ff
7
- data.tar.gz: ac4cd22684755e411d083d6f90922c3c47e03cf929bf6d3d1809f2588842fdb4052041c5ed70e7a665ecc6cdaadaba0595f28ff1aadea73904e237a4cfcea35d
6
+ metadata.gz: 0a507fba4b0066e48ed89a71576aa2bceb55ab2e5217ce6fe0a2eb1eae4980de98565ff77aaa6cefafd78176bde461490bef07a3c9750ed50ddc216af96ee371
7
+ data.tar.gz: f30684ed6ddc01c552432fdf02342a0febbe659b2c7269dead58589c20731bc53bf3dfe7ce00576679f6880f2f4dd01e44d58750c93e46275a574cf62cad527d
@@ -1,5 +1,18 @@
1
1
  # CocoaPods Dependencies Changelog
2
2
 
3
+ ## 1.3.0 (2018-08-16)
4
+
5
+ ##### Enhancements
6
+
7
+ * Add `--use-podfile-targets` flag that allows adding in target names from the
8
+ podfile to graphviz output.
9
+ [Bogdan Poplauschi](https://github.com/bpoplauschi)
10
+
11
+ ##### Bug Fixes
12
+
13
+ * None.
14
+
15
+
3
16
  ## 1.2.0 (2018-07-16)
4
17
 
5
18
  ##### Enhancements
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-dependencies (1.2.0)
4
+ cocoapods-dependencies (1.3.0)
5
5
  ruby-graphviz (~> 1.2)
6
6
 
7
7
  GEM
@@ -82,4 +82,4 @@ DEPENDENCIES
82
82
  rake
83
83
 
84
84
  BUNDLED WITH
85
- 1.16.2
85
+ 1.16.3
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Dependencies
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
4
4
  end
5
5
  end
@@ -15,6 +15,7 @@ module Pod
15
15
  ['--repo-update', 'Fetch external podspecs and run `pod repo update` before calculating the dependency graph'],
16
16
  ['--graphviz', 'Outputs the dependency graph in Graphviz format to <podspec name>.gv or Podfile.gv'],
17
17
  ['--image', 'Outputs the dependency graph as an image to <podspec name>.png or Podfile.png'],
18
+ ['--use-podfile-targets', 'Uses targets from the Podfile'],
18
19
  ].concat(super)
19
20
  end
20
21
 
@@ -30,6 +31,7 @@ module Pod
30
31
  @repo_update = argv.flag?('repo-update', false)
31
32
  @produce_graphviz_output = argv.flag?('graphviz', false)
32
33
  @produce_image_output = argv.flag?('image', false)
34
+ @use_podfile_targets = argv.flag?('use-podfile-targets', false)
33
35
  super
34
36
  end
35
37
 
@@ -122,12 +124,26 @@ module Pod
122
124
  @graphviz ||= begin
123
125
  require 'graphviz'
124
126
  graph = GraphViz::new(output_file_basename, :type => :digraph)
125
- root = graph.add_node(output_file_basename)
126
127
 
127
- unless @podspec
128
- podfile_dependencies.each do |pod|
129
- pod_node = graph.add_node(pod)
130
- graph.add_edge(root, pod_node)
128
+ if @use_podfile_targets
129
+ unless @podspec
130
+ podfile.target_definitions.values.each do |target|
131
+ target_node = graph.add_node(target.name.to_s)
132
+ if target.dependencies
133
+ target.dependencies.each do |dependency|
134
+ pod_node = graph.add_node(dependency.name.to_s)
135
+ graph.add_edge(target_node, pod_node)
136
+ end
137
+ end
138
+ end
139
+ end
140
+ else
141
+ root = graph.add_node(output_file_basename)
142
+ unless @podspec
143
+ podfile_dependencies.each do |pod|
144
+ pod_node = graph.add_node(pod)
145
+ graph.add_edge(root, pod_node)
146
+ end
131
147
  end
132
148
  end
133
149
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel E. Giddins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-16 00:00:00.000000000 Z
11
+ date: 2018-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler