bytedance 0.2.2 → 0.2.4
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/bytedance.gemspec +1 -0
- data/lib/bytedance/version.rb +1 -1
- data/lib/bytedance.rb +0 -1
- data/lib/command/lib/create.rb +34 -34
- data/lib/command/lib/publish.rb +38 -38
- data/lib/command/lib.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ffa6615053f550894db51d0e5c84d8a373b86d4
|
4
|
+
data.tar.gz: 4c5adaee598a0195eeba681a01f8d530ad60646a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc7a661dd19efc213eb75a025dcaa474a8e5b2ab829fad125fcd26bed7801a208feb39e7107ba775a54e96bbdddb955ff1947b3253b5eb0a3efafd2c71087641
|
7
|
+
data.tar.gz: adc671144a8a9194b4d9a0ed9b48eb5560a308482b58eed430837002bb09012258a954d5c52878f992692400832ed8529c6326df88b1e60e8dde3920afc9cdac
|
data/bytedance.gemspec
CHANGED
data/lib/bytedance/version.rb
CHANGED
data/lib/bytedance.rb
CHANGED
data/lib/command/lib/create.rb
CHANGED
@@ -1,42 +1,42 @@
|
|
1
1
|
module Bytedance
|
2
2
|
class BytedanceManager
|
3
3
|
class Lib
|
4
|
-
class Create < Lib
|
5
|
-
|
4
|
+
class Create < Lib
|
5
|
+
self.summary = ''
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
def self.options
|
8
|
+
[['--platform', '是否引入平台基础库,默认引入,不引入使用--no-platform'],
|
9
|
+
['--components=[none|optional|all]', 'none 不引入任何组件,optional 选择自己想要的(default), all 引入全部组件,于平台一致'],
|
10
|
+
['--prefix', '可选,默认 prefix = TT']].concat(super)
|
11
|
+
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
def initialize(params)
|
14
|
+
@projectName = params.shift_argument
|
15
|
+
@components = params.option('components','optional')
|
16
|
+
@prefix = params.option('prefix','TT')
|
17
|
+
@platform = params.flag?('platform',true)
|
18
|
+
super
|
19
|
+
end
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
def validate!
|
22
|
+
super
|
23
|
+
if @components && !%w(none optional all).include?(@components)
|
24
|
+
help! "`#{@components}' 参数无效,components = none 或 optional 或 all "
|
25
|
+
end
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
if !@projectName
|
28
|
+
help! "参数错误,需要输入项目名称,bytedance lib create projectName"
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
33
|
+
def run
|
34
|
+
super
|
35
|
+
parameter = [@projectName,'--components='+ @components,'--prefix=' + @prefix, @platform ? '--platform' : '--no-platform', '--template-url=git@code.byted.org:TTIOS/pod-template.git','--createlib']
|
36
|
+
finalParams = CLAide::ARGV.new(parameter)
|
37
|
+
Pod::Command::Lib::Create.new(finalParams).run
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
data/lib/command/lib/publish.rb
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
require 'fastlane/other_action'
|
2
|
-
require 'fastlane/fastlane_require'
|
3
|
-
require_relative '../file_help'
|
1
|
+
# require 'fastlane/other_action'
|
2
|
+
# require 'fastlane/fastlane_require'
|
3
|
+
# require_relative '../file_help'
|
4
4
|
|
5
|
-
module Bytedance
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
# module Bytedance
|
6
|
+
# class BytedanceManager
|
7
|
+
# class Lib
|
8
|
+
# class Publish < Lib
|
9
|
+
# self.summary = ''
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
# def self.options
|
12
|
+
# [['--project', '是否引入平台基础库,默认引入,不引入使用--no-platform'],
|
13
|
+
# ['--repo', 'none 不引入任何组件,optional 选择自己想要的(default), all 引入全部组件,于平台一致'],
|
14
|
+
# ['--pod-version', '可选,默认 prefix = TT']].concat(super)
|
15
|
+
# end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
# def initialize(params)
|
18
|
+
# super
|
19
|
+
# @fastlane_helper = FastlaneHelper.new
|
20
|
+
# @target_repo = params.option('repo','optional')
|
21
|
+
# @target_project = params.option('project')
|
22
|
+
# @target_version = params.option('pod-version')
|
23
|
+
# end
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
# def validate!
|
26
|
+
# super
|
27
|
+
# if @components && !%w(none optional all).include?(@components)
|
28
|
+
# help! "`#{@components}' 参数无效,components = none 或 optional 或 all "
|
29
|
+
# end
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
# if !@target_project
|
32
|
+
# help! "参数错误,需要输入项目名称,bytedance lib create projectName"
|
33
|
+
# end
|
34
|
+
# end
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
# def run
|
37
|
+
# super
|
38
|
+
# puts "Publish running"
|
39
|
+
# @fastlane_helper.execute_fastlane_action('git_pull')
|
40
|
+
# end
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
end
|
42
|
+
# end
|
43
|
+
# end
|
44
|
+
# end
|
45
|
+
# end
|
data/lib/command/lib.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bytedance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jialei
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: cocoapods
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.4.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.4.0
|
69
83
|
description: manage tool
|
70
84
|
email:
|
71
85
|
- 4705140@qq.com
|