cocoapods-privacy 0.0.1 → 0.0.3

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: 75f110acdd889169f011bfa5508d1941cdaccf78ce5dcb43bc51dd79236e793f
4
- data.tar.gz: 9db44f1ca04a5991000862935336ba4d1ebbb96508c2e6b2d0877a5d21f5f1d5
3
+ metadata.gz: 2dd33a12851ad8910f340c85839e7110e567c04ee2531b8cdb29042a53c16fcc
4
+ data.tar.gz: 2867496cf2297f46178f88eaba4f1a85531a8dcbd1ea3f95c3d033a89908710f
5
5
  SHA512:
6
- metadata.gz: adca9245bb2e2feef01acf8f5215f933b3bd89a97cfd279494e9d0c0f6edc92b82d2daf1b86e8b439e5c7ae1ce0746cb3b67100fdcc23c390ee339bee56d8d60
7
- data.tar.gz: a313ab80c11f3479da5f173de9179aae6498d677289e05e0674ffecb089aa6c7905856c061539a5cb1d9add0c418959362edef520a14c2386566ef64fb11a1cc
6
+ metadata.gz: c6601692be2b397a4bbdd8680448799de88a80680be198403849b4453821327f9b017a667f1b5d9606d4ed4d24ca1fd49f1e8a93c767a42a36225932d4d4da09
7
+ data.tar.gz: f03fae4e472d36e6ef2ab02c962a4be841af1c219335de250d01fb8e66292389394f4640e43c52497abc8948b343adb3e3cf86823362417f933af59efe8ed411
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPrivacy
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -75,7 +75,7 @@ module PrivacyHunter
75
75
 
76
76
  # 检查新数据和原先数据是否一致
77
77
  if origin_privacy_data.strip == new_privacy_data.strip
78
- puts "NSPrivacyAccessedAPITypes 数据一致,无需插入。"
78
+ puts "#{privacy_path} 数据一致,无需插入。"
79
79
  else
80
80
  unless origin_privacy_data.strip.empty?
81
81
  # 删除 :NSPrivacyAccessedAPITypes 键
@@ -119,11 +119,10 @@ module PrivacyHunter
119
119
 
120
120
  # 判断本地文件的最后修改时间是否与远端文件一致,如果一致则不进行下载
121
121
  if File.exist?(local_file_path) && file_identical?(local_file_path, remote_file_time)
122
- puts "本地文件与远端文件一致,无需下载。文件路径: #{local_file_path}"
123
122
  else
124
123
  # 使用 curl 下载文件
125
124
  system("curl -o #{local_file_path} #{template_url}")
126
- puts "文件已下载到: #{local_file_path}"
125
+ puts "隐私清单模版文件已更新到: #{local_file_path}"
127
126
 
128
127
  # 同步远程文件时间到本地文件
129
128
  syncFileTime?(local_file_path,remote_file_time)
@@ -8,7 +8,7 @@ module PrivacyUtils
8
8
 
9
9
  # 通过是否包含podspec 来判断是否为主工程
10
10
  def self.isMainProject
11
- !(podspec_file_path && !podspec_file_path.empty)
11
+ !(podspec_file_path && !podspec_file_path.empty?)
12
12
  end
13
13
 
14
14
  # 查找podspec
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.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - youhui