cocoapods-vemars 0.0.5 → 0.0.6

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: 7b7bdedf40d7340147bc0587f4fa986e751273655edaa17cb21e8d9314c9d8a9
4
- data.tar.gz: 43d084a4ccee5fc343af7d4f5e44a7d4c91c63d26cd68e3c4a0fb10e2c49dd7d
3
+ metadata.gz: 503b86605e7ed3937976076c9e1d6bd3089631f7bd8840e669a2fb583be2f158
4
+ data.tar.gz: 7715fb8c8817e21b10e7198be4df9e6a367ab56b5e0c013d2b4811e932207ba4
5
5
  SHA512:
6
- metadata.gz: aa023e879ca0e000beec163259c02123a63202e58df4381d9f35ce079c7f35064e48a93f4a4a2f94ea4631641259418d6cf8bcebe7dfa4d3158ed3f7facc85dd
7
- data.tar.gz: cb8a73dba5d8fd82f2dcfb672cae9f59bfef124bb2e2ad8b7d2f80d84d23c7dd080b62febef86ff9df1bdc3bcf80d5a0ceadacf7e331d0f2e7e7753d21e6d60f
6
+ metadata.gz: 57b157fdf9b702ffc70fe634a68685db0e276fa70c1b3cdfd50f10f8bdecdf189438c9571e949dd2dd911d2c5ca64462527ebdb2841a5673c338c4989112884f
7
+ data.tar.gz: 7e56f1593607cb17e568ce11389d808ec2e6144afa8d56209734cd68a719a16326802508d486406f75e741e7a2de94a2fe52cd583c77f0905fdbd00cb2de6da6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-vemars (0.0.4)
4
+ cocoapods-vemars (0.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -85,7 +85,7 @@ module Pod
85
85
  end
86
86
 
87
87
  def collect_components
88
- components_api = Components_api.new(@basicInfo.version,service_url)
88
+ components_api = Components_api.new(@basicInfo.version,@service_url)
89
89
  all_components = components_api.getComponents
90
90
  @source = components_api.source
91
91
  @selected_components.each do |com|
@@ -23,7 +23,9 @@ module Pod
23
23
  ['--bundle_id=bundle_id', 'the bundle_id from Vemars'],
24
24
  ['--com=COM1,COM2', 'Selected components in vemars.'],
25
25
  ['--config=CONFIG_PATH', 'config path of vemars.'],
26
- ['--service_url=SERVICE_URL', 'url of vemars CLI service.']
26
+ ['--service_url=SERVICE_URL', 'url of vemars CLI service.'],
27
+ ['--git=GIT_URL', 'git url of demo repo'],
28
+ ['--pod_repo_no_update', 'do not run pod repo update']
27
29
  ]
28
30
  options.concat(super.reject { |option, _| option == '--silent' })
29
31
  end
@@ -32,14 +34,15 @@ module Pod
32
34
  @name = argv.shift_argument
33
35
  @version = argv.shift_argument
34
36
  @language = argv.option('language', 'objc')
35
- git_url = argv.option('git', 'git@github.com:volcengine/ve_Template_iOS.git')
37
+ git_url = argv.option('git', 'https://github.com/volcengine/ve_Template_iOS.git')
36
38
  @silent = argv.flag?('silent', false)
39
+ @repo_no_update = argv.flag?('pod_repo_no_update',false)
37
40
  @appkey = argv.option('appkey', '')
38
41
  @bundle_id = argv.option('bundle_id', nil)
39
42
  @selected_components = argv.option('com', "").split(',')
40
43
  @config_json = argv.option('config', '/onekit-config.json')
41
44
  service_url = argv.option('service_url',nil)
42
- @project = VemarsProject.new(@appkey, @selected_components, @config_json, @version, @bundle_id, @name, @language, git_url,@service_url)
45
+ @project = VemarsProject.new(@appkey, @selected_components, @config_json, @version, @bundle_id, @name, @language, git_url,service_url)
43
46
  super
44
47
  @additional_args = argv.remainder!
45
48
  end
@@ -81,7 +84,12 @@ module Pod
81
84
  Dir.chdir(project_dir) do
82
85
  # system('bundle install')
83
86
  # system('bundle exec pod install --repo-update')
84
- system('pod install --repo-update')
87
+ if @repo_no_update
88
+ puts "Pod install skipped!"
89
+ system('pod install --no-repo-update')
90
+ else
91
+ system('pod install --repo-update')
92
+ end
85
93
  end
86
94
  end
87
95
 
@@ -19,9 +19,10 @@ module Pod
19
19
  options = [
20
20
  ['--path=PODFILE_PATH', 'the /path/to/Dir_contains_Podfile'],
21
21
  ['--com=COM1,COM2', 'Selected components in vemars.'],
22
- ['--silent', 'do not run pod install'],
23
22
  ['--config=CONFIG_PATH', 'config path of vemars.'],
24
- ['--service_url=SERVICE_URL', 'url of vemars CLI service.']
23
+ ['--service_url=SERVICE_URL', 'url of vemars CLI service.'],
24
+ ['--git=GIT_URL', 'git url of demo repo'],
25
+ ['--pod_repo_no_update', 'do not run pod repo update']
25
26
  ]
26
27
  options.concat(super.reject { |option, _| option == '--silent' })
27
28
  end
@@ -31,11 +32,12 @@ module Pod
31
32
  @path = argv.option('path', '')
32
33
  @selected_components = argv.option('com', '').split(',')
33
34
  @config_json = argv.option('config', '/onekit-config.json')
34
- super
35
- @additional_args = argv.remainder!
35
+ @repo_no_update = argv.flag?('pod_repo_no_update',false)
36
36
  git_url = argv.option('git', 'git@github.com:volcengine/ve_Template_iOS.git')
37
37
  service_url = argv.option('service_url',nil)
38
38
  @project = VemarsProject.new(@appkey, @selected_components, @config_json, @baseline, git_url, service_url)
39
+ super
40
+ @additional_args = argv.remainder!
39
41
  end
40
42
 
41
43
  def validate!
@@ -67,7 +69,12 @@ module Pod
67
69
  Dir.chdir(project_dir) do
68
70
  # system('bundle install')
69
71
  # system('bundle exec pod install --repo-update')
70
- system('pod install --repo-update')
72
+ if @repo_no_update
73
+ puts "pod install with no repo update"
74
+ system('pod install --no-repo-update')
75
+ else
76
+ system('pod install --repo-update')
77
+ end
71
78
  end
72
79
  end
73
80
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsVemars
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-vemars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - huangbomao@bytedance.com