cocoapods-tdf-bin 0.0.37 → 0.0.40

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: faced035585d03bace6efe36e6fd93021d3895f836c1261b9d313ebb2e8c5c35
4
- data.tar.gz: e09f93829baadbd590ab7f0d3850bc00f4fdd6152a836845e7ef3e127357c3aa
3
+ metadata.gz: 11d475d02742832bec08af83fd5e8e8b057c8116bca268ef6e63c7cb7bd70e5a
4
+ data.tar.gz: 2dca7393d763565373dc80403813271bab227a2854074112ce78eec80d3cfaf9
5
5
  SHA512:
6
- metadata.gz: 8f41494fec776bf644404fe3a8fd9763f797bee22d79885b8208e68f9e41d9b6f55f3013d59071ff1527a62261d0b2ba0f4b84bf36d0b618669f03156c8bb5a5
7
- data.tar.gz: ff6677e692a3cb0c419b1550b345248c6406d11c8dd614290cf971268d4a1dd1e7a3a2a06590b69e8a570800980f34003b2c49d5ef7a2ecb781aa4bd2db876e6
6
+ metadata.gz: 0655a646146e3c480358ed1f31d310e447f8bc8a65b9b34161b4f2d6a9c885e940ae8b1f4136b63f0c687521a7a7e3689f8eda78320c02cbee6aff8bcf788547
7
+ data.tar.gz: 1e8729e205aaf540b793bf6ee513502115bb84bc56284b2ba721c3105bf8f91e274838e3591969afbd547dbba6eb946f0c641d09167b423a0bf7d7f889d607d5
@@ -33,6 +33,12 @@ module Pod
33
33
 
34
34
  def run
35
35
 
36
+ if @arguments.size == 2 && @arguments[0] == "find"
37
+ res = Batch.find_repo_with_pods(@arguments[1])
38
+ puts res.join(",")
39
+ return
40
+ end
41
+
36
42
  podfile = File.join(Pathname.pwd, "Podfile")
37
43
  podfile_instance = Pod::Podfile.from_file(podfile)
38
44
  if podfile_instance.get_batch_local_pods == nil
@@ -130,7 +136,7 @@ module Pod
130
136
  # 替换 podfile 中的local batch
131
137
  re = / *batch_pod_local *\[([^\].]*)\], *".*"/
132
138
  podfile = File.join(Pathname.pwd, "Podfile")
133
- podfile_str = File.read(podfile)
139
+ podfile_str = File.r ead(podfile)
134
140
 
135
141
  local_pod_str = podfile_str.match(re).to_s
136
142
  local_pod_lines = local_pod_str.to_s.split("\n")
@@ -148,6 +154,21 @@ module Pod
148
154
  puts "替换成功".tdf_blue
149
155
  end
150
156
 
157
+ def self.find_repo_with_pods(pod_names)
158
+ # 检查字符串是否包含指定的子字符串
159
+ if pod_names.include?(",")
160
+ # 如果包含,就使用逗号分割成数组
161
+ split_array = pod_names.split(',')
162
+ pod_array = []
163
+ for pod_name in split_array
164
+ pod_array.append(find_repo_with_pod(pod_name))
165
+ end
166
+ return pod_array
167
+ else
168
+ return find_repo_with_pod(pod_names)
169
+ end
170
+ end
171
+
151
172
  def self.find_repo_with_pod(pod_name)
152
173
  sources = Config.instance.sources_manager.all
153
174
  sources = sources.select do |s|
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = "0.0.37"
3
+ VERSION = "0.0.40"
4
4
  end
5
5
 
6
6
  module Pod
@@ -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.37
4
+ version: 0.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - gaijiaofan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-29 00:00:00.000000000 Z
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.2.11
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