prek 0.5.0 → 0.5.1
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
- metadata +1 -2
- 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: 0bb7d1e5d58851072ec15ca1c35c789c623813161d4756e62cd1d5510efe5a67
|
4
|
+
data.tar.gz: 349c211f217cc384160722c0600c7040b454c5d576dc0798810d0f7b195e768e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f27e3bc224c651122f3ea68cb31d7d9930fb2365fb94b96873779e6cfcce967735ab6e1501cd8798daa528ae2a138490a2b1dba1bfbf8be77a63867e98d0e27b
|
7
|
+
data.tar.gz: 6ea795248ccc30b815d9a8ff217e365d2df00a00b9b34ec7af59eee423a819822c26ffd41724214815802b0467d2d0c638279d37a3c49a3bd1316cad5bf222d8
|
data/lib/bytedance/version.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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jialei
|
@@ -118,7 +118,6 @@ 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
|
122
121
|
- lib/command/module/create.rb
|
123
122
|
- lib/command/mvvm.rb
|
124
123
|
- lib/command/project.rb
|
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
|