cocoapods-entitlements-statistics 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c31174f0e1b58dcd707ded0b23d51e94f94fc7c4ca5f1271316afa81bd53d37
4
- data.tar.gz: d48038d4147a1e15e84e371c983c3016aa32ef1486a697fcfa57794111bb0f81
3
+ metadata.gz: 806c4c679346c360dc216008564012f9b4d598c3c130995c1408938cc6355e41
4
+ data.tar.gz: 795046f116d18b94a2c8a9e67c8e55127216feeb117029ebb931df5b2b017260
5
5
  SHA512:
6
- metadata.gz: 38e14fc7ed32d961b2afb2cabf7a06d95deb50b996a7263179bbd7b3681f912fb59b8fae135efa1282eafd655f94bd942676fd8719b389ef0733889f91871dc8
7
- data.tar.gz: 97b4e20e7548a1f70ebca4bd24fae61524b8004efd75396e9435b30d1e2968d3b0238df24896d3c7b03fccc0b6e82ece00c0e015f73c39b495bde65b6e4ff89c
6
+ metadata.gz: 78dfb04aa4b57b0f98bc92ed2c9d9f3d90b08b8daf1aaf31e646a0bf6b1f98bef1433187bf5b728ce4e9c457bf267516e00be65d7f9f2acabf0af1355de548fe
7
+ data.tar.gz: 8e0d8151c7e417b8d8d9fa1ecdef3590e3b8699a995b22eba06c7900267c41db26f77a09ed7ac5bd93ab69bda9e384e98d7409890ab1d9888149b447bf05bfa1
@@ -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
  def report_file_name(path: nil)
37
37
  puts "report_file_name"
38
- puts path
38
+ puts path.class
39
39
  path = path ? "#{path}/entitlements_statistics" : "entitlements_statistics"
40
40
  puts path
41
41
  FileUtils.mkdir_p(path) unless File.exists?(path)
@@ -1,3 +1,3 @@
1
1
  module CocoapodsEntitlementsStatistics
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -24,7 +24,11 @@ module CocoapodsEntitlementsStatistics
24
24
 
25
25
  report_path = (!options.nil? && options.has_key?("report_path")) ? options[:report_path] : nil
26
26
  puts "xx=>report_path: #{report_path}"
27
- analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier, report_path: report_path )
27
+ if report_path.nil?
28
+ analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier )
29
+ else
30
+ analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier, report_path: report_path )
31
+ end
28
32
 
29
33
  report_real_path = analyzer.analyze
30
34
  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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bin