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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 494e2fa3df8347f49bc7778eca4e2c00049d1ea8
4
- data.tar.gz: c672c301001021ece35542a0ef92b1647c2994e7
3
+ metadata.gz: 96c2c00f211c8528b97eb0dc82ee78afb1215030
4
+ data.tar.gz: bc6b2b0b9c994f21dce3c0fceffbe3a98e4d3dd6
5
5
  SHA512:
6
- metadata.gz: 4d04030bc0a0365de9fbc94fdcd28deb2add4e16276b23352ef7f612a97a8f6a82cebb447c4c73ef3bb5f1b30680d5a6826de013c44a7cb8c6a07003175d20ef
7
- data.tar.gz: d7bd91b399f4e3330770a9441306201b6e7418e6cbdbf105f50ba1873ee704a35ee8d3088209943deafe0d7f4bd44875b65508ec528c5fe40a996eb5bf34f4c6
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]= lib.homepage
82
- sheet1.row(idx+1)[3]= lib.version
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Stool
2
- VERSION = "0.2.17"
2
+ VERSION = "0.2.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fiend