cocoapods-entitlements-statistics 0.1.1 → 0.1.5
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/lib/cocoapods-entitlements-statistics/app_entitlements_statistics/analyze.rb +4 -4
- data/lib/cocoapods-entitlements-statistics/app_entitlements_statistics/helper.rb +0 -3
- data/lib/cocoapods-entitlements-statistics/gem_version.rb +1 -1
- data/lib/cocoapods_plugin.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaeda8b243024de3be7ab0775c9a35c1e83452229929b2fbe8e4b7ff5e9cad39
|
4
|
+
data.tar.gz: a330a04873df0de23234a552af8175bf91faa9dcecb67a2210ca296af84f5df0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d6785481dbafb5f8ecab43175c5bbd76519c40a5ccb62a542514b2fa82a3bb32349d29e35757a196516668ccb104476ff7921d3bc3ba5ed0b0fa54640fb1e53
|
7
|
+
data.tar.gz: a4548ac5474947ac72c58d844ae63f055604afaf8dc12920afb8fde99ebc61a01f4fef6a6759e80274d315ee4e65049a866408e8537e7fb00a85d0acc3bdfca9
|
@@ -14,7 +14,7 @@ module AppEntitlementsStatistics
|
|
14
14
|
attr_reader :report_path
|
15
15
|
attr_reader :identifier
|
16
16
|
|
17
|
-
def initialize(identifier,report_path
|
17
|
+
def initialize(identifier,report_path: nil, store_path: nil)
|
18
18
|
@identifier = identifier
|
19
19
|
@report_path = report_path
|
20
20
|
@store_path = store_path
|
@@ -35,7 +35,7 @@ module AppEntitlementsStatistics
|
|
35
35
|
|
36
36
|
capabilities_diff = analyze_diff(pre_entitlements,cur_entitlements)
|
37
37
|
report_path = generate(capabilities_diff)
|
38
|
-
puts report_path
|
38
|
+
# puts report_path
|
39
39
|
report_path
|
40
40
|
end
|
41
41
|
|
@@ -45,7 +45,7 @@ module AppEntitlementsStatistics
|
|
45
45
|
output += "\n\n\n#{@versions.first} entitlements list: "
|
46
46
|
output += "\n" + read_each_line(@versions.first)
|
47
47
|
output += "\n" + "----------------------------------------"
|
48
|
-
puts "singleGenerate"
|
48
|
+
# puts "singleGenerate"
|
49
49
|
report_path = report_file_name(path: @report_path)
|
50
50
|
File.open(report_path, 'w') { |file|
|
51
51
|
file.write(output)
|
@@ -67,7 +67,7 @@ module AppEntitlementsStatistics
|
|
67
67
|
output += "\n" + "----------------------------------------"
|
68
68
|
output += "\n\n#{pre_version} entitlements list: "
|
69
69
|
output += "\n" + read_each_line(pre_version)
|
70
|
-
puts "generate"
|
70
|
+
# puts "generate"
|
71
71
|
report_path = report_file_name(path: @report_path)
|
72
72
|
File.open(report_path, 'w') { |file|
|
73
73
|
file.write(output)
|
@@ -34,10 +34,7 @@ module AppEntitlementsStatistics
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def report_file_name(path: nil)
|
37
|
-
puts "report_file_name"
|
38
|
-
puts path
|
39
37
|
path = path ? "#{path}/entitlements_statistics" : "entitlements_statistics"
|
40
|
-
puts path
|
41
38
|
FileUtils.mkdir_p(path) unless File.exists?(path)
|
42
39
|
file_name = "#{path}/analyze_report"
|
43
40
|
file_name
|
data/lib/cocoapods_plugin.rb
CHANGED
@@ -23,8 +23,11 @@ module CocoapodsEntitlementsStatistics
|
|
23
23
|
extracter.extract_update
|
24
24
|
|
25
25
|
report_path = (!options.nil? && options.has_key?("report_path")) ? options[:report_path] : nil
|
26
|
-
|
27
|
-
|
26
|
+
if report_path.nil?
|
27
|
+
analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier )
|
28
|
+
else
|
29
|
+
analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier, report_path: report_path )
|
30
|
+
end
|
28
31
|
|
29
32
|
report_real_path = analyzer.analyze
|
30
33
|
Pod::UI.notice "Entitlements Statistics Report : #{File.expand_path(report_real_path)}" unless report_real_path.empty?
|