podfileDep 2.4.7 → 2.4.9

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: a72e362862ffcb0df4f368b42c26bd9243c58b8d37745d740dbbc904b7ddc9fa
4
- data.tar.gz: 2822d54b72b52d38e751b7730959895309a025dc971e94e32441e159ebc31d78
3
+ metadata.gz: 87c081de3be2c3b0512df6ce9dd56529a9a439c029d42b40fb0828d0c2597caf
4
+ data.tar.gz: 533aeacfd5ba972e6c33a44dd4b73527fe10d35aff84a60656916413f25ad30d
5
5
  SHA512:
6
- metadata.gz: 5cff058b4523a748e6cbfc3aa0d752f69afecfcc6bbcdc1cf23857af51bb20d8fe94d89a9f4f89816b3681190513c8eb1676112a7bca9e718021097cae81ced0
7
- data.tar.gz: 9525997dda169ac0c1dae468d3688b7ad3f1afb8154524c8d0e4ffe8817e8e5d64ae37b727a47b32fd2e6b228ae870e3fd1af097e4db5e92c9461b6d83179961
6
+ metadata.gz: b4a4246b66260a06ebbe4dd47747bfad51670f243de72f662916be3e847b1ea55000984cc7208d605b88e5f50d86fe5024aabc98d175af2a603b1a5c7a06a960
7
+ data.tar.gz: e816ae19981c30b3ea276ae7689ca9d1360651175d62e8b91123b7146e99b7afc1adf0939838a272a0eef12820bff458843c7822610f077f245f74f91aa333cf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Released]
2
2
 
3
+ ### [2.4.9] - 2023-08-02
4
+ - 修复读取podspec路径错误的问题
5
+
6
+ ### [2.4.8] - 2023-7-31
7
+ - podspec检查 开关配置
8
+
3
9
  ### [2.4.7] - 2023-7-31
4
10
  - 依赖库检测问题修复
5
11
 
@@ -15,6 +15,12 @@ module Xcodeproj
15
15
 
16
16
  # 检查podspec文件
17
17
  def check_podspec
18
+
19
+ yaml_dep = Pod::YamlDep.new
20
+ if yaml_dep.disable_check_podspec
21
+ return
22
+ end
23
+
18
24
  puts "podspec文件检查中..."
19
25
  start = (Time.now.to_f * 1000).to_i
20
26
  module_count = 0
@@ -154,7 +154,8 @@ module Xcodeproj
154
154
 
155
155
  if source_file_item
156
156
  extend_name = child.real_path.basename.extname
157
- if extend_name == ".podspec" or extend_name == ".podspec.json"
157
+ basename = child.real_path.basename
158
+ if basename == "#{module_name}.podspec" or basename == "#{module_name}.podspec.json"
158
159
  source_file_item.podspec_path = child.real_path
159
160
  source_file_item.is_development_module = true
160
161
  elsif source_file_extension.include?(extend_name)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.4.7"
4
+ VERSION = "2.4.9"
5
5
  end
@@ -529,5 +529,15 @@ module Pod
529
529
  quick1 or $quick_build
530
530
  end
531
531
 
532
+ #是否禁用检查podspec文件
533
+ def disable_check_podspec
534
+ yaml_content = read_yaml_content(podfile_local_yaml)
535
+ disable_check_podspec = yaml_content ? !!(yaml_content["DISABLE_CHECK_PODSPEC"]) : false
536
+ if disable_check_podspec
537
+ puts "已关闭podspec文件检查,如需开启,请在#{podfile_local_yaml}里设置DISABLE_CHECK_PODSPEC为false"
538
+ end
539
+ disable_check_podspec
540
+ end
541
+
532
542
  end
533
543
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podfileDep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.7
4
+ version: 2.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-31 00:00:00.000000000 Z
11
+ date: 2023-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods