cocoapods-privacy 0.5.2 → 0.5.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce64995902a9af9f853ce1d4018748b714f47a771289f8da33b1c9827a0fef59
|
|
4
|
+
data.tar.gz: 7e7203d0324d3ccb00c1219fdbcf14edb32074f8d11099e1fe9d5b0117481ba4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15cde8d4d59ac209bb6077aba1fd0f4fd05b84f63a34c4b1eb5400f2629062fd698d4160cb1fe53d15886eda618e949b15bfda03b801926f8c1ab31bd6753db8
|
|
7
|
+
data.tar.gz: e51e757e36de17ce7142d9b4fbefb3fc244d0f57ab9cb02302bde26a7e8ae749f013535574b5036082c2d8fc6fd0735a91c8939c461a626502fd652ea8f68cab
|
|
@@ -225,11 +225,13 @@ module PrivacyHunter
|
|
|
225
225
|
in_block_comment_count = 0
|
|
226
226
|
in_block_comment = false
|
|
227
227
|
lines.each do |line|
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
|
|
229
|
+
line_scrub = line.scrub("")
|
|
230
|
+
next if line_scrub.strip.empty? #忽略空行
|
|
231
|
+
next if line_scrub.strip.start_with?('//') #忽略单行
|
|
230
232
|
|
|
231
233
|
apis.each do |keyword, value|
|
|
232
|
-
if
|
|
234
|
+
if line_scrub.include?(keyword)
|
|
233
235
|
apis_found[keyword] = value
|
|
234
236
|
end
|
|
235
237
|
end
|
|
@@ -252,10 +254,12 @@ module PrivacyHunter
|
|
|
252
254
|
count_comments = 0
|
|
253
255
|
|
|
254
256
|
lines.each do |line|
|
|
255
|
-
next if line.strip.empty? #忽略空行
|
|
256
|
-
next if line.strip.start_with?('//') && !in_block_comment #忽略单行
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
line_scrub = line.scrub("")
|
|
259
|
+
next if line_scrub.strip.empty? #忽略空行
|
|
260
|
+
next if line_scrub.strip.start_with?('//') && !in_block_comment #忽略单行
|
|
261
|
+
|
|
262
|
+
chars = line_scrub.chars
|
|
259
263
|
index = 0
|
|
260
264
|
while index < chars.size
|
|
261
265
|
char = chars[index]
|
|
@@ -308,7 +312,7 @@ module PrivacyHunter
|
|
|
308
312
|
|
|
309
313
|
if !in_block_comment && !in_line_comment
|
|
310
314
|
apis.each do |keyword, value|
|
|
311
|
-
if
|
|
315
|
+
if line_scrub.include?(keyword)
|
|
312
316
|
apis_found[keyword] = value
|
|
313
317
|
end
|
|
314
318
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-privacy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- youhui
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-04-
|
|
11
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|