stool 0.2.17 → 0.2.18
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/lib/stool/Command/Util/LibsCheck.rb +17 -4
- data/lib/stool/Core/Config.rb +3 -0
- data/lib/stool/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96c2c00f211c8528b97eb0dc82ee78afb1215030
|
|
4
|
+
data.tar.gz: bc6b2b0b9c994f21dce3c0fceffbe3a98e4d3dd6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 061ddd8c7fff335fd7fac29976627639d6023e4128196eadec68aeaabb24c52dafd9c3a3bfca3ff351365949c4958272cb8322255bd747cbb49179c41324d00f
|
|
7
|
+
data.tar.gz: a9fb8b6a60cffb9badaa002a66e09c7e5ce1f2aaceb8b5f424e048b9494adead8107ec5dd705083a7a86a413ef26a6886741ee706e34b57cb7b7a52a8952fdee
|
|
@@ -52,8 +52,9 @@ module Stool
|
|
|
52
52
|
#在表格第一行设置分类
|
|
53
53
|
sheet1.row(0)[0]="名字"
|
|
54
54
|
sheet1.row(0)[1]="简介"
|
|
55
|
-
sheet1.row(0)[2]="
|
|
56
|
-
sheet1.row(0)[3]="
|
|
55
|
+
sheet1.row(0)[2]="所属业务模块"
|
|
56
|
+
sheet1.row(0)[3]="主页"
|
|
57
|
+
sheet1.row(0)[4]="统计时版本"
|
|
57
58
|
Dir.chdir(repoPath)
|
|
58
59
|
|
|
59
60
|
libs = []
|
|
@@ -75,11 +76,23 @@ module Stool
|
|
|
75
76
|
|
|
76
77
|
puts Dir.entries(repoPath).count
|
|
77
78
|
|
|
79
|
+
mod = ''
|
|
78
80
|
libs.each_with_index {|lib,idx|
|
|
81
|
+
mod = '其他工具'
|
|
82
|
+
@@config.checkReposSheets.each do|dic|
|
|
83
|
+
dic.values[0].each do |pod|
|
|
84
|
+
if lib.name.downcase.eql?(pod.downcase)
|
|
85
|
+
mod = dic.keys[0]
|
|
86
|
+
break
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
79
91
|
sheet1.row(idx+1)[0]= lib.name
|
|
80
92
|
sheet1.row(idx+1)[1]= lib.summary
|
|
81
|
-
sheet1.row(idx+1)[2]=
|
|
82
|
-
sheet1.row(idx+1)[3]= lib.
|
|
93
|
+
sheet1.row(idx+1)[2]= mod
|
|
94
|
+
sheet1.row(idx+1)[3]= lib.homepage
|
|
95
|
+
sheet1.row(idx+1)[4]= lib.version
|
|
83
96
|
}
|
|
84
97
|
end
|
|
85
98
|
|
data/lib/stool/Core/Config.rb
CHANGED
|
@@ -18,14 +18,17 @@ module Stool
|
|
|
18
18
|
attr_accessor :tasks
|
|
19
19
|
#cocoapods的repo缓存路径
|
|
20
20
|
attr_accessor :repoCachePath
|
|
21
|
+
|
|
21
22
|
#repo pod库的统计
|
|
22
23
|
attr_accessor :checkRepos
|
|
24
|
+
attr_accessor :checkReposSheets
|
|
23
25
|
|
|
24
26
|
def initialize
|
|
25
27
|
@repoCachePath = File.join(Dir.home,'.cocoapods/repos')
|
|
26
28
|
@pools = []
|
|
27
29
|
@tasks = []
|
|
28
30
|
@checkRepos = []
|
|
31
|
+
@checkReposSheets = []
|
|
29
32
|
super
|
|
30
33
|
end
|
|
31
34
|
|
data/lib/stool/version.rb
CHANGED