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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c31174f0e1b58dcd707ded0b23d51e94f94fc7c4ca5f1271316afa81bd53d37
4
- data.tar.gz: d48038d4147a1e15e84e371c983c3016aa32ef1486a697fcfa57794111bb0f81
3
+ metadata.gz: eaeda8b243024de3be7ab0775c9a35c1e83452229929b2fbe8e4b7ff5e9cad39
4
+ data.tar.gz: a330a04873df0de23234a552af8175bf91faa9dcecb67a2210ca296af84f5df0
5
5
  SHA512:
6
- metadata.gz: 38e14fc7ed32d961b2afb2cabf7a06d95deb50b996a7263179bbd7b3681f912fb59b8fae135efa1282eafd655f94bd942676fd8719b389ef0733889f91871dc8
7
- data.tar.gz: 97b4e20e7548a1f70ebca4bd24fae61524b8004efd75396e9435b30d1e2968d3b0238df24896d3c7b03fccc0b6e82ece00c0e015f73c39b495bde65b6e4ff89c
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 = nil,store_path = nil)
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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsEntitlementsStatistics
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -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
- puts "xx=>report_path: #{report_path}"
27
- analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier, report_path: report_path )
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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-entitlements-statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - bin