prek 1.0.0 → 1.0.5
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/bytedance/version.rb +1 -1
- data/lib/command/lesson.rb +17 -0
- data/lib/command/lesson/create.rb +40 -0
- data/lib/prek.rb +1 -0
- data/prek-1.0.4.gem +0 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c6426642b7735da59dd29311fb7dd8125d1c439345854562a23174698e34a3a
|
4
|
+
data.tar.gz: bef4f35c98fc12eceb66989e6b35ad1ed439690aab8c016726e093e5928d76e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89aa2bd8a92ddb18a5a5ebf20c2e363ec8f19c037c5476d5157e9f2e085869b5c6306964b277bfcf98a6deb0df83e7dbc53469bc27b197ef941d4946c3a83b9a
|
7
|
+
data.tar.gz: 3ad0a42da1965470e23622a7fafb8708a0ccfe55ec2136fb79ccd2dc3b7b35c6bdb35683223337086a1336dfa2d803d455638617ae68e8f651e34394dc84ec20
|
data/lib/bytedance/version.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
module Prek
|
2
|
+
class PrekManager
|
3
|
+
class Lesson
|
4
|
+
class Create < Lesson
|
5
|
+
self.summary = ''
|
6
|
+
|
7
|
+
def self.options
|
8
|
+
[].concat(super)
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize(params)
|
12
|
+
@projectName = params.shift_argument
|
13
|
+
@components = params.option('components','optional')
|
14
|
+
@prefix = params.option('prefix','Prek')
|
15
|
+
@platform = params.flag?('platform',true)
|
16
|
+
super
|
17
|
+
end
|
18
|
+
|
19
|
+
def validate!
|
20
|
+
super
|
21
|
+
if @components && !%w(none optional all).include?(@components)
|
22
|
+
help! "`#{@components}' 参数无效,components = none 或 optional 或 all "
|
23
|
+
end
|
24
|
+
|
25
|
+
if !@projectName
|
26
|
+
help! "参数错误,需要输入项目名称,bytedance project create projectName"
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
def run
|
32
|
+
super
|
33
|
+
parameter = [@projectName,'--components='+ @components,'--prefix=' + @prefix, @platform ? '--platform' : '--no-platform', '--template-url=git@code.byted.org:prek/lesson_pod_template.git']
|
34
|
+
finalParams = CLAide::ARGV.new(parameter)
|
35
|
+
Pod::Command::Lib::Create.new(finalParams).run
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/prek.rb
CHANGED
data/prek-1.0.4.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prek
|
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
|
- jialei
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -116,12 +116,15 @@ files:
|
|
116
116
|
- lib/command/fastlanehelper.rb
|
117
117
|
- lib/command/file_help.rb
|
118
118
|
- lib/command/file_helper.rb
|
119
|
+
- lib/command/lesson.rb
|
120
|
+
- lib/command/lesson/create.rb
|
119
121
|
- lib/command/lib.rb
|
120
122
|
- lib/command/lib/create.rb
|
121
123
|
- lib/command/module.rb
|
122
124
|
- lib/command/module/create.rb
|
123
125
|
- lib/command/mvvm.rb
|
124
126
|
- lib/prek.rb
|
127
|
+
- prek-1.0.4.gem
|
125
128
|
- prek.gemspec
|
126
129
|
homepage: https://code.byted.org/jialei.jay/tool_bytedance
|
127
130
|
licenses:
|