yptools 1.0.2 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yptools/help/yp_help.rb +2 -1
- data/lib/yptools/install/yp_install.rb +10 -2
- data/lib/yptools/mgc/yp_makegarbagecode.rb +19 -3
- data/lib/yptools/update/yp_update.rb +19 -0
- data/lib/yptools.rb +11 -6
- metadata +4 -67
- data/lib/yptools/install/mvvm/install-template.sh +0 -15
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png +0 -0
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png +0 -0
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist +0 -224
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib +0 -17
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib +0 -17
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift +0 -83
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -31
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift +0 -83
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib +0 -31
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift +0 -84
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -103
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift +0 -84
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m +0 -94
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h +0 -15
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m +0 -39
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m +0 -30
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m +0 -51
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -9
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -61
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -43
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib +0 -22
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewSwift/___FILEBASENAME___.swift +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dccb524415e377e39b368189b62ab6ae8df04d7ac2216741dc3af9a5a755cb8
|
4
|
+
data.tar.gz: d65bbc47f40f20ecb0045501e89b92fbd09eba62cf1daa88a359679e95d24ff2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b12b50159cba782f78eec045632bcf53b9e5932dcc0c7e262725c064cb22bc356e9a0e746b09b37debe72fa110c1379001ae8f8c82c1611415de9b11c5ffbc3
|
7
|
+
data.tar.gz: f86d85bcb797df249f54980e8804e43e3321cb34890c1e12520731d419584e2947108a5547e0d85ec9b78bd9dd3f895c59512e3c7d8719d42f313e1e47473e8c
|
data/lib/yptools/help/yp_help.rb
CHANGED
@@ -7,7 +7,16 @@ require_relative '../mgc/yp_makegarbagecode'
|
|
7
7
|
class YPInstall
|
8
8
|
|
9
9
|
def self.install(name)
|
10
|
-
|
10
|
+
cmd = name
|
11
|
+
case cmd
|
12
|
+
when 'mvvm'
|
13
|
+
YPInstall.mvvm
|
14
|
+
else
|
15
|
+
yp_log_fail "'yptools install #{name}' 暂无,敬请期待"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.mvvm
|
11
20
|
templates_url = "git@github.com:HansenCCC/kMVVM.git"
|
12
21
|
templates_path = Dir.pwd
|
13
22
|
templates_name = "kMVVM"
|
@@ -27,7 +36,6 @@ class YPInstall
|
|
27
36
|
yp_method_rmdir templates_path
|
28
37
|
yp_log_doing "移除临时文件#{templates_path}"
|
29
38
|
yp_log_success "安装#{templates_url}完成,重新打开Xcode才能生效"
|
30
|
-
|
31
39
|
end
|
32
40
|
|
33
41
|
end
|
@@ -268,9 +268,25 @@ def yp_tools_method_makeGarbage (suffix)
|
|
268
268
|
return
|
269
269
|
end
|
270
270
|
|
271
|
-
|
272
|
-
|
273
|
-
|
271
|
+
yp_isDo = 1
|
272
|
+
|
273
|
+
if File.exists?(yp_outPath)
|
274
|
+
yp_isDo = 0
|
275
|
+
yp_log_success "检测'#{yp_outPath}' 文件夹已经存在,是否覆盖?(Enter Yes Or No)' :"
|
276
|
+
val = $stdin.gets.chomp
|
277
|
+
|
278
|
+
if val == 'Yes' || val == 'yes' || val == 'YES' || val == 'Y' || val == 'y' || val.length == 0
|
279
|
+
yp_isDo = 1
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
if yp_isDo == 1
|
284
|
+
yp_method_rmdir yp_outPath
|
285
|
+
yp_method_mkdir yp_outPath
|
286
|
+
yp_method_makeGarbage yp_path, yp_outPath, suffix
|
287
|
+
else
|
288
|
+
yp_log_fail "操作已取消"
|
289
|
+
end
|
274
290
|
|
275
291
|
yp_log_doing "🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀";
|
276
292
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'colored'
|
2
|
+
require 'fileutils'
|
3
|
+
require_relative '../mgc/yp_makegarbagecode'
|
4
|
+
require_relative '../log/yp_log'
|
5
|
+
|
6
|
+
class YPUpdate
|
7
|
+
def self.update
|
8
|
+
yp_log_doing '准备更新...'
|
9
|
+
|
10
|
+
system("gem install colored")
|
11
|
+
system("gem install bundler")
|
12
|
+
system("gem install rake")
|
13
|
+
system("gem install yptools")
|
14
|
+
|
15
|
+
yp_log_success "更新YPTools完成"
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
data/lib/yptools.rb
CHANGED
@@ -2,6 +2,7 @@ require_relative 'yptools/mgc/yp_makegarbagecode'
|
|
2
2
|
require_relative 'yptools/help/yp_help'
|
3
3
|
require_relative 'yptools/log/yp_log'
|
4
4
|
require_relative 'yptools/install/yp_install'
|
5
|
+
require_relative 'yptools/update/yp_update'
|
5
6
|
|
6
7
|
class YPTools
|
7
8
|
|
@@ -9,11 +10,11 @@ class YPTools
|
|
9
10
|
cmd = argvs[0]
|
10
11
|
case cmd
|
11
12
|
when 'help'
|
12
|
-
|
13
|
+
self.help
|
13
14
|
when 'mgc'
|
14
15
|
if argvs.size > 1
|
15
16
|
suffix = argvs[1]
|
16
|
-
|
17
|
+
self.mgc suffix
|
17
18
|
else
|
18
19
|
yp_log_fail "'yptools mgc ..' 参数缺失"
|
19
20
|
self.help
|
@@ -21,15 +22,15 @@ class YPTools
|
|
21
22
|
when 'install'
|
22
23
|
if argvs.size > 1
|
23
24
|
name = argvs[1]
|
24
|
-
|
25
|
+
self.install name
|
25
26
|
else
|
26
27
|
yp_log_fail "'yptools install ..' 参数缺失"
|
27
28
|
self.help
|
28
29
|
end
|
29
|
-
when '
|
30
|
-
|
30
|
+
when 'update'
|
31
|
+
self.update
|
31
32
|
else
|
32
|
-
|
33
|
+
self.help
|
33
34
|
end
|
34
35
|
|
35
36
|
end
|
@@ -46,6 +47,10 @@ class YPTools
|
|
46
47
|
YPInstall.install(name)
|
47
48
|
end
|
48
49
|
|
50
|
+
def self.update
|
51
|
+
YPUpdate.update
|
52
|
+
end
|
53
|
+
|
49
54
|
end
|
50
55
|
|
51
56
|
#puts "🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀";
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yptools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chenghengsheng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,73 +91,10 @@ files:
|
|
91
91
|
- bin/yptools
|
92
92
|
- lib/yptools.rb
|
93
93
|
- lib/yptools/help/yp_help.rb
|
94
|
-
- lib/yptools/install/mvvm/install-template.sh
|
95
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h
|
96
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m
|
97
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift
|
98
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png
|
99
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png
|
100
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist
|
101
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h
|
102
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m
|
103
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift
|
104
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h
|
105
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m
|
106
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib
|
107
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift
|
108
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib
|
109
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h
|
110
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m
|
111
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift
|
112
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h
|
113
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m
|
114
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib
|
115
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift
|
116
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib
|
117
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h
|
118
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m
|
119
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift
|
120
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h
|
121
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m
|
122
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib
|
123
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift
|
124
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib
|
125
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h
|
126
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m
|
127
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift
|
128
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h
|
129
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m
|
130
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib
|
131
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift
|
132
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib
|
133
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h
|
134
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m
|
135
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift
|
136
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h
|
137
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m
|
138
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib
|
139
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift
|
140
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib
|
141
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h
|
142
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m
|
143
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h
|
144
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m
|
145
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h
|
146
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m
|
147
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h
|
148
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m
|
149
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift
|
150
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h
|
151
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m
|
152
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib
|
153
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift
|
154
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib
|
155
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h
|
156
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m
|
157
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewSwift/___FILEBASENAME___.swift
|
158
94
|
- lib/yptools/install/yp_install.rb
|
159
95
|
- lib/yptools/log/yp_log.rb
|
160
96
|
- lib/yptools/mgc/yp_makegarbagecode.rb
|
97
|
+
- lib/yptools/update/yp_update.rb
|
161
98
|
homepage: https://github.com/HansenCCC/YPTools.git
|
162
99
|
licenses:
|
163
100
|
- MIT
|
@@ -177,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
114
|
- !ruby/object:Gem::Version
|
178
115
|
version: '0'
|
179
116
|
requirements: []
|
180
|
-
rubygems_version: 3.0.
|
117
|
+
rubygems_version: 3.0.9
|
181
118
|
signing_key:
|
182
119
|
specification_version: 4
|
183
120
|
summary: YPTools!
|
@@ -1,15 +0,0 @@
|
|
1
|
-
|
2
|
-
starttime=$(date +%Y-%m-%d\ %H:%M:%S)
|
3
|
-
echo "🚀 开始时间 $starttime 🚀"
|
4
|
-
echo `pwd`
|
5
|
-
|
6
|
-
#export kSourceDir="~/Library/Developer/Xcode/Templates/Source/"
|
7
|
-
#export kTemplateUbanDir="~/Library/Developer/Xcode/Templates/Source/JiangXi\ Uban\ MVVM.xctemplate"
|
8
|
-
|
9
|
-
mkdir -p ~/Library/Developer/Xcode/Templates/Source/
|
10
|
-
|
11
|
-
rm -rf dir ~/Library/Developer/Xcode/Templates/Source/kMVVM.xctemplate
|
12
|
-
|
13
|
-
cp -R kMVVM.xctemplate ~/Library/Developer/Xcode/Templates/Source/kMVVM.xctemplate
|
14
|
-
|
15
|
-
echo "🚀 结束时间 $endtime 🚀"
|
Binary file
|
Binary file
|
@@ -1,224 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>Kind</key>
|
6
|
-
<string>Xcode.IDEFoundation.TextSubstitutionFileTemplateKind</string>
|
7
|
-
<key>Description</key>
|
8
|
-
<string>A Cocoa Touch class.</string>
|
9
|
-
<key>Summary</key>
|
10
|
-
<string>A Cocoa Touch class</string>
|
11
|
-
<key>SortOrder</key>
|
12
|
-
<string>0</string>
|
13
|
-
<key>DefaultCompletionName</key>
|
14
|
-
<string>MyClass</string>
|
15
|
-
<key>Platforms</key>
|
16
|
-
<array>
|
17
|
-
<string>com.apple.platform.iphoneos</string>
|
18
|
-
</array>
|
19
|
-
<key>Options</key>
|
20
|
-
<array>
|
21
|
-
<dict>
|
22
|
-
<key>Identifier</key>
|
23
|
-
<string>productName</string>
|
24
|
-
<key>Required</key>
|
25
|
-
<true/>
|
26
|
-
<key>Name</key>
|
27
|
-
<string>Class:</string>
|
28
|
-
<key>Description</key>
|
29
|
-
<string>The name of the class to create</string>
|
30
|
-
<key>Type</key>
|
31
|
-
<string>text</string>
|
32
|
-
<key>NotPersisted</key>
|
33
|
-
<true/>
|
34
|
-
</dict>
|
35
|
-
<dict>
|
36
|
-
<key>Identifier</key>
|
37
|
-
<string>cocoaTouchSubclass</string>
|
38
|
-
<key>Required</key>
|
39
|
-
<string>YES</string>
|
40
|
-
<key>Name</key>
|
41
|
-
<string>Subclass of:</string>
|
42
|
-
<key>Description</key>
|
43
|
-
<string>What class to subclass in the new file</string>
|
44
|
-
<key>Type</key>
|
45
|
-
<string>class</string>
|
46
|
-
<key>Default</key>
|
47
|
-
<string>NSObject</string>
|
48
|
-
<key>FallbackHeader</key>
|
49
|
-
<string>#import <UIKit/UIKit.h></string>
|
50
|
-
<key>Values</key>
|
51
|
-
<array>
|
52
|
-
<string>NSObject</string>
|
53
|
-
<string>UIView</string>
|
54
|
-
<string>UIViewController</string>
|
55
|
-
<string>UITableViewController</string>
|
56
|
-
<string>UITableViewCell</string>
|
57
|
-
<string>UICollectionViewController</string>
|
58
|
-
<string>UICollectionViewCell</string>
|
59
|
-
<string>UICollectionReusableView</string>
|
60
|
-
</array>
|
61
|
-
<key>Suffixes</key>
|
62
|
-
<dict>
|
63
|
-
<key>UIViewController</key>
|
64
|
-
<string>ViewController</string>
|
65
|
-
<key>UITableViewController</key>
|
66
|
-
<string>TableViewController</string>
|
67
|
-
<key>UITableViewCell</key>
|
68
|
-
<string>TableViewCell</string>
|
69
|
-
<key>UICollectionViewController</key>
|
70
|
-
<string>CollectionViewController</string>
|
71
|
-
<key>UICollectionViewCell</key>
|
72
|
-
<string>CollectionViewCell</string>
|
73
|
-
<key>UICollectionReusableView</key>
|
74
|
-
<string>CollectionReusableView</string>
|
75
|
-
</dict>
|
76
|
-
</dict>
|
77
|
-
<dict>
|
78
|
-
<key>Default</key>
|
79
|
-
<string>ViewModel</string>
|
80
|
-
<key>Identifier</key>
|
81
|
-
<string>ViewModel</string>
|
82
|
-
<key>Required</key>
|
83
|
-
<true/>
|
84
|
-
<key>Name</key>
|
85
|
-
<string>ViewModel:</string>
|
86
|
-
<key>Description</key>
|
87
|
-
<string>The name of the viewModel to create</string>
|
88
|
-
<key>Type</key>
|
89
|
-
<string>text</string>
|
90
|
-
<key>NotPersisted</key>
|
91
|
-
<true/>
|
92
|
-
</dict>
|
93
|
-
<dict>
|
94
|
-
<key>Default</key>
|
95
|
-
<string>Proxy</string>
|
96
|
-
<key>Identifier</key>
|
97
|
-
<string>Proxy</string>
|
98
|
-
<key>Required</key>
|
99
|
-
<true/>
|
100
|
-
<key>Name</key>
|
101
|
-
<string>Proxy:</string>
|
102
|
-
<key>Description</key>
|
103
|
-
<string>The name of the proxy to create</string>
|
104
|
-
<key>Type</key>
|
105
|
-
<string>text</string>
|
106
|
-
<key>NotPersisted</key>
|
107
|
-
<true/>
|
108
|
-
</dict>
|
109
|
-
<dict>
|
110
|
-
<key>Default</key>
|
111
|
-
<string>TableViewCell</string>
|
112
|
-
<key>Identifier</key>
|
113
|
-
<string>TableViewCell</string>
|
114
|
-
<key>Required</key>
|
115
|
-
<true/>
|
116
|
-
<key>Name</key>
|
117
|
-
<string>TableViewCell:</string>
|
118
|
-
<key>Description</key>
|
119
|
-
<string>The name of the TableViewCell to create</string>
|
120
|
-
<key>Type</key>
|
121
|
-
<string>text</string>
|
122
|
-
<key>NotPersisted</key>
|
123
|
-
<true/>
|
124
|
-
</dict>
|
125
|
-
<dict>
|
126
|
-
<key>Identifier</key>
|
127
|
-
<string>XIB</string>
|
128
|
-
<key>Name</key>
|
129
|
-
<string>Also create XIB file</string>
|
130
|
-
<key>Description</key>
|
131
|
-
<string>Whether to create a XIB file with the same name</string>
|
132
|
-
<key>Type</key>
|
133
|
-
<string>checkbox</string>
|
134
|
-
<key>RequiredOptions</key>
|
135
|
-
<dict>
|
136
|
-
<key>cocoaTouchSubclass</key>
|
137
|
-
<array>
|
138
|
-
<string>UIViewController</string>
|
139
|
-
<string>UITableViewController</string>
|
140
|
-
<string>UITableViewCell</string>
|
141
|
-
<string>UICollectionViewController</string>
|
142
|
-
<string>UICollectionViewCell</string>
|
143
|
-
<string>UICollectionReusableView</string>
|
144
|
-
</array>
|
145
|
-
</dict>
|
146
|
-
<key>Default</key>
|
147
|
-
<string>false</string>
|
148
|
-
<key>NotPersisted</key>
|
149
|
-
<true/>
|
150
|
-
</dict>
|
151
|
-
<dict>
|
152
|
-
<key>Identifier</key>
|
153
|
-
<string>languageChoice</string>
|
154
|
-
<key>Required</key>
|
155
|
-
<true/>
|
156
|
-
<key>Name</key>
|
157
|
-
<string>Language:</string>
|
158
|
-
<key>Description</key>
|
159
|
-
<string>The implementation language</string>
|
160
|
-
<key>Type</key>
|
161
|
-
<string>popup</string>
|
162
|
-
<key>Default</key>
|
163
|
-
<string>Objective-C</string>
|
164
|
-
<key>Values</key>
|
165
|
-
<array>
|
166
|
-
<string>Swift</string>
|
167
|
-
<string>Objective-C</string>
|
168
|
-
</array>
|
169
|
-
<key>MainTemplateFiles</key>
|
170
|
-
<dict>
|
171
|
-
<key>Swift</key>
|
172
|
-
<string>___FILEBASENAME___.swift</string>
|
173
|
-
<key>Objective-C</key>
|
174
|
-
<string>___FILEBASENAME___.m</string>
|
175
|
-
</dict>
|
176
|
-
<key>AllowedTypes</key>
|
177
|
-
<dict>
|
178
|
-
<key>Swift</key>
|
179
|
-
<array>
|
180
|
-
<string>public.swift-source</string>
|
181
|
-
</array>
|
182
|
-
<key>Objective-C</key>
|
183
|
-
<array>
|
184
|
-
<string>public.objective-c-source</string>
|
185
|
-
<string>public.objective-c-plus-plus-source</string>
|
186
|
-
</array>
|
187
|
-
</dict>
|
188
|
-
</dict>
|
189
|
-
<dict>
|
190
|
-
<key>Identifier</key>
|
191
|
-
<string>safariExtensionType</string>
|
192
|
-
<key>Units</key>
|
193
|
-
<dict>
|
194
|
-
<key>Safari App Extension</key>
|
195
|
-
<array>
|
196
|
-
<dict>
|
197
|
-
<key>RequiredOptions</key>
|
198
|
-
<dict>
|
199
|
-
<key>languageChoice</key>
|
200
|
-
<string>Objective-C</string>
|
201
|
-
</dict>
|
202
|
-
<key>Nodes</key>
|
203
|
-
<array>
|
204
|
-
<string>Resources/___VARIABLE_ViewModel___.h</string>
|
205
|
-
</array>
|
206
|
-
<key>Definitions</key>
|
207
|
-
<dict>
|
208
|
-
<key>Resources/___VARIABLE_ViewModel___.h</key>
|
209
|
-
<dict>
|
210
|
-
<key>Path</key>
|
211
|
-
<string>___VARIABLE_ViewModel___.h</string>
|
212
|
-
<key>Group</key>
|
213
|
-
<string>Resources</string>
|
214
|
-
<key>SortOrder</key>
|
215
|
-
<integer>2</integer>
|
216
|
-
</dict>
|
217
|
-
</dict>
|
218
|
-
</dict>
|
219
|
-
</array>
|
220
|
-
</dict>
|
221
|
-
</dict>
|
222
|
-
</array>
|
223
|
-
</dict>
|
224
|
-
</plist>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
3
|
-
<dependencies>
|
4
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
|
5
|
-
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
6
|
-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
7
|
-
</dependencies>
|
8
|
-
<objects>
|
9
|
-
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
10
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
11
|
-
<collectionReusableView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="U6b-Vx-4bR">
|
12
|
-
<rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
|
13
|
-
<autoresizingMask key="autoresizingMask"/>
|
14
|
-
<viewLayoutGuide key="safeArea" id="9Gg-ye-v9C"/>
|
15
|
-
</collectionReusableView>
|
16
|
-
</objects>
|
17
|
-
</document>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
|
3
|
-
<dependencies>
|
4
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
|
5
|
-
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
6
|
-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
7
|
-
</dependencies>
|
8
|
-
<objects>
|
9
|
-
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
10
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
11
|
-
<collectionReusableView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="U6b-Vx-4bR">
|
12
|
-
<rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
|
13
|
-
<autoresizingMask key="autoresizingMask"/>
|
14
|
-
<viewLayoutGuide key="safeArea" id="VXr-Tz-HHm"/>
|
15
|
-
</collectionReusableView>
|
16
|
-
</objects>
|
17
|
-
</document>
|