podfileDep 2.2.1 → 2.2.2

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: 6712b4f92a70723f0a12794d85d489f03f099e479cf5ececa3949417beed2715
4
- data.tar.gz: cd778fd979f86fc2170047e59a2a0440bed06b7a49888afbf997c137311bed93
3
+ metadata.gz: 0f80429bafc2e7cf8a1fdc5061658df578425def95837ed7a61366d4fb2adcb2
4
+ data.tar.gz: 2db492658a86ba800ff8cfee65d3344348c912d9a2ef955be2ddf0d41db7bb8e
5
5
  SHA512:
6
- metadata.gz: e4d973974de3096d12004996c3d54ac57880a7504c40a2f077d8652fff41bf3cd31953b975db629939a83efab8baeecd394728b0f5c313aa7c44f2c1b12d2e1d
7
- data.tar.gz: 46eec6ad28864523a50c323cb4f1bc06ea3ca6615676e117d10e4a53d77b23d7d7c96ab4044b420389ebb21d8810772c1a7005be400fb3a9c73c4fe440e0e847
6
+ metadata.gz: 805aa965c9bec161d2f6dc827f6843ecc7c6b6161f777862f63b33b7f62f78ff73dff7b020cd56eb5617805b1df32b11f4a90c2c8b72ffe548f0b34d7db47a7e
7
+ data.tar.gz: e4136074707696110fdbb3696a97ddd36fb4451c9d70d97e88235340d62249c08ad67b42d0dedd7e34efa76ba2799f48275f87f88d22e562645131ce436c6b12
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  ## [Released]
2
+ ### [2.2.2] - 2023-7-5
3
+ - 彩色日志输出
4
+
2
5
  ### [2.2.1] - 2023-7-5
3
6
  - 彩色日志输出
4
7
 
@@ -117,7 +117,7 @@ module Pod
117
117
 
118
118
  thin_unused_pods.each do |unused_pod|
119
119
  title_options = { :verbose_prefix => '-> '.red }
120
- UI.titled_section("忽略 #{unused_pod}".red, title_options) do
120
+ UI.titled_section("忽略安装 #{unused_pod}".red, title_options) do
121
121
  thin_delete_pod(unused_pod)
122
122
  end
123
123
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.2.1"
4
+ VERSION = "2.2.2"
5
5
  end
@@ -2,6 +2,7 @@ require_relative 'yaml_pod'
2
2
  require_relative '../version'
3
3
  require_relative '../constants'
4
4
  require_relative '../check/xcodeproj'
5
+ require 'colored2'
5
6
 
6
7
  module Pod
7
8
  class YamlDep
@@ -101,7 +102,7 @@ module Pod
101
102
  all_deps.delete_if{|pod_name|
102
103
  real_pod_name = pod_name.split("/")[0]
103
104
  if real_pod_name == real_name
104
- puts "#{pod_name}被#{yaml_name}覆盖"
105
+ puts "#{pod_name} 被#{yaml_name}覆盖".green
105
106
  end
106
107
  real_pod_name == real_name
107
108
  }
@@ -110,7 +111,7 @@ module Pod
110
111
  end
111
112
 
112
113
  if all_deps.has_key?(name)
113
- puts "#{name}被#{yaml_name}覆盖"
114
+ puts "#{name} 被#{yaml_name}覆盖".green
114
115
  end
115
116
 
116
117
  all_deps[name] = dep
@@ -227,7 +228,7 @@ module Pod
227
228
  dependency.each_key { |key|
228
229
  unless available_keys.include?(key)
229
230
  gem_name = "podfileDep"
230
- puts "❌ #{yaml_name}: 当前#{gem_name}版本(#{PodfileDep::VERSION})不支持字段#{key}"
231
+ puts "❌ #{yaml_name}: 当前#{gem_name}版本(#{PodfileDep::VERSION})不支持字段#{key}".red
231
232
  puts "请检查对应字段或尝试执行如下命令升级"
232
233
  puts "gem uninstall #{gem_name} && gem install #{gem_name}"
233
234
  exit!
@@ -276,7 +277,7 @@ module Pod
276
277
 
277
278
  # 校验自身文件重复
278
279
  if dependencies_name.include?(dependency['pod'])
279
- puts "❌ 发现#{yaml_name}内重复组件:#{dependency['pod']},请检查并删除重复依赖:"
280
+ puts "❌ 发现#{yaml_name}内重复组件:#{dependency['pod']},请检查并删除重复依赖:".red
280
281
  exit!
281
282
  else
282
283
  dependencies_name << dependency['pod']
@@ -284,10 +285,10 @@ module Pod
284
285
 
285
286
  # 警告
286
287
  if dependency['path'] and yaml_name != podfile_local_yaml
287
- warn "⚠️ 组件#{dependency['pod']}使用path依赖方式应该写在#{podfile_local_yaml}"
288
+ warn "⚠️ 组件#{dependency['pod']}使用path依赖方式应该写在#{podfile_local_yaml}".yellow
288
289
  end
289
290
  if dependency['podspec'] and yaml_name != podfile_local_yaml
290
- warn "⚠️ 组件#{dependency['pod']}使用podspec依赖方式应该写在#{podfile_local_yaml}"
291
+ warn "⚠️ 组件#{dependency['pod']}使用podspec依赖方式应该写在#{podfile_local_yaml}".yellow
291
292
  end
292
293
 
293
294
  end
@@ -364,7 +365,12 @@ module Pod
364
365
  puts_result += ", :source => '#{dependency.source}'"
365
366
  end
366
367
 
367
- puts puts_result
368
+ if dependency.path or dependency.podspec
369
+ puts puts_result.blue
370
+ else
371
+ puts puts_result
372
+ end
373
+
368
374
  }
369
375
  puts "⬆️ 打印完毕"
370
376
  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.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋