podfileDep 2.4.8 → 2.4.10

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: 50f01dc516550ba9b623d8ec2621040ee100511cf33d47969906bcf38e18d08b
4
- data.tar.gz: 193160bfc215c33c3e9be06f3c1558d5b9510d998c8aa72be943ccb19f569e0e
3
+ metadata.gz: 46e13acf0eb51b18b18bb5dc151bf3023b2ba147e3afbc50ceb1c5d0f6f7691f
4
+ data.tar.gz: 236f040f1d6b2e1b4571b0120c0f1f50d04e7a965d6162b70337b0501db75784
5
5
  SHA512:
6
- metadata.gz: 487fb9ba214b062a5d4e205468eeca31b6ed98d3c649ea4629c4aa542fe30a00e31b5b94b7a17d2a176207f928e798aadfb109abee125e564c7113f46d12f7ad
7
- data.tar.gz: 2d166c6a809ac33c8d47f557666763b1c40aac52f43866bd7a1056d417edf318de0ddb7321c891b6bb06537384db96a76133dbc7b9e77386b05f2c5b6ee881e6
6
+ metadata.gz: 04a92fc2f87446f81d8b29a03e433f7d002e07d6ea5a026d2ea3db966b02a7e07d3e5127178e466036073e687fcc162934a22de96e6f3a5a917dd5d76f3f2d8a
7
+ data.tar.gz: 65ec2bf6cf721efcd1acb2944b29c603125c8b9257acec5ed82cf36b57ae9e029deee408b3817b7260837ba2ab3ec71e5ea29768a5aff36994728def20436633
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Released]
2
2
 
3
+ ### [2.4.10] - 2023-08-02
4
+ - 修复开发模块读取podspec路径错误的问题
5
+
6
+ ### [2.4.9] - 2023-08-02
7
+ - 修复读取podspec路径错误的问题
8
+
3
9
  ### [2.4.8] - 2023-7-31
4
10
  - podspec检查 开关配置
5
11
 
@@ -122,6 +122,9 @@ module Xcodeproj
122
122
  if group_hierarchy_path_array.size == 3
123
123
  source_file_item.module_path = group.real_path
124
124
  end
125
+ if group_hierarchy_path_array.include?("Development Pods")
126
+ source_file_item.is_development_module = true
127
+ end
125
128
  end
126
129
 
127
130
  # 文件引用
@@ -154,9 +157,9 @@ module Xcodeproj
154
157
 
155
158
  if source_file_item
156
159
  extend_name = child.real_path.basename.extname
157
- if extend_name == ".podspec" or extend_name == ".podspec.json"
160
+ basename = child.real_path.basename
161
+ if basename.to_s == "#{module_name}.podspec" or basename.to_s == "#{module_name}.podspec.json"
158
162
  source_file_item.podspec_path = child.real_path
159
- source_file_item.is_development_module = true
160
163
  elsif source_file_extension.include?(extend_name)
161
164
  source_file_item.source_files[child.real_path.basename.to_s] = child.real_path
162
165
  if header_file_extension.include?(extend_name)
@@ -188,8 +191,14 @@ module Xcodeproj
188
191
  local_spec = lock_content["EXTERNAL SOURCES"]
189
192
  if local_spec and local_spec[module_name]
190
193
  path = local_spec[module_name][:path]
191
- if path
192
- return Pathname(path).expand_path
194
+ podspec_path = "#{path}/#{module_name}.podspec"
195
+ podspec_json_path = "#{path}/#{module_name}.podspec.json"
196
+ if File.exist?(podspec_path)
197
+ return Pathname(podspec_path).expand_path
198
+ elsif File.exist?(podspec_json_path)
199
+ return Pathname(podspec_json_path).expand_path
200
+ else
201
+ return nil
193
202
  end
194
203
  end
195
204
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.4.8"
4
+ VERSION = "2.4.10"
5
5
  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.8
4
+ version: 2.4.10
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