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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/podfileDep/thin/installer.rb +1 -1
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep/yaml/yaml_dep.rb +13 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f80429bafc2e7cf8a1fdc5061658df578425def95837ed7a61366d4fb2adcb2
|
4
|
+
data.tar.gz: 2db492658a86ba800ff8cfee65d3344348c912d9a2ef955be2ddf0d41db7bb8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805aa965c9bec161d2f6dc827f6843ecc7c6b6161f777862f63b33b7f62f78ff73dff7b020cd56eb5617805b1df32b11f4a90c2c8b72ffe548f0b34d7db47a7e
|
7
|
+
data.tar.gz: e4136074707696110fdbb3696a97ddd36fb4451c9d70d97e88235340d62249c08ad67b42d0dedd7e34efa76ba2799f48275f87f88d22e562645131ce436c6b12
|
data/CHANGELOG.md
CHANGED
@@ -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("
|
120
|
+
UI.titled_section("忽略安装 #{unused_pod}".red, title_options) do
|
121
121
|
thin_delete_pod(unused_pod)
|
122
122
|
end
|
123
123
|
end
|
data/lib/podfileDep/version.rb
CHANGED
@@ -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 "
|
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 "
|
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
|
-
|
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
|