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 +4 -4
- data/lib/bytedance/version.rb +1 -1
- data/lib/command/fastlanehelper.rb +1 -1
- data/lib/command/file_help.rb +1 -1
- data/lib/command/lib.rb +3 -4
- data/lib/command/{project.rb → module.rb} +4 -4
- data/lib/command/module/create.rb +3 -5
- data/lib/command/mvvm.rb +3 -3
- data/lib/prek.rb +1 -1
- metadata +2 -3
- data/lib/command/lib/publish.rb +0 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d6b45600a1c9adfb9ca348bc8c4540a2c5e957622ef8c410e9f7c76fe6daa94
|
4
|
+
data.tar.gz: 9b54dd32fcfe1a341bfb39bce602ef4c2a8df38257435b3461fd2043b34c081f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 763dfe5ab2075a00c8c4e331c4030dcb09226ae467922a1763606cb86aed521d7dc9180e26eed27efa327332419abc85217686f75990151c4d317b73daefbd75
|
7
|
+
data.tar.gz: 7a8b3f6807cbdcda5b790dab65f78d20b062c4e086e05edaef8dea57846bc9acfc72c67f5d4dfadea201967e30a1d542ee42884d4dc07767b88c893e7672de86
|
data/lib/bytedance/version.rb
CHANGED
data/lib/command/file_help.rb
CHANGED
data/lib/command/lib.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
module
|
2
|
-
class
|
3
|
-
class
|
4
|
-
require_relative './
|
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
|
4
|
-
class Create <
|
3
|
+
class Module
|
4
|
+
class Create < Module
|
5
5
|
self.summary = ''
|
6
6
|
|
7
7
|
def self.options
|
8
|
-
[
|
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)
|
data/lib/command/mvvm.rb
CHANGED
data/lib/prek.rb
CHANGED
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.
|
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/
|
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
|
data/lib/command/lib/publish.rb
DELETED
@@ -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
|