podfileDep 2.7.0 → 2.7.1
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/dep/find.rb +6 -5
- data/lib/podfileDep/version.rb +1 -1
- 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: 12cedbc27748544e9a2c8034f600479e4074873cef6df41d6060e4211efebce3
|
4
|
+
data.tar.gz: a8d300437659f498422a77c7f135f6293a8f130605e4480743d593d09a67abd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8b60da680d26b9cf68edab608f0fa7706c2b6c4f7446a8d4abe1d0c325d8fcc8bbe75ee0848da079858da62663d1927ba4a5d524746d337a4a7a750b07d5683
|
7
|
+
data.tar.gz: 60a62b90fa41f2e1c533b98cf9c0339e466c13a1e63f4d5ecfdc8c7f5461f897e37715dee616588e56ca912790dd8d91c8d54125a099d042e3d3919a660c5c44
|
data/CHANGELOG.md
CHANGED
data/lib/podfileDep/dep/find.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'yaml'
|
2
|
+
require 'colored2'
|
2
3
|
|
3
4
|
module Pod
|
4
5
|
class DepFinder
|
@@ -20,7 +21,7 @@ module Pod
|
|
20
21
|
def init_lock
|
21
22
|
# 读取名为Podfile.lock的yaml文件, 并通过分析里面的PODS数组,输出依赖的第三方库的名字
|
22
23
|
unless File.exist?("Podfile.lock")
|
23
|
-
puts "Podfile.lock文件不存在,请先执行pod install或pod update"
|
24
|
+
puts "Podfile.lock文件不存在,请先执行pod install或pod update".red
|
24
25
|
end
|
25
26
|
|
26
27
|
@sort_count = false
|
@@ -63,7 +64,7 @@ module Pod
|
|
63
64
|
end
|
64
65
|
|
65
66
|
sorted_hash.each do |key, array|
|
66
|
-
puts "依赖#{key}的组件有(#{array.length}个):"
|
67
|
+
puts "依赖#{key}的组件有(#{array.length}个):".green
|
67
68
|
array.each do |obj|
|
68
69
|
puts obj
|
69
70
|
end
|
@@ -71,9 +72,9 @@ module Pod
|
|
71
72
|
end
|
72
73
|
|
73
74
|
unless @sort_count
|
74
|
-
puts "==> 按数量从少到多排序,可使用pod dep --sort"
|
75
|
+
puts "==> 按数量从少到多排序,可使用pod dep --sort".yellow
|
75
76
|
end
|
76
|
-
puts "==> 查询单个依赖的情况,可使用pod dep --name=xx"
|
77
|
+
puts "==> 查询单个依赖的情况,可使用pod dep --name=xx".yellow
|
77
78
|
end
|
78
79
|
|
79
80
|
def find_for_name
|
@@ -84,7 +85,7 @@ module Pod
|
|
84
85
|
return
|
85
86
|
end
|
86
87
|
|
87
|
-
puts "依赖#{@find_name}的组件有:"
|
88
|
+
puts "依赖#{@find_name}的组件有:".green
|
88
89
|
results.each do |res|
|
89
90
|
puts res
|
90
91
|
end
|
data/lib/podfileDep/version.rb
CHANGED