cocoapods-tj 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-tj/gem_version.rb +1 -1
- data/lib/cocoapods-tj/native/resolver.rb +27 -24
- 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: a333cdd0595903ddc240cd7b9b059e6ed12529f178731150d53e8041f911d011
|
4
|
+
data.tar.gz: 22cccc56223e1aa0057e5053de00a7b173736c049539e35240af01f62322141d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb676453c3e88985f93f5d686d0a313014c239b205ae19e3f7321230baa4e473c783805e551e58788801e88a74933807982142e29ab17caccbbfd57d148a1b72
|
7
|
+
data.tar.gz: 3ae406edc9c1933964e8991112eab4b9a58165ba3860dd4f29eece2e5d60782fd6455fc690e275b49738c3d6c3a1d435f93001e035a54441e85fbeb876196ba6
|
@@ -80,9 +80,6 @@ module Pod
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
# >= 1.4.0 才有 resolver_specs_by_target 以及 ResolverSpecification
|
84
|
-
# >= 1.5.0 ResolverSpecification 才有 source,供 install 或者其他操作时,输入 source 变更
|
85
|
-
#
|
86
83
|
if Pod.match_version?('~> 1.4')
|
87
84
|
old_resolver_specs_by_target = instance_method(:resolver_specs_by_target)
|
88
85
|
define_method(:resolver_specs_by_target) do
|
@@ -103,27 +100,28 @@ module Pod
|
|
103
100
|
end
|
104
101
|
|
105
102
|
specs_by_target[target] = rspecs.map do |rspec|
|
103
|
+
sepc_path = rspec.spec.defined_in_file.dirname.to_s
|
104
|
+
if !sepc_path.include?("Pods/Local")
|
106
105
|
|
106
|
+
use_binary = use_binary_rspecs.include?(rspec)
|
107
|
+
source = use_binary ? sources_manager.binary_source : sources_manager.code_source
|
107
108
|
|
108
|
-
|
109
|
-
source = use_binary ? sources_manager.binary_source : sources_manager.code_source
|
109
|
+
spec_version = rspec.spec.version
|
110
110
|
|
111
|
-
|
111
|
+
begin
|
112
|
+
specification = source.specification(rspec.root.name, spec_version)
|
113
|
+
UI.message "#{rspec.root.name} #{spec_version} \r\n specification =#{specification} "
|
114
|
+
if rspec.spec.subspec?
|
115
|
+
specification = specification.subspec_by_name(rspec.name, false, true)
|
116
|
+
end
|
112
117
|
|
113
|
-
|
114
|
-
specification = source.specification(rspec.root.name, spec_version)
|
115
|
-
UI.message "#{rspec.root.name} #{spec_version} \r\n specification =#{specification} "
|
116
|
-
if rspec.spec.subspec?
|
117
|
-
specification = specification.subspec_by_name(rspec.name, false, true)
|
118
|
-
end
|
119
|
-
|
120
|
-
next unless specification
|
118
|
+
next unless specification
|
121
119
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
120
|
+
used_by_only = if Pod.match_version?('~> 1.7')
|
121
|
+
rspec.used_by_non_library_targets_only
|
122
|
+
else
|
123
|
+
rspec.used_by_tests_only
|
124
|
+
end
|
127
125
|
|
128
126
|
rspec = if Pod.match_version?('~> 1.4.0')
|
129
127
|
ResolverSpecification.new(specification, used_by_only)
|
@@ -131,17 +129,22 @@ module Pod
|
|
131
129
|
ResolverSpecification.new(specification, used_by_only, source)
|
132
130
|
end
|
133
131
|
|
134
|
-
|
132
|
+
# end
|
133
|
+
|
134
|
+
rescue Pod::StandardError => e
|
135
135
|
|
136
|
-
|
136
|
+
# missing_binary_specs << rspec.spec if use_binary
|
137
|
+
missing_binary_specs << rspec.spec
|
138
|
+
rspec
|
139
|
+
end
|
137
140
|
|
138
|
-
# missing_binary_specs << rspec.spec if use_binary
|
139
|
-
missing_binary_specs << rspec.spec
|
140
141
|
rspec
|
142
|
+
|
141
143
|
end
|
142
144
|
|
143
|
-
|
145
|
+
|
144
146
|
end.compact
|
147
|
+
print ""
|
145
148
|
end
|
146
149
|
|
147
150
|
if missing_binary_specs.any?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-tj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- song
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|