podfileDep 2.5.0 → 2.5.1

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: d89d9dfc45b3a0caadf586188217e177bb1be3e88fe40dab76c22e1c1b9a1624
4
- data.tar.gz: b163912a179d82e2b6fc69d8f92ff5d00b88e77cb62d939efe59cea80348379b
3
+ metadata.gz: 8e0770a395f64dadc1043ac8c872b0283932ec9df1f98ec1f03b8f75c08f2401
4
+ data.tar.gz: '09aac9c5e18ab596663daa3986f26fb6fda42b78acbb74465619d7df60b5edae'
5
5
  SHA512:
6
- metadata.gz: 4dcf6f990ef7e12bd257c0f88b75e76e87f1b004c444773adcba038c4b5399bfcad977f8f95877b313419dec467185c6eadaff0ea8065fd1c02a7a53e759dbd6
7
- data.tar.gz: ed88a764eb249498ab8cbcce9416fd5b09014ff0e6e05f7e535f3414cafa1106a7eb75311668d9d107a1e8662a0e60071dc0238cac8059f01f8c833d7626d9b1
6
+ metadata.gz: 1f80f6201b3c24461a5af0e72c426b00bdc25fa3e693118407e7cff3fba0c1f4e4bf19ea83c3e1f23d9329d2760826061b85ed6e754eb27a495b3c271f029b03
7
+ data.tar.gz: e83d8240305ded4c585cfecc849b7d856d93c3064213b3a90bcc59abcda56c3118243863e4851cffb9c0d2fe0d1cc5173c7e20f387e3dcb7e4849fa4244edc03
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  ## [Released]
2
+ ### [2.5.1] - 2023-08-24
3
+ - 修复【pod时将所有的target名字都放出来给外部】同时podfile又写target的问题
2
4
 
3
5
  ### [2.5.0] - 2023-08-22
4
6
  - pod时将所有的target名字都放出来给外部
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.5.0"
4
+ VERSION = "2.5.1"
5
5
  end
@@ -51,14 +51,18 @@ module Pod
51
51
  # 存储所有的依赖
52
52
  targets_dependencies.each { |target_obj, dependencies|
53
53
  target_name = target_obj.name
54
- podfile.target target_name do
55
- dependencies.each { |dependency|
56
- if dependency.version
57
- podfile.pod dependency.pod, dependency.version, dependency.option
58
- else
59
- podfile.pod dependency.pod, dependency.option
60
- end
61
- }
54
+ if dependencies.size > 0
55
+ podfile.target target_name do
56
+ dependencies.each { |dependency|
57
+ if dependency.version
58
+ podfile.pod dependency.pod, dependency.version, dependency.option
59
+ else
60
+ podfile.pod dependency.pod, dependency.option
61
+ end
62
+ }
63
+ yield(target_name) if block_given?
64
+ end
65
+ else
62
66
  yield(target_name) if block_given?
63
67
  end
64
68
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podfileDep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-22 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods