prek 0.5.0 → 0.5.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: 0e9b8d596f416308f32a226f7318886522b7169fffd11389d9f79ecab73f71eb
4
- data.tar.gz: 3a7d275bae293796d3ff4f30d903a823001a6931ca3f851eead0ea326480b19d
3
+ metadata.gz: 1d6b45600a1c9adfb9ca348bc8c4540a2c5e957622ef8c410e9f7c76fe6daa94
4
+ data.tar.gz: 9b54dd32fcfe1a341bfb39bce602ef4c2a8df38257435b3461fd2043b34c081f
5
5
  SHA512:
6
- metadata.gz: f62954e874c2fbcf32f5a983b9e586eb5e09cd91c12b1d938bde6ab804e9cc39c948edc0af24f1e78a55de9a548967708cece1ec06b52650a982057f6f648069
7
- data.tar.gz: 7ee19e57ed2622426c1b20a7177938361a5f05d9345237c9fad3eb603052c58a477d76afc4ae87feb2f2e1600b893667471ba38198136dee9440ab1be44894d6
6
+ metadata.gz: 763dfe5ab2075a00c8c4e331c4030dcb09226ae467922a1763606cb86aed521d7dc9180e26eed27efa327332419abc85217686f75990151c4d317b73daefbd75
7
+ data.tar.gz: 7a8b3f6807cbdcda5b790dab65f78d20b062c4e086e05edaef8dea57846bc9acfc72c67f5d4dfadea201967e30a1d542ee42884d4dc07767b88c893e7672de86
@@ -1,3 +1,3 @@
1
1
  module Bytedance
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.5"
3
3
  end
@@ -1,4 +1,4 @@
1
- module Bytedance
1
+ module Prek
2
2
  class FastlaneHelper
3
3
 
4
4
  def initialize()
@@ -1,4 +1,4 @@
1
- module Bytedance
1
+ module Prek
2
2
  class FastlaneHelper
3
3
 
4
4
  def initialize()
@@ -1,7 +1,6 @@
1
- module Bytedance
2
- class BytedanceManager
3
- class Lib < BytedanceManager
4
- require_relative './lib/publish'
1
+ module Prek
2
+ class PrekManager
3
+ class Lib < PrekManager
5
4
  require_relative './lib/create'
6
5
  self.abstract_command = true
7
6
  self.summary = ''
@@ -1,7 +1,7 @@
1
- module Bytedance
2
- class BytedanceManager
3
- class Project < BytedanceManager
4
- require_relative './project/create'
1
+ module Prek
2
+ class PrekManager
3
+ class Module < PrekManager
4
+ require_relative './module/create'
5
5
  self.abstract_command = true
6
6
  self.summary = ''
7
7
 
@@ -1,13 +1,11 @@
1
1
  module Prek
2
2
  class PrekManager
3
- class Project
4
- class Create < Project
3
+ class Module
4
+ class Create < Module
5
5
  self.summary = ''
6
6
 
7
7
  def self.options
8
- [['--platform', '是否引入平台基础库,默认引入,不引入使用--no-platform'],
9
- ['--components=[none|optional|all]', 'none 不引入任何组件,optional 选择自己想要的(default), all 引入全部组件,于平台一致'],
10
- ['--prefix', '可选,默认 prefix = Prek']].concat(super)
8
+ [].concat(super)
11
9
  end
12
10
 
13
11
  def initialize(params)
@@ -1,7 +1,7 @@
1
1
 
2
- module Bytedance
3
- class BytedanceManager
4
- class Mvvm < BytedanceManager
2
+ module Prek
3
+ class PrekManager
4
+ class Mvvm < PrekManager
5
5
  self.summary = ''
6
6
 
7
7
  def self.options
@@ -18,7 +18,7 @@ module Prek
18
18
 
19
19
  DESC
20
20
 
21
- self.command = 'bytedance'
21
+ self.command = 'prek'
22
22
 
23
23
  def self.options
24
24
  [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jialei
@@ -118,10 +118,9 @@ files:
118
118
  - lib/command/file_helper.rb
119
119
  - lib/command/lib.rb
120
120
  - lib/command/lib/create.rb
121
- - lib/command/lib/publish.rb
121
+ - lib/command/module.rb
122
122
  - lib/command/module/create.rb
123
123
  - lib/command/mvvm.rb
124
- - lib/command/project.rb
125
124
  - lib/prek.rb
126
125
  - prek.gemspec
127
126
  homepage: https://code.byted.org/jialei.jay/tool_bytedance
@@ -1,43 +0,0 @@
1
- require 'fastlane/other_action'
2
- require 'fastlane/fastlane_require'
3
- require_relative '../file_help'
4
-
5
- module Prek
6
- class PrekManager
7
- class Lib
8
- class Publish < Lib
9
- self.summary = ''
10
-
11
- def self.options
12
-
13
- end
14
-
15
- def initialize(params)
16
- super
17
- @fastlane_helper = FastlaneHelper.new
18
- @target_repo = params.option('repo','optional')
19
- @target_project = params.option('project')
20
- @target_version = params.option('pod-version')
21
- end
22
-
23
- def validate!
24
- super
25
- if @components && !%w(none optional all).include?(@components)
26
- help! "`#{@components}' 参数无效,components = none 或 optional 或 all "
27
- end
28
-
29
- if !@target_project
30
- help! "参数错误,需要输入项目名称,bytedance lib create projectName"
31
- end
32
- end
33
-
34
- def run
35
- super
36
- puts "Publish running"
37
- @fastlane_helper.execute_fastlane_action('git_pull')
38
- end
39
-
40
- end
41
- end
42
- end
43
- end