cocoapods-entitlements-statistics 0.1.0 → 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: 720792e2fc643f35c4d0939d9863ec43ba6dca012c5a03b6cf79717b5e4be004
4
- data.tar.gz: de85d60fafcebf2bb22ba44e565bb8d21b6d4c7a84a841b20f35b6c882bc9cec
3
+ metadata.gz: 806c4c679346c360dc216008564012f9b4d598c3c130995c1408938cc6355e41
4
+ data.tar.gz: 795046f116d18b94a2c8a9e67c8e55127216feeb117029ebb931df5b2b017260
5
5
  SHA512:
6
- metadata.gz: 3f89718bca4c16f716141d6f3823758fb57cdead266f0e871faf9da5b663fa992f56523889caae8d73586442405bf1716d564a40919fff21dac0901d614c8d4e
7
- data.tar.gz: 50604721abf53ab9c3ea77acad49d1bbf15c9f7a27d221ca967f6e6b6453473b884f4a7185ae189ae6357bc85ee8bc06b2aa07f5eef7a05541d5738af386bd44
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.0"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -23,7 +23,12 @@ 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
- analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier, report_path: report_path )
26
+ puts "xx=>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
27
32
 
28
33
  report_real_path = analyzer.analyze
29
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bin