cocoapods-tdf-bin 0.0.36 → 0.0.39

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: dd67346e94e4af13df45f90c0244574283f632a138c490472ba5fd8c75832209
4
- data.tar.gz: 74fef89df21a834c66e45bf7182d1f6e1ba72e4ab22e83d6f9427e0acab62ae0
3
+ metadata.gz: a0faf19afca7d10afb537503d5a1e37b58cc0b0db8df5c81d7b7ef4982fe1b80
4
+ data.tar.gz: 15d283fd64825e2d464d8c02c943294db21c213eeccc19b7a8be42b922b6dad6
5
5
  SHA512:
6
- metadata.gz: 9939a330c1e6e324c16884fa984602f7ea569637584dfd95864b2840bd4854d281559a9cfe4aebbd90caf5b1bd0a137735d46097cd43794e99ba7ab8f83e56ba
7
- data.tar.gz: 38e2ca0228d7b237c9368ee3c83ea639803a5078fd6bd57a0745082a37ccf9cb444da778fc367ebe1e88cbec74ea273aa3db4c7da8e6b53b3082749efcc7e4a3
6
+ metadata.gz: fed83aadfb9316b14a17b0a67c7e6ae7a612fc31148389197ebe1192a716227ff9b9867daea6f0a0e5998ddc3cd0e28d3f68bd1bcd66c7f443c97a06205dde13
7
+ data.tar.gz: 3409a255e62fbf2ec0302c46baf48bd1286cb74b71dbb01045623c518e423627c117d449377605f15b212b288a7ab81e908f3ac8604f2e9669f206e7e03a6e2d
@@ -154,7 +154,7 @@ module Pod
154
154
  end
155
155
 
156
156
  def binary_podsepc_json
157
- "#{@specification.name}.binary.podspec.json"
157
+ "#{@specification.name}.podspec.json"
158
158
  end
159
159
 
160
160
  def binary_template_podsepc
@@ -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.read(podfile)
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|
@@ -126,7 +126,7 @@ module CBin
126
126
 
127
127
  def binary_json_dir
128
128
  @binary_json_dir ||= begin
129
- dir = File.join(root_dir,binary_json_dir_name)
129
+ dir = File.join(root_dir, binary_json_dir_name)
130
130
  Dir.mkdir(dir) unless File.exist?dir
131
131
  Pathname.new(dir)
132
132
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = "0.0.36"
3
+ VERSION = "0.0.39"
4
4
  end
5
5
 
6
6
  module Pod
@@ -48,7 +48,7 @@ module CBin
48
48
  end
49
49
 
50
50
  def filename
51
- @filename ||= "#{spec.name}.binary.podspec.json"
51
+ @filename ||= "#{spec.name}.podspec.json"
52
52
  end
53
53
 
54
54
  private
@@ -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}.binary.podspec.json"
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.36
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-06-26 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