podfileDep 2.1.4 → 2.1.5

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: 9b307485990dd6f82f244290afb72f4cf37799311bee29b775760c1dc3d2bfb5
4
- data.tar.gz: 5be9dcca047f6f9167c79fe24e146ba3ce17ffca75c0e2e1a6bbc010af85aa5e
3
+ metadata.gz: 836193a1245b8fa2e3d40f0385557c15f9fba4be89de0434dd5a5cf0ad0c248c
4
+ data.tar.gz: 1ba4d4138d17c6c9372264ee9bc817135d38604636adafba1b927a4c835cffaa
5
5
  SHA512:
6
- metadata.gz: 1bb93659b414f9d33c19c7741c020e475b39e3c15b913f5e221ce7157e773c1f218d62518547a961ece3fc2ff20b0304c77751d60c3e1c39c911f00f08f9d979
7
- data.tar.gz: 270ee21f3ecc998b145ae82693ee985fbce4f1cd4ee6cf00dc6f48f685ac2d91114c59fd2e3e9b1d36da4d65e2256444b3c93715a8a3be4050af87631ad4ebcf
6
+ metadata.gz: 2e95518e907348fed5af271d87cf006ed0ada275706f00bd4f98eae4fa6a4467c49bb949f5d2fd96c6424268667e035ecc65f6361a273a7cdc99d07c67caf4ee
7
+ data.tar.gz: 1239b1d3f7d880cf0167686700be40227f87ce83db74fecf7a9dfe63ad7e763418378bb2a9b059ad5e95797013a79e87fc0f7bf4a167d48081ffb7f633f59222
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  ## [Released]
2
2
 
3
- ### [2.1.4] - 2023-6-19
3
+ ### [2.1.4] - 2023-6-20
4
+ - 兼容同时支持subspec和configurations
5
+
6
+ ### [2.1.4] - 2023-6-20
4
7
  - 修复空异常
5
8
 
6
9
  ### [2.1.3] - 2023-6-19
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.1.4"
4
+ VERSION = "2.1.5"
5
5
  end
@@ -5,21 +5,9 @@ require_relative '../check/xcodeproj'
5
5
  module Pod
6
6
 
7
7
  class YamlRely
8
- attr_reader :pod, :subspecs, :version, :git, :tag, :branch, :podspec, :configurations, :path, :inhibit_warnings, :source, :binary
9
- def initialize(module_name, pod, subspecs, path, podspec, version, git, tag, branch, configurations, inhibit_warnings, source, binary)
10
- @module_name = module_name
8
+ attr_accessor :module_name, :pod, :subspecs, :version, :git, :tag, :branch, :podspec, :configurations, :path, :inhibit_warnings, :source, :binary
9
+ def initialize(pod)
11
10
  @pod = pod
12
- @subspecs = subspecs
13
- @path = path
14
- @podspec = podspec
15
- @version = version
16
- @git = git
17
- @tag = tag
18
- @branch = branch
19
- @configurations = configurations
20
- @inhibit_warnings = inhibit_warnings
21
- @source = source
22
- @binary = binary
23
11
  end
24
12
 
25
13
  def option
@@ -177,7 +165,7 @@ module Pod
177
165
  exit!
178
166
  end
179
167
 
180
- return yaml_content
168
+ yaml_content
181
169
 
182
170
  end
183
171
 
@@ -298,21 +286,40 @@ module Pod
298
286
  self.local_yaml_deps << dependency['pod']
299
287
  end
300
288
 
301
- # 生成依赖对象
302
- dependency = YamlRely.new(module_name = dependency['module'],
303
- pod = dependency['pod'],
304
- subspecs = dependency['subspecs'],
305
- path = dependency['path'],
306
- podspec = dependency['podspec'],
307
- version = version,
308
- git = dependency['git'],
309
- tag = dependency['tag'],
310
- branch = dependency['branch'],
311
- configurations = dependency['configurations'],
312
- inhibit_warnings = inhibit_warnings,
313
- source = source,
314
- binary = binary)
315
- yaml_dependencies[dependency.pod] = dependency
289
+ if Array(dependency['subspecs']).size > 0 and Array(dependency['configurations']).size > 0
290
+ dependency['subspecs'].each {|subspec|
291
+ dep = YamlRely.new(pod = "#{dependency['pod']}/#{subspec}")
292
+ dep.module_name = dependency['module']
293
+ dep.subspecs = nil
294
+ dep.path = dependency['path']
295
+ dep.podspec = dependency['podspec']
296
+ dep.version = version
297
+ dep.git = dependency['git']
298
+ dep.tag = dependency['tag']
299
+ dep.branch = dependency['branch']
300
+ dep.configurations = dependency['configurations']
301
+ dep.inhibit_warnings = inhibit_warnings
302
+ dep.source = source
303
+ dep.binary = binary
304
+ yaml_dependencies[dep.pod] = dep
305
+ }
306
+
307
+ else
308
+ dep = YamlRely.new(pod = dependency['pod'])
309
+ dep.module_name = dependency['module']
310
+ dep.subspecs = dependency['subspecs']
311
+ dep.path = dependency['path']
312
+ dep.podspec = dependency['podspec']
313
+ dep.version = version
314
+ dep.git = dependency['git']
315
+ dep.tag = dependency['tag']
316
+ dep.branch = dependency['branch']
317
+ dep.configurations = dependency['configurations']
318
+ dep.inhibit_warnings = inhibit_warnings
319
+ dep.source = source
320
+ dep.binary = binary
321
+ yaml_dependencies[dep.pod] = dep
322
+ end
316
323
  }
317
324
 
318
325
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podfileDep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋