cocoapods-dependency-graph 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-dependency-graph/gem_version.rb +1 -1
- data/lib/cocoapods-dependency-graph/generator/excel_generator.rb +3 -3
- data/lib/cocoapods-dependency-graph/generator/graph_generator.rb +2 -1
- data/lib/cocoapods-dependency-graph/generator/json_generator.rb +1 -1
- data/lib/cocoapods_dependency_graph.rb +8 -2
- 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: 3675a97f47227784e54cb601ed261ece3ff44bc171466e837e8cf3ae96a67d07
|
4
|
+
data.tar.gz: 3d976e62cac690e1bef8575d71605c4816dbf0a9837861bbe0f038e21f5635cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74eef795ccdb803cc35b2f2563b8214c0164da0de5307c5e96fa5126e3939a4b194bd186e1244c452b7e72e0f05f2e2c7c75c40d78010d8d0d29bea78693cb00
|
7
|
+
data.tar.gz: 36eeab68fdf139b18da4ae32914ebba19197b7e2fe937cd0b9b6b03a94f058653f8c7b8cc5e7c9225817a6452f1244bda132a8a626998c3417cf76a45067b2c8
|
@@ -5,8 +5,8 @@ module Dependency
|
|
5
5
|
attr_accessor :workbook
|
6
6
|
attr_accessor :worksheet
|
7
7
|
|
8
|
-
def create_excel
|
9
|
-
filename =
|
8
|
+
def create_excel(target_label)
|
9
|
+
filename = "#{target_label}_dependency_list.xlsx"
|
10
10
|
File.delete(filename) if File.file?(filename)
|
11
11
|
|
12
12
|
@workbook = FastExcel.open(filename, constant_memory: true)
|
@@ -40,7 +40,7 @@ module Dependency
|
|
40
40
|
# @param [Hash{<String, Specification>}] module_spec_hash
|
41
41
|
#
|
42
42
|
def generate(umbrella_target, module_spec_hash)
|
43
|
-
create_excel
|
43
|
+
create_excel(umbrella_target.cocoapods_target_label)
|
44
44
|
create_title
|
45
45
|
create_content(umbrella_target.specs)
|
46
46
|
close_excel
|
@@ -25,7 +25,7 @@ module Dependency
|
|
25
25
|
target_name = umbrella_target.cocoapods_target_label
|
26
26
|
dependency_hash = create_hash(target_name, umbrella_target.specs)
|
27
27
|
# puts dependency_hash.to_json
|
28
|
-
File.open("
|
28
|
+
File.open("#{target_name}_dependency_json.json","w") do |f|
|
29
29
|
f.write(dependency_hash.to_json)
|
30
30
|
end
|
31
31
|
end
|
@@ -49,9 +49,15 @@ module Dependency
|
|
49
49
|
unless umbrella_targets.length() > 0
|
50
50
|
puts "No target detected"
|
51
51
|
end
|
52
|
-
|
53
|
-
umbrella_target = umbrella_targets[0]
|
54
52
|
|
53
|
+
umbrella_targets.each { |target|
|
54
|
+
next if target.cocoapods_target_label.end_with?("Tests")
|
55
|
+
generate_graph_for_target(target)
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# @param [UmbrellaTargetDescription] umbrella_target
|
60
|
+
def generate_graph_for_target(umbrella_target)
|
55
61
|
module_spec_hash = {}
|
56
62
|
umbrella_target.specs.each { | spec |
|
57
63
|
module_spec_hash[spec.name] = spec
|
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.5
|
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-
|
11
|
+
date: 2020-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|