cocoapods-tdf-bin 0.0.36 → 0.0.39
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 +4 -4
- data/lib/cocoapods-tdf-bin/command/bin/auto.rb +1 -1
- data/lib/cocoapods-tdf-bin/command/bin/batch.rb +20 -1
- data/lib/cocoapods-tdf-bin/config/config_builder.rb +1 -1
- data/lib/cocoapods-tdf-bin/gem_version.rb +1 -1
- data/lib/cocoapods-tdf-bin/helpers/spec_creator.rb +1 -1
- data/lib/cocoapods-tdf-bin/helpers/spec_source_creator.rb +1 -1
- data/lib/cocoapods-tdf-bin/helpers/upload_helper.rb +1 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0faf19afca7d10afb537503d5a1e37b58cc0b0db8df5c81d7b7ef4982fe1b80
|
4
|
+
data.tar.gz: 15d283fd64825e2d464d8c02c943294db21c213eeccc19b7a8be42b922b6dad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fed83aadfb9316b14a17b0a67c7e6ae7a612fc31148389197ebe1192a716227ff9b9867daea6f0a0e5998ddc3cd0e28d3f68bd1bcd66c7f443c97a06205dde13
|
7
|
+
data.tar.gz: 3409a255e62fbf2ec0302c46baf48bd1286cb74b71dbb01045623c518e423627c117d449377605f15b212b288a7ab81e908f3ac8604f2e9669f206e7e03a6e2d
|
@@ -33,6 +33,10 @@ module Pod
|
|
33
33
|
|
34
34
|
def run
|
35
35
|
|
36
|
+
if @arguments.size == 2 && @arguments[0] == "find"
|
37
|
+
return Batch.find_repo_with_pods(@arguments[1])
|
38
|
+
end
|
39
|
+
|
36
40
|
podfile = File.join(Pathname.pwd, "Podfile")
|
37
41
|
podfile_instance = Pod::Podfile.from_file(podfile)
|
38
42
|
if podfile_instance.get_batch_local_pods == nil
|
@@ -130,7 +134,7 @@ module Pod
|
|
130
134
|
# 替换 podfile 中的local batch
|
131
135
|
re = / *batch_pod_local *\[([^\].]*)\], *".*"/
|
132
136
|
podfile = File.join(Pathname.pwd, "Podfile")
|
133
|
-
podfile_str = File.
|
137
|
+
podfile_str = File.r ead(podfile)
|
134
138
|
|
135
139
|
local_pod_str = podfile_str.match(re).to_s
|
136
140
|
local_pod_lines = local_pod_str.to_s.split("\n")
|
@@ -148,6 +152,21 @@ module Pod
|
|
148
152
|
puts "替换成功".tdf_blue
|
149
153
|
end
|
150
154
|
|
155
|
+
def self.find_repo_with_pods(pod_names)
|
156
|
+
# 检查字符串是否包含指定的子字符串
|
157
|
+
if pod_names.include?(",")
|
158
|
+
# 如果包含,就使用逗号分割成数组
|
159
|
+
split_array = pod_names.split(',')
|
160
|
+
pod_array = []
|
161
|
+
for pod_name in split_array
|
162
|
+
pod_array.append(find_repo_with_pod(pod_name))
|
163
|
+
end
|
164
|
+
return pod_array
|
165
|
+
else
|
166
|
+
return find_repo_with_pod(pod_names)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
151
170
|
def self.find_repo_with_pod(pod_name)
|
152
171
|
sources = Config.instance.sources_manager.all
|
153
172
|
sources = sources.select do |s|
|
@@ -48,7 +48,7 @@ module CBin
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def filename
|
51
|
-
@filename ||= "#{CBin::Config::Builder.instance.binary_json_dir_name}/#{spec.name}.
|
51
|
+
@filename ||= "#{CBin::Config::Builder.instance.binary_json_dir_name}/#{spec.name}.podspec.json"
|
52
52
|
end
|
53
53
|
|
54
54
|
private
|
@@ -68,12 +68,11 @@ EOF
|
|
68
68
|
def push_binary_repo(binary_podsepc_json)
|
69
69
|
argvs = [
|
70
70
|
"#{binary_podsepc_json}",
|
71
|
-
"--binary",
|
71
|
+
# "--binary",
|
72
72
|
"--sources=#{sources_option(@code_dependencies, @sources)}",
|
73
73
|
"--skip-import-validation",
|
74
74
|
"--use-libraries",
|
75
75
|
"--allow-warnings",
|
76
|
-
"--verbose",
|
77
76
|
"--code-dependencies"
|
78
77
|
]
|
79
78
|
if @verbose
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-tdf-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gaijiaofan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
170
|
+
rubygems_version: 3.1.4
|
171
171
|
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: cocoapods-tdf-bin is a plugin which helps develpers switching pods between
|