cocoapods-dependency-graph 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -5
- data/README.md +1 -42
- data/lib/cocoapods-dependency-graph/gem_version.rb +1 -1
- data/lib/cocoapods_dependency_graph.rb +0 -5
- data/spec/spec_helper.rb +0 -3
- 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: 4b795ce4341d5cc30fc57167deafbec4323b1ff562b00f25cc1eba9e09785c47
|
|
4
|
+
data.tar.gz: '092b460e63c15ce840fd8569f3c4b747ae6e3def09410378c56d2fed5b5a0d61'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e353877a103e258ee25cfd6e695a4fc5a68017f3a89ffeb5c9afb37932d9218831956582062f13fdbacac3e8ee1622814abd7e9357dad803b7b46476bd6e9325
|
|
7
|
+
data.tar.gz: 45b42ac435a71fe39ac68e693e6c3ce3878546b818d2394cc2a61fd8db3d0dfdf8f49949037dec236d38c00bbe528be46689b5e3db1df015d14b8a619b6486d8
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -2,53 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
A Cocoapods plugin to create the dependency graph and help you manage dependencies in your project.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
## Installation
|
|
7
|
-
### Install Dependency
|
|
8
|
-
$ gem install rgl
|
|
9
|
-
|
|
10
5
|
### Install
|
|
11
6
|
|
|
12
7
|
```
|
|
13
8
|
$ gem install cocoapods-dependency-graph
|
|
14
9
|
```
|
|
15
10
|
|
|
16
|
-
### Build and Install Plugin
|
|
17
|
-
|
|
18
|
-
$ git clone git@github.com:sueLan/cocoapods-dependency-graph.git
|
|
19
|
-
$ cd cocoapods-dependency-graph
|
|
20
|
-
$ gem build cocoapods-dependency-graph.gemspec && gem install cocoapods-dependency-graph --user-install
|
|
21
|
-
|
|
22
11
|
## Usage
|
|
23
12
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
plugin 'cocoapods-dependency-graph'
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
2. run `pod install`
|
|
31
|
-
3. output files in the project folder
|
|
32
|
-
|
|
33
|
-
In the `Podfile`, you can define `dependency_output` to decide which kind of output file this plugin generates.
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
dependency_output :json
|
|
37
|
-
dependency_output :excel
|
|
38
|
-
dependency_output :graph
|
|
39
|
-
```
|
|
40
|
-
There are 3 symbols to control the output format. You can choose one of them. If you don't define `dependency_output`, by default, this plugin generates `graph.jpg` and `graph.dot`.
|
|
41
|
-
|
|
42
|
-
The following are output files you can generate:
|
|
43
|
-
|
|
44
|
-
- `dependency_json.json`: JSON file for dependencies. You can view the json in any JSON becauty tool you like.
|
|
45
|
-
|
|
46
|
-
<img src="README.assets/image-20201007205410006.png" alt="image-20201007205410006" style="zoom:50%;" />
|
|
47
|
-
|
|
48
|
-
- `graph.jpg`: A png picture shows the dependency graph
|
|
49
|
-
|
|
50
|
-

|
|
51
|
-
|
|
52
|
-
- `graph.dot`: A dot file which represents the dependency graph. [A site](https://dreampuf.github.io/GraphvizOnline/) that can process the dot language. Or you can use [Graphviz](https://www.graphviz.org/theory/)
|
|
53
|
-
|
|
54
|
-
- `cocoapods-dependency-list.xlsx`: xlsx file for dependency list.
|
|
13
|
+
[See More](https://github.com/sueLan/cocoapods-dependency-graph)
|
|
@@ -20,7 +20,6 @@ module Pod
|
|
|
20
20
|
class Podfile
|
|
21
21
|
module DSL
|
|
22
22
|
def dependency_output(output_symbol)
|
|
23
|
-
puts "read dependency_output #{output_symbol}"
|
|
24
23
|
DSL.dependency_output_format = output_symbol
|
|
25
24
|
end
|
|
26
25
|
|
|
@@ -60,20 +59,16 @@ module Dependency
|
|
|
60
59
|
|
|
61
60
|
init_output_hash
|
|
62
61
|
output_key = Pod::Podfile::DSL.dependency_output_format
|
|
63
|
-
puts "#{output_key} key"
|
|
64
62
|
output_key = Output::GRAPH unless output_key
|
|
65
63
|
|
|
66
|
-
puts "output key #{output_key}, #{@output_class_hash}"
|
|
67
64
|
generator_string = @output_class_hash[output_key]
|
|
68
65
|
|
|
69
|
-
puts "gen #{generator_string}"
|
|
70
66
|
unless generator_string
|
|
71
67
|
puts "The dependency_output should be one of #{Output::GRAPH}, #{Output::JSON}, and #{Output::EXCEL}"
|
|
72
68
|
return
|
|
73
69
|
end
|
|
74
70
|
|
|
75
71
|
generator_class = Object.const_get(generator_string)
|
|
76
|
-
puts "gener class #{generator_class}"
|
|
77
72
|
generator_class.new.generate(umbrella_target,module_spec_hash)
|
|
78
73
|
end
|
|
79
74
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-dependency-graph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rongyan Zheng
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-10-
|
|
11
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|