cocoapods-privacy 0.2.4 → 0.2.5

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: 84dcd18a25274964eb58ec048e74aeb77fa9560563a1c089aa1b5eb37a7f4786
4
- data.tar.gz: b11fdb0841dd2027f12ec1c4c922316cef4cfb90ac0c4dc9e925de065268df1c
3
+ metadata.gz: 17bcbadaa7fac402b93e8895f8122c527873f24c25698809657999163ad7a5b5
4
+ data.tar.gz: 511460533641f68349937f6b1bbb90ab65fe51eccc8eb2154eb41926169cf008
5
5
  SHA512:
6
- metadata.gz: 264a9de9c49a2a6966059b1f96034fc1921c0b39b14113cb2c328411b0b2ca4bf1f41da83793fa54c4d900706c6e711999444722a9fabfc508c41693d2381b47
7
- data.tar.gz: a1c20c1255a0d1b5761a8d9c2e6ef9498329ffeee2ce7fe6a9efcdc25fc3996190334034858c552af616089bcfb31de0b960530b5ee12de2ae91e8352b2f15a5
6
+ metadata.gz: cd028ae88664c51755d97bc79023e2eccf3245646dce468784197284a287ad525195e8a205cab60b8c36d9e46f3f88935627fa84f1e247e96c1efc72d5fa0841
7
+ data.tar.gz: a0ba51fe193e4415b1103e03401946acc3db965c594a990a34e1d24927404e583a4557fce182cd62a96f295b7841fc64bd4530572f65ba4d0773a50678540f94
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPrivacy
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -67,7 +67,14 @@ class BBSpec
67
67
  if !line.is_comment && line.key.include?(".resource_bundle")
68
68
  @has_resource_bundle = true
69
69
  elsif !line.is_comment && line.key.include?(".source_files")
70
- spec = eval("Pod::Spec.new do |s|; s.source_files = #{line.value}; end;")
70
+ begin
71
+ code = "Pod::Spec.new do |s|; s.source_files = #{line.value}; end;"
72
+ RubyVM::InstructionSequence.compile(code)
73
+ spec = eval(code)
74
+ rescue SyntaxError, StandardError => e
75
+ raise Pod::Informative, "source_files字段 不支持多行拼写,请修改成成单行格式,重新执行pod privacy spec 命令"
76
+ end
77
+
71
78
  if spec && !spec.attributes_hash['source_files'].nil?
72
79
  source_files_value = spec.attributes_hash['source_files']
73
80
  if source_files_value.is_a?(String) && !source_files_value.empty?
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.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - youhui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-08 00:00:00.000000000 Z
11
+ date: 2024-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler