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 +4 -4
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +2 -2
- data/lib/cocoapods_dependencies.rb +1 -1
- data/lib/pod/command/dependencies.rb +21 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff706ac7dea043fca05b511cd1721283551de7f39a23fd89c8f3792cc7d84c4c
|
4
|
+
data.tar.gz: 8f176c0dcff8b5bfe479d8f88a8c5f37b42de7e2914b31029d46cb0cb0ef1fad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a507fba4b0066e48ed89a71576aa2bceb55ab2e5217ce6fe0a2eb1eae4980de98565ff77aaa6cefafd78176bde461490bef07a3c9750ed50ddc216af96ee371
|
7
|
+
data.tar.gz: f30684ed6ddc01c552432fdf02342a0febbe659b2c7269dead58589c20731bc53bf3dfe7ce00576679f6880f2f4dd01e44d58750c93e46275a574cf62cad527d
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
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.
|
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-
|
11
|
+
date: 2018-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|