cocoapods-privacy 0.0.3 → 0.0.5

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: 2dd33a12851ad8910f340c85839e7110e567c04ee2531b8cdb29042a53c16fcc
4
- data.tar.gz: 2867496cf2297f46178f88eaba4f1a85531a8dcbd1ea3f95c3d033a89908710f
3
+ metadata.gz: 9e2c2edb2a21e1dc73f639fab1bd7b78eda9e0caeecd8597378c8f8b4c4f35c2
4
+ data.tar.gz: 8f98ddf47a36beebbc8c80b3da3fad5f0cfccfd0a0b491e81af13bf1f156e16f
5
5
  SHA512:
6
- metadata.gz: c6601692be2b397a4bbdd8680448799de88a80680be198403849b4453821327f9b017a667f1b5d9606d4ed4d24ca1fd49f1e8a93c767a42a36225932d4d4da09
7
- data.tar.gz: f03fae4e472d36e6ef2ab02c962a4be841af1c219335de250d01fb8e66292389394f4640e43c52497abc8948b343adb3e3cf86823362417f933af59efe8ed411
6
+ metadata.gz: 407e0cf2c260455f3bfed2232b656317b140759018dae8ce9eb6aa605c3df316d07ef772c23b2aa823a03790088257c5763e5bf73f2e70d0342783df5c953fc6
7
+ data.tar.gz: 5c2859958cdfafb1ef978d1ede514595caaaf73a9bd864a84eb7a1522f0d40768a3310b67d7206b68c95f16514a9b22cb014e6b23215cbd70e19d2f861ccd1c2
@@ -22,6 +22,8 @@ module Pod
22
22
  end
23
23
 
24
24
  def run
25
+ verify_podfile_exists!
26
+
25
27
  installer = installer_for_config
26
28
  installer.repo_update = false
27
29
  installer.update = false
@@ -16,6 +16,13 @@ module Pod
16
16
  @podspec_file = argv.arguments!.first
17
17
  super
18
18
  end
19
+
20
+ def validate!
21
+ @podspec_file = @podspec_file ? @podspec_file : PrivacyUtils.podspec_file_path
22
+ unless @podspec_file && !@podspec_file.empty?
23
+ raise Informative, 'no podspec file were found, please run pod privacy podspec_file_path'
24
+ end
25
+ end
19
26
 
20
27
  def run
21
28
  PrivacyModule.load_module(@podspec_file)
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPrivacy
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -149,12 +149,7 @@ module PrivacyModule
149
149
  end
150
150
 
151
151
  # 处理组件
152
- def self.load_module(podspec_file)
153
- podspec_file_path = podspec_file ? podspec_file : PrivacyUtils.podspec_file_path
154
- unless podspec_file_path && !podspec_file_path.empty?
155
- raise Informative, "no podspec file were found, please run `pod privacy podspec_file_path`"
156
- end
157
-
152
+ def self.load_module(podspec_file_path)
158
153
  privacy_hash = PrivacyModule.check(podspec_file_path)
159
154
  privacy_hash.each do |privacy_file_path, source_files|
160
155
  data = PrivacyHunter.search_pricacy_apis(source_files)
@@ -65,7 +65,7 @@ module Pod
65
65
  def install!
66
66
  privacy_origin_install!()
67
67
 
68
- if !(Pod::Config.instance.is_privacy || !Pod::Config.instance.privacy_folds.empty?)
68
+ if !(Pod::Config.instance.is_privacy || (Pod::Config.instance.privacy_folds && !Pod::Config.instance.privacy_folds.empty?))
69
69
  return
70
70
  end
71
71
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-privacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - youhui