stool 0.2.19 → 0.2.22
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 +5 -5
- data/README.md +9 -6
- data/lib/stool/Command.rb +5 -1
- data/lib/stool/Command/Util/LibsCheck.rb +6 -2
- data/lib/stool/Core/Config.rb +8 -2
- data/lib/stool/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5039204b974092d3b3cfabaeef67ca3816a0296a0284e81f2e5ab4f9838891fe
|
|
4
|
+
data.tar.gz: c1bdea4c7823fbfbcac188f525673cd7c18d074a9e04adfd3f6fabbbe8259eaf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02ce63b0d4f8d5267ca2469234e129e322ba2029e39b3af8e756fe2830bfadcf57270fabcefb0f405f9fbd2d9119196912bcecfcea0239d4812e8b1f55e4e7a3
|
|
7
|
+
data.tar.gz: 9154e9dae04989cfee84932bd1033015c51ee224e40336076172b66a6dd00d6f7ce8159d2fb40eaa3f15582becc095756047cc66c1b07a9bbc3b823bc741e06f
|
data/README.md
CHANGED
|
@@ -25,6 +25,7 @@ Or install it yourself as:
|
|
|
25
25
|
|
|
26
26
|
#stool 配置
|
|
27
27
|
Config.new do |c|
|
|
28
|
+
|
|
28
29
|
#添加一个本地lib pool,池中是你clone下来的各个pod
|
|
29
30
|
#name - 随意取
|
|
30
31
|
#path - lib pool的本地路径
|
|
@@ -64,23 +65,25 @@ Or install it yourself as:
|
|
|
64
65
|
|
|
65
66
|
$ sl COMMAND
|
|
66
67
|
|
|
67
|
-
smart tool - 对iOS
|
|
68
|
+
smart tool - 对iOS相关工作,进行自动化整合。
|
|
68
69
|
|
|
69
70
|
Commands:
|
|
70
71
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
+ lib 本地lib信息、处理
|
|
73
|
+
+ lp LibPool - 本地pod池.
|
|
74
|
+
+ rp cocoapods的repos信息,及相关操作
|
|
75
|
+
+ util 常用工具的集合
|
|
76
|
+
+ ws workSpaces - 本地的Workspace项目,关于pod相关的整合
|
|
74
77
|
|
|
75
78
|
3、更新libpool中的某个lib版本号
|
|
76
79
|
|
|
77
|
-
`sl lib vadd libName`
|
|
80
|
+
`sl lib vadd [libName]`
|
|
78
81
|
|
|
79
82
|
示例:`sl lib vadd AFNetWorking`
|
|
80
83
|
|
|
81
84
|
4、主工程workspace执行pod update
|
|
82
85
|
|
|
83
|
-
`sl ws up tag`
|
|
86
|
+
`sl ws up [tag]`
|
|
84
87
|
|
|
85
88
|
示例:`sl ws up 1`
|
|
86
89
|
|
data/lib/stool/Command.rb
CHANGED
|
@@ -15,7 +15,11 @@ module Stool
|
|
|
15
15
|
self.abstract_command = true
|
|
16
16
|
self.command = 'sl'
|
|
17
17
|
self.version = VERSION
|
|
18
|
-
self.description =
|
|
18
|
+
self.description = <<-Detail
|
|
19
|
+
smart tool - 对iOS相关工作,进行自动化整合.
|
|
20
|
+
RubyGem:https://rubygems.org/gems/stool
|
|
21
|
+
Git:https://gitee.com/CWDong/stool
|
|
22
|
+
Detail
|
|
19
23
|
self.plugin_prefixes = %w(claide stool)
|
|
20
24
|
|
|
21
25
|
def self.options
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require 'Core/LibInfo'
|
|
2
|
-
require "spreadsheet
|
|
2
|
+
require "spreadsheet"
|
|
3
3
|
require 'colored2'
|
|
4
4
|
|
|
5
5
|
module Stool
|
|
@@ -42,11 +42,15 @@ module Stool
|
|
|
42
42
|
|
|
43
43
|
unless Dir.exist?(repoPath)
|
|
44
44
|
puts "#{repoPath} does not exist!!".red
|
|
45
|
-
|
|
45
|
+
puts "Now,we have found some repos,which did you mean: ".red
|
|
46
|
+
puts `pod repo`.white
|
|
47
|
+
raise
|
|
46
48
|
end
|
|
47
49
|
|
|
50
|
+
puts "更新当前repo - #{repo}".white
|
|
48
51
|
puts `pod repo update #{repo}`
|
|
49
52
|
|
|
53
|
+
puts "生成表格中...".white
|
|
50
54
|
#创建工作表
|
|
51
55
|
sheet1 = @book.create_worksheet :name => "pod_summary_" + repo
|
|
52
56
|
#在表格第一行设置分类
|
data/lib/stool/Core/Config.rb
CHANGED
|
@@ -81,10 +81,13 @@ module Stool
|
|
|
81
81
|
|
|
82
82
|
f = File.open(@@configFilePath, "w+")
|
|
83
83
|
demo = <<-EOF
|
|
84
|
+
|
|
84
85
|
#stool 配置
|
|
86
|
+
|
|
85
87
|
Config.new do |c|
|
|
88
|
+
|
|
86
89
|
#添加一个本地lib pool,池中是你clone下来的各个pod
|
|
87
|
-
#name -
|
|
90
|
+
#name - 根据爱好,随意取
|
|
88
91
|
#path - lib pool的本地路径
|
|
89
92
|
c.addPool do |p|
|
|
90
93
|
p.name = '本地lib池 - 1'
|
|
@@ -97,7 +100,7 @@ module Stool
|
|
|
97
100
|
# p.path = ''
|
|
98
101
|
# end
|
|
99
102
|
|
|
100
|
-
|
|
103
|
+
#添加一个项目工程,iOS-workspace工程
|
|
101
104
|
#name - 随意取
|
|
102
105
|
#tag - 命令操作需要,工程的唯一标识
|
|
103
106
|
#path - 路径目下要有workspace/podfile文件
|
|
@@ -114,6 +117,9 @@ module Stool
|
|
|
114
117
|
t.addOtherLibUseCode(['pod4'])
|
|
115
118
|
#t.allLibsUseCode
|
|
116
119
|
end
|
|
120
|
+
|
|
121
|
+
#设置pod库统计时,查询的repos、Excel中sheet的名字
|
|
122
|
+
|
|
117
123
|
end
|
|
118
124
|
EOF
|
|
119
125
|
|
data/lib/stool/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stool
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fiend
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
220
220
|
version: '0'
|
|
221
221
|
requirements: []
|
|
222
222
|
rubyforge_project:
|
|
223
|
-
rubygems_version: 2.
|
|
223
|
+
rubygems_version: 2.7.7
|
|
224
224
|
signing_key:
|
|
225
225
|
specification_version: 4
|
|
226
226
|
summary: A tool for workflow!
|