podfileDep 2.4.9 → 2.4.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/podfileDep/check/project.rb +12 -4
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep/yaml/yaml_dep.rb +5 -4
- data/lib/podfileDep/yaml/yaml_pod.rb +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1bb4022b21a25559de7d0713947b41268b939ab6365201c5c7893c6ad4cb671
|
4
|
+
data.tar.gz: a750ec5aa01e7213d7b648e256bd09a2e9d96ef98f658e788d6408ece49d4e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7224cccee0f8e5c44530a716bf2dd4f502f23d645e794bbc7618e3e6cc3f2fbc3a62d5e2e38cb155fca4ac5b0ca967e5728334156e14a9c561e134ae4afcd074
|
7
|
+
data.tar.gz: 5346eeea597e84fbdcdb67d31d3c847443064d02d65986e19493b1b4d0889a0204ef299dfb8aa566c2c037170489a275e800f5a61e44ad3b23fd82dd6abb8ec1
|
data/CHANGELOG.md
CHANGED
@@ -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
|
# 文件引用
|
@@ -155,9 +158,8 @@ module Xcodeproj
|
|
155
158
|
if source_file_item
|
156
159
|
extend_name = child.real_path.basename.extname
|
157
160
|
basename = child.real_path.basename
|
158
|
-
if basename == "#{module_name}.podspec" or basename == "#{module_name}.podspec.json"
|
161
|
+
if basename.to_s == "#{module_name}.podspec" or basename.to_s == "#{module_name}.podspec.json"
|
159
162
|
source_file_item.podspec_path = child.real_path
|
160
|
-
source_file_item.is_development_module = true
|
161
163
|
elsif source_file_extension.include?(extend_name)
|
162
164
|
source_file_item.source_files[child.real_path.basename.to_s] = child.real_path
|
163
165
|
if header_file_extension.include?(extend_name)
|
@@ -189,8 +191,14 @@ module Xcodeproj
|
|
189
191
|
local_spec = lock_content["EXTERNAL SOURCES"]
|
190
192
|
if local_spec and local_spec[module_name]
|
191
193
|
path = local_spec[module_name][:path]
|
192
|
-
|
193
|
-
|
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
|
194
202
|
end
|
195
203
|
end
|
196
204
|
|
data/lib/podfileDep/version.rb
CHANGED
@@ -336,10 +336,8 @@ module Pod
|
|
336
336
|
sort_deps = all_deps.sort do |arr1, arr2|
|
337
337
|
dep1 = arr1[1]
|
338
338
|
dep2 = arr2[1]
|
339
|
-
if dep1.
|
340
|
-
1
|
341
|
-
elsif not dep1.path and dep2.path
|
342
|
-
-1
|
339
|
+
if dep1.type != dep2.type
|
340
|
+
dep1.type < dep2.type ? 1 : -1
|
343
341
|
else
|
344
342
|
dep1.pod.downcase <=> dep2.pod.downcase
|
345
343
|
end
|
@@ -383,6 +381,9 @@ module Pod
|
|
383
381
|
branch = repo_branch(dependency.path)
|
384
382
|
modify = repo_modify(dependency.path)
|
385
383
|
puts puts_result.cyan + branch.magenta + modify.magenta
|
384
|
+
|
385
|
+
elsif dependency.branch
|
386
|
+
puts "[!] #{puts_result}"
|
386
387
|
else
|
387
388
|
puts puts_result
|
388
389
|
end
|
@@ -18,6 +18,7 @@ module Pod
|
|
18
18
|
attr_accessor :inhibit_warnings
|
19
19
|
attr_accessor :source
|
20
20
|
attr_accessor :binary
|
21
|
+
attr_reader :type
|
21
22
|
|
22
23
|
def option
|
23
24
|
result = {:configurations => self.configurations,
|
@@ -40,5 +41,21 @@ module Pod
|
|
40
41
|
end
|
41
42
|
result
|
42
43
|
end
|
44
|
+
|
45
|
+
def type
|
46
|
+
if self.path and self.path.size > 0
|
47
|
+
0
|
48
|
+
elsif self.branch and self.branch.size > 0
|
49
|
+
return 1
|
50
|
+
elsif self.podspec and self.podspec.size > 0
|
51
|
+
return 2
|
52
|
+
elsif self.version and self.version.size > 0
|
53
|
+
return 3
|
54
|
+
elsif self.tag and self.tag.size > 0
|
55
|
+
return 4
|
56
|
+
else
|
57
|
+
0
|
58
|
+
end
|
59
|
+
end
|
43
60
|
end
|
44
61
|
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.
|
4
|
+
version: 2.4.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 王帅朋
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|