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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 291ec5bba9356f022236370f69c8286003bcb233e49a14d12a4345e6e461a840
4
- data.tar.gz: 1753ee4ce494fd3acf6adf57631cbc6b2729f68ab5125d6d1232f64bf78802c3
3
+ metadata.gz: 8c6426642b7735da59dd29311fb7dd8125d1c439345854562a23174698e34a3a
4
+ data.tar.gz: bef4f35c98fc12eceb66989e6b35ad1ed439690aab8c016726e093e5928d76e8
5
5
  SHA512:
6
- metadata.gz: f274f770974e696557c401e9e33748b7dadf5d6a6d5b0fd02043b5366966069b7a6c128a8e5ec21c12b4bb34675f151dd8b208d3163661db5802adf5319b8887
7
- data.tar.gz: 53d3356856a843c2e8ac8482f979cf52464de85488facb2e0584b7d99482d264329624b86bcba1534f28256c538cea454a9800e05bdabea4effb162010c09062
6
+ metadata.gz: 89aa2bd8a92ddb18a5a5ebf20c2e363ec8f19c037c5476d5157e9f2e085869b5c6306964b277bfcf98a6deb0df83e7dbc53469bc27b197ef941d4946c3a83b9a
7
+ data.tar.gz: 3ad0a42da1965470e23622a7fafb8708a0ccfe55ec2136fb79ccd2dc3b7b35c6bdb35683223337086a1336dfa2d803d455638617ae68e8f651e34394dc84ec20
@@ -1,3 +1,3 @@
1
1
  module Bytedance
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.5"
3
3
  end
@@ -0,0 +1,17 @@
1
+ module Prek
2
+ class PrekManager
3
+ class Lesson < PrekManager
4
+ require_relative './lesson/create'
5
+ self.abstract_command = true
6
+ self.summary = ''
7
+
8
+ self.description = <<-DESC
9
+
10
+ DESC
11
+
12
+ def run
13
+ super
14
+ end
15
+ end
16
+ end
17
+ end
@@ -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
@@ -11,6 +11,7 @@ module Prek
11
11
  class PrekManager < CLAide::Command
12
12
  require_relative './command/lib'
13
13
  require_relative './command/module'
14
+ require_relative './command/lesson'
14
15
  require_relative './command/mvvm'
15
16
  self.abstract_command = true
16
17
 
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.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: 2020-11-24 00:00:00.000000000 Z
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: