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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b1970e58593c5f4531f105f3ad163f7ed68eb07
4
- data.tar.gz: 29b925576eda7fe4452548a6e9fb7a0f6f40da37
3
+ metadata.gz: 4ffa6615053f550894db51d0e5c84d8a373b86d4
4
+ data.tar.gz: 4c5adaee598a0195eeba681a01f8d530ad60646a
5
5
  SHA512:
6
- metadata.gz: baee5629224d670594effcd3626c67806cd0cc3a25d81b533e60a94b560cd506d42131ed50f6b43c0ea69c9b4abd9b904779d7c821f72f61e1f4671e5d366617
7
- data.tar.gz: 6e474670dac57b8451758c6d25b573e24ae647fb5003ca5225e0d0b0525c939703732a5dddccdda5fa3ae907e5f082298b765f8c187ec7bbedc663f1de552dc7
6
+ metadata.gz: bc7a661dd19efc213eb75a025dcaa474a8e5b2ab829fad125fcd26bed7801a208feb39e7107ba775a54e96bbdddb955ff1947b3253b5eb0a3efafd2c71087641
7
+ data.tar.gz: adc671144a8a9194b4d9a0ed9b48eb5560a308482b58eed430837002bb09012258a954d5c52878f992692400832ed8529c6326df88b1e60e8dde3920afc9cdac
data/bytedance.gemspec CHANGED
@@ -29,5 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_runtime_dependency "terminal-table",'~> 1.8'
30
30
  # spec.add_runtime_dependency "fastlane", '~> 2.94'
31
31
  spec.add_runtime_dependency "colored" ,'~> 1.2'
32
+ spec.add_runtime_dependency "cocoapods" ,'~> 1.4.0'
32
33
 
33
34
  end
@@ -1,3 +1,3 @@
1
1
  module Bytedance
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.4"
3
3
  end
data/lib/bytedance.rb CHANGED
@@ -3,7 +3,6 @@
3
3
  require 'claide'
4
4
  require 'colored'
5
5
  require 'cocoapods'
6
- require 'fastlane'
7
6
 
8
7
 
9
8
  module Bytedance
@@ -1,42 +1,42 @@
1
1
  module Bytedance
2
2
  class BytedanceManager
3
3
  class Lib
4
- class Create < Lib
5
- self.summary = ''
4
+ class Create < Lib
5
+ self.summary = ''
6
6
 
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
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
- 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
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
- def validate!
22
- super
23
- if @components && !%w(none optional all).include?(@components)
24
- help! "`#{@components}' 参数无效,components = none 或 optional 或 all "
25
- end
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
- if !@projectName
28
- help! "参数错误,需要输入项目名称,bytedance lib create projectName"
29
- end
30
-
31
- end
27
+ if !@projectName
28
+ help! "参数错误,需要输入项目名称,bytedance lib create projectName"
29
+ end
30
+
31
+ end
32
32
 
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
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
@@ -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
- class BytedanceManager
7
- class Lib
8
- class Publish < Lib
9
- self.summary = ''
5
+ # module Bytedance
6
+ # class BytedanceManager
7
+ # class Lib
8
+ # class Publish < Lib
9
+ # self.summary = ''
10
10
 
11
- def self.options
12
- [['--project', '是否引入平台基础库,默认引入,不引入使用--no-platform'],
13
- ['--repo', 'none 不引入任何组件,optional 选择自己想要的(default), all 引入全部组件,于平台一致'],
14
- ['--pod-version', '可选,默认 prefix = TT']].concat(super)
15
- end
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
- 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
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
- def validate!
26
- super
27
- if @components && !%w(none optional all).include?(@components)
28
- help! "`#{@components}' 参数无效,components = none 或 optional 或 all "
29
- end
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
- if !@target_project
32
- help! "参数错误,需要输入项目名称,bytedance lib create projectName"
33
- end
34
- end
31
+ # if !@target_project
32
+ # help! "参数错误,需要输入项目名称,bytedance lib create projectName"
33
+ # end
34
+ # end
35
35
 
36
- def run
37
- super
38
- puts "Publish running"
39
- @fastlane_helper.execute_fastlane_action('git_pull')
40
- end
36
+ # def run
37
+ # super
38
+ # puts "Publish running"
39
+ # @fastlane_helper.execute_fastlane_action('git_pull')
40
+ # end
41
41
 
42
- end
43
- end
44
- end
45
- end
42
+ # end
43
+ # end
44
+ # end
45
+ # end
data/lib/command/lib.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Bytedance
2
2
  class BytedanceManager
3
3
  class Lib < BytedanceManager
4
- require_relative './lib/publish'
4
+ # require_relative './lib/publish'
5
5
  require_relative './lib/create'
6
6
  self.abstract_command = true
7
7
  self.summary = ''
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.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