podfileDep 2.3.4 → 2.3.6
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep/yaml/yaml_dep.rb +20 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b141be5a2d0872d97b87f3afbd0549bf6d65146f66d665432a71f82ec5da405
|
4
|
+
data.tar.gz: bdd4ee72216e8929dad9c09c0bb79d487b3dfd3805026d44efbad9c2740e633b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a0e1e6c178434c745cb3aece459458fe770ec2da2ca8e3d4efa742706f6078d5584232a94f6d22bc7d95bb8498e3eac4e97cb738767343f5be50690f89e5997
|
7
|
+
data.tar.gz: 0d2cdac871d2c5ef04c13e6606bea7498a5b2d1e21662ede1ffb2abf088712d2bd2041e9eedf81a3cbab54d28976432cda1711db25dfddc88338f79ea465627c
|
data/CHANGELOG.md
CHANGED
data/lib/podfileDep/version.rb
CHANGED
@@ -346,13 +346,13 @@ module Pod
|
|
346
346
|
end
|
347
347
|
|
348
348
|
puts '⬇️ 打印依赖'
|
349
|
+
current_dir = Dir.pwd
|
349
350
|
sort_deps.each { |sort_dep|
|
350
351
|
dependency = sort_dep[1]
|
351
352
|
puts_result = "pod '#{dependency.pod}'"
|
352
353
|
|
353
354
|
if dependency.path #路径引用
|
354
|
-
|
355
|
-
puts_result += ", :path => '#{dependency.path}'#{branch}"
|
355
|
+
puts_result += ", :path => '#{dependency.path}'"
|
356
356
|
elsif dependency.podspec #podspec引用
|
357
357
|
puts_result += ", :podspec => '#{dependency.podspec}'"
|
358
358
|
elsif dependency.version #版本号引用
|
@@ -379,13 +379,16 @@ module Pod
|
|
379
379
|
puts_result += ", :source => '#{dependency.source}'"
|
380
380
|
end
|
381
381
|
|
382
|
-
if dependency.path
|
383
|
-
|
382
|
+
if dependency.path
|
383
|
+
branch = repo_branch(dependency.path)
|
384
|
+
modify = repo_modify(dependency.path)
|
385
|
+
puts puts_result.cyan + branch.magenta + modify.magenta
|
384
386
|
else
|
385
387
|
puts puts_result
|
386
388
|
end
|
387
389
|
|
388
390
|
}
|
391
|
+
Dir.chdir(current_dir)
|
389
392
|
puts "⬆️ 打印完毕"
|
390
393
|
end
|
391
394
|
|
@@ -500,6 +503,19 @@ module Pod
|
|
500
503
|
"(#{content})"
|
501
504
|
end
|
502
505
|
|
506
|
+
# 获取仓库状态是否有修改
|
507
|
+
def repo_modify(path)
|
508
|
+
full_path = File.expand_path(path)
|
509
|
+
git_path = "#{full_path}/.git"
|
510
|
+
unless Dir.exist?(git_path)
|
511
|
+
return ""
|
512
|
+
end
|
513
|
+
|
514
|
+
Dir.chdir(full_path)
|
515
|
+
status = %x(git status -suno)
|
516
|
+
status.size > 0 ? "[modified]" : ""
|
517
|
+
end
|
518
|
+
|
503
519
|
# 读取主工程target列表
|
504
520
|
def init_main_targets
|
505
521
|
project_manager = XCProject::XcodeprojManager.share_manager
|
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.3.
|
4
|
+
version: 2.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 王帅朋
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|