cocoapods-privacy 0.0.4 → 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: 64e41974c11a4cce1a54f6d7de0cc2d414199e0f5ec4c67c81957390b2146bf3
4
- data.tar.gz: d0c27ba90d2b5afe6f3da91840891a530f48f5ee6df28a5d1b68974fb4e83572
3
+ metadata.gz: 9e2c2edb2a21e1dc73f639fab1bd7b78eda9e0caeecd8597378c8f8b4c4f35c2
4
+ data.tar.gz: 8f98ddf47a36beebbc8c80b3da3fad5f0cfccfd0a0b491e81af13bf1f156e16f
5
5
  SHA512:
6
- metadata.gz: 67a8d37e7962e500accfbda1adfbc6b7ee5c70384d133fe6111fe02ee9e678a44c66aca0636d7617d76874378c6964c081e26cfee5acab871fc8a852090344f9
7
- data.tar.gz: 1787aadcd2206e1ca494f8e77f1cfa1c3a75d02c7b893d2aaadbf38b4160b5d4b95cd9b46ed9d3dda4e8a94a0826d0d6a78224d3a9a4e429b720dbc0e151c3aa
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.4"
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)
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - youhui