podfileDep 2.3.4 → 2.3.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: 8d0616ba675d61a7cb9f12f36c98e0b313c8f87e3ba17ded2f7dbcfde9265af4
4
- data.tar.gz: df8fe42f9b709d4c31405b97ce26b4b7f2ae82f794cf58ceb4e0095b83fda21b
3
+ metadata.gz: 3f39bc168ff13749da842aee74a8cf17c9629466a6d9b20a61ea47020977398b
4
+ data.tar.gz: 80cb1d3a0d4af1bcc285c1720b63c4f8749c027c5909dbd0f2f9a768f4333130
5
5
  SHA512:
6
- metadata.gz: 99ccba32f897f779b649f1c9c61377ecd882907f64cb05da41e10a80df074dae579904d49e1730e4ec18a1e81fa0fd79c88a2c380a6bf7c9fbda709d0ede0bdf
7
- data.tar.gz: 5059a3d938a77b8bb479500c842ec903cabd6659a51b5b0d47cb0ea04e3e3be4dda89a46c88b21986245b1e275e4a2b42ee1804cc61a3e40f4f6af9ca4ad9ed8
6
+ metadata.gz: e1466d1c0e209a0ff7796401b915729ba370fd5b9bf1f0f320a0e895ff98531904c13b8c41be4a42cdc45f997c98361e2bc981d2dd8f25d7c348cf7903cec0a3
7
+ data.tar.gz: 72e2e307e376fab8e9f99d6f7ebac1287820b4764310981637fafddcbc5052e5ff7e660c902171095eebc28e422a353f89e0093b2c9da0f01b38e3494a89307c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Released]
2
2
 
3
+ ### [2.3.5] - 2023-7-24
4
+ - pod依赖打印仓库是否被修改
5
+
3
6
  ### [2.3.4] - 2023-7-24
4
7
  - pod依赖打印排序
5
8
  - pod依赖打印路径依赖时增加打印分支名
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.3.4"
4
+ VERSION = "2.3.5"
5
5
  end
@@ -346,13 +346,15 @@ 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
  branch = repo_branch(dependency.path)
355
- puts_result += ", :path => '#{dependency.path}'#{branch}"
356
+ modify = repo_modify(dependency.path)
357
+ puts_result += ", :path => '#{dependency.path}'#{branch} #{modify}"
356
358
  elsif dependency.podspec #podspec引用
357
359
  puts_result += ", :podspec => '#{dependency.podspec}'"
358
360
  elsif dependency.version #版本号引用
@@ -386,6 +388,7 @@ module Pod
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podfileDep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋