cocoapods-tj 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7d03903663bb1d8e65c11fe2578048affc8f94bbd1f501cde8c9e66fcf645cb
4
- data.tar.gz: fc590a8ca824c19ced34ac0dabe945c99be7b8c71a84bb0a29c2448edb78c4f7
3
+ metadata.gz: a333cdd0595903ddc240cd7b9b059e6ed12529f178731150d53e8041f911d011
4
+ data.tar.gz: 22cccc56223e1aa0057e5053de00a7b173736c049539e35240af01f62322141d
5
5
  SHA512:
6
- metadata.gz: d67d358466a9b84bc987183e23a3465655771a93c1bffd45219da32dcc7d43365fe699d7de1c5b9f654a3ab169e350955fc32585cc40cc51576b41fece1772ee
7
- data.tar.gz: 15e6bc19feb63787c6a78800e9b769414ce9223a6097c56f4c7509bf3b7369316e8d421ea4e4e9c4f46c6b8cc613bb57cfffa827bdf6359a8605119489ccd1a4
6
+ metadata.gz: fb676453c3e88985f93f5d686d0a313014c239b205ae19e3f7321230baa4e473c783805e551e58788801e88a74933807982142e29ab17caccbbfd57d148a1b72
7
+ data.tar.gz: 3ae406edc9c1933964e8991112eab4b9a58165ba3860dd4f29eece2e5d60782fd6455fc690e275b49738c3d6c3a1d435f93001e035a54441e85fbeb876196ba6
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.6'
4
4
  end
5
5
 
6
6
  module Pod
@@ -11,7 +11,8 @@ module Pod
11
11
  alias old_create_pod_installer create_pod_installer
12
12
  def create_pod_installer(pod_name)
13
13
  installer = old_create_pod_installer(pod_name)
14
- installer.installation_options = installation_options
14
+ #报错,暂时先注释掉
15
+ # installer.installation_options = installation_options
15
16
  installer
16
17
  end
17
18
 
@@ -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
- use_binary = use_binary_rspecs.include?(rspec)
109
- source = use_binary ? sources_manager.binary_source : sources_manager.code_source
109
+ spec_version = rspec.spec.version
110
110
 
111
- spec_version = rspec.spec.version
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
- begin
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
- used_by_only = if Pod.match_version?('~> 1.7')
123
- rspec.used_by_non_library_targets_only
124
- else
125
- rspec.used_by_tests_only
126
- end
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
- # end
132
+ # end
133
+
134
+ rescue Pod::StandardError => e
135
135
 
136
- rescue Pod::StandardError => e
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
- rspec
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
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-01-13 00:00:00.000000000 Z
11
+ date: 2023-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel