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: 94168860cf706b12ecc89c41a75635f23e11f5afcf0b775ebf5f927a16ab6cef
4
- data.tar.gz: 8bf3705783a5023c2a6b9066029d9c8e1ec40c596101c0dcf832f5fda70b34de
3
+ metadata.gz: ce64995902a9af9f853ce1d4018748b714f47a771289f8da33b1c9827a0fef59
4
+ data.tar.gz: 7e7203d0324d3ccb00c1219fdbcf14edb32074f8d11099e1fe9d5b0117481ba4
5
5
  SHA512:
6
- metadata.gz: 1bfc8743f267c99b07afb734ef2584cd9c4ffe07960118fe2a4d2f8d82e2783dd86dd88dd716299f63ed3c373f1148d48900a9aeff24d8fef4a24257e99eecfc
7
- data.tar.gz: 2b42d00dcb94b13b9bbb35df5979762e65c6ba781d1f3bc16fdf7c80988c5213b96cf7df31c05b3219170f0c16953b9c0f33f8cb7f7e490f765afbf7d6779804
6
+ metadata.gz: 15cde8d4d59ac209bb6077aba1fd0f4fd05b84f63a34c4b1eb5400f2629062fd698d4160cb1fe53d15886eda618e949b15bfda03b801926f8c1ab31bd6753db8
7
+ data.tar.gz: e51e757e36de17ce7142d9b4fbefb3fc244d0f57ab9cb02302bde26a7e8ae749f013535574b5036082c2d8fc6fd0735a91c8939c461a626502fd652ea8f68cab
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPrivacy
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
@@ -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
- next if line.strip.empty? #忽略空行
229
- next if line.strip.start_with?('//') #忽略单行
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 line.include?(keyword)
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
- chars = line.chars
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 line.include?(keyword)
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.2
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-07 00:00:00.000000000 Z
11
+ date: 2024-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler