podfileDep 2.4.10 → 2.4.11

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: 46e13acf0eb51b18b18bb5dc151bf3023b2ba147e3afbc50ceb1c5d0f6f7691f
4
- data.tar.gz: 236f040f1d6b2e1b4571b0120c0f1f50d04e7a965d6162b70337b0501db75784
3
+ metadata.gz: c1bb4022b21a25559de7d0713947b41268b939ab6365201c5c7893c6ad4cb671
4
+ data.tar.gz: a750ec5aa01e7213d7b648e256bd09a2e9d96ef98f658e788d6408ece49d4e1b
5
5
  SHA512:
6
- metadata.gz: 04a92fc2f87446f81d8b29a03e433f7d002e07d6ea5a026d2ea3db966b02a7e07d3e5127178e466036073e687fcc162934a22de96e6f3a5a917dd5d76f3f2d8a
7
- data.tar.gz: 65ec2bf6cf721efcd1acb2944b29c603125c8b9257acec5ed82cf36b57ae9e029deee408b3817b7260837ba2ab3ec71e5ea29768a5aff36994728def20436633
6
+ metadata.gz: 7224cccee0f8e5c44530a716bf2dd4f502f23d645e794bbc7618e3e6cc3f2fbc3a62d5e2e38cb155fca4ac5b0ca967e5728334156e14a9c561e134ae4afcd074
7
+ data.tar.gz: 5346eeea597e84fbdcdb67d31d3c847443064d02d65986e19493b1b4d0889a0204ef299dfb8aa566c2c037170489a275e800f5a61e44ad3b23fd82dd6abb8ec1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Released]
2
2
 
3
+ ### [2.4.11] - 2023-08-04
4
+ - 打印pod依赖库按类型输出
5
+
3
6
  ### [2.4.10] - 2023-08-02
4
7
  - 修复开发模块读取podspec路径错误的问题
5
8
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.4.10"
4
+ VERSION = "2.4.11"
5
5
  end
@@ -336,10 +336,8 @@ module Pod
336
336
  sort_deps = all_deps.sort do |arr1, arr2|
337
337
  dep1 = arr1[1]
338
338
  dep2 = arr2[1]
339
- if dep1.path and not dep2.path
340
- 1
341
- elsif not dep1.path and dep2.path
342
- -1
339
+ if dep1.type != dep2.type
340
+ dep1.type < dep2.type ? 1 : -1
343
341
  else
344
342
  dep1.pod.downcase <=> dep2.pod.downcase
345
343
  end
@@ -383,6 +381,9 @@ module Pod
383
381
  branch = repo_branch(dependency.path)
384
382
  modify = repo_modify(dependency.path)
385
383
  puts puts_result.cyan + branch.magenta + modify.magenta
384
+
385
+ elsif dependency.branch
386
+ puts "[!] #{puts_result}"
386
387
  else
387
388
  puts puts_result
388
389
  end
@@ -18,6 +18,7 @@ module Pod
18
18
  attr_accessor :inhibit_warnings
19
19
  attr_accessor :source
20
20
  attr_accessor :binary
21
+ attr_reader :type
21
22
 
22
23
  def option
23
24
  result = {:configurations => self.configurations,
@@ -40,5 +41,21 @@ module Pod
40
41
  end
41
42
  result
42
43
  end
44
+
45
+ def type
46
+ if self.path and self.path.size > 0
47
+ 0
48
+ elsif self.branch and self.branch.size > 0
49
+ return 1
50
+ elsif self.podspec and self.podspec.size > 0
51
+ return 2
52
+ elsif self.version and self.version.size > 0
53
+ return 3
54
+ elsif self.tag and self.tag.size > 0
55
+ return 4
56
+ else
57
+ 0
58
+ end
59
+ end
43
60
  end
44
61
  end
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.4.10
4
+ version: 2.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-02 00:00:00.000000000 Z
11
+ date: 2023-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods