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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca71f9392e1d4099294842ab686e25e236ffb0cec657968350102f276a12a734
4
- data.tar.gz: 8faddea44ac0581ec05f487e8c0925b49263b935ec147f57622259d7f77fe23f
3
+ metadata.gz: a333cdd0595903ddc240cd7b9b059e6ed12529f178731150d53e8041f911d011
4
+ data.tar.gz: 22cccc56223e1aa0057e5053de00a7b173736c049539e35240af01f62322141d
5
5
  SHA512:
6
- metadata.gz: f8441dfe9b92a54706d2d6c7531988e016271cecba533c06464cbac54b02514e2d0ce5d2d3d2140e77e40480dffb2d0e6d5d1920f8bdd3c8b5c207b626b03d22
7
- data.tar.gz: 193dd9c57cc64e3fdf4546f136db8c8e1b4c78bac0ad607ff820484aac561a4ae746a0fb3f48cf0e09177142c71c0b6bce0de3345af1688d643669d69c88ba98
6
+ metadata.gz: fb676453c3e88985f93f5d686d0a313014c239b205ae19e3f7321230baa4e473c783805e551e58788801e88a74933807982142e29ab17caccbbfd57d148a1b72
7
+ data.tar.gz: 3ae406edc9c1933964e8991112eab4b9a58165ba3860dd4f29eece2e5d60782fd6455fc690e275b49738c3d6c3a1d435f93001e035a54441e85fbeb876196ba6
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = '1.0.5'
3
+ VERSION = '1.0.6'
4
4
  end
5
5
 
6
6
  module Pod
@@ -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.5
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