ikun 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2283436b85d82006e7a2a6bf796650faab5c003e14ccae960d30e5352208c9de
4
- data.tar.gz: d9ddc34590dfbee24524010aebe154a8e629dd89b936a54587f3794e82b95c8c
3
+ metadata.gz: 576c54f998f458fcf32c7cb1a44679328390f077aa6d4b21af9b6e87d70b82fc
4
+ data.tar.gz: e5b4035c750c6cb7f70d1a33be01ee3ba6643469f00a4548d82de308969865e1
5
5
  SHA512:
6
- metadata.gz: bd5f6156bbedd53effd6be69cea5db7aadc892056966d807f11ccd5f85369c1712efeeb022a5e36a3024e253d7dad43c6a52d1cbb6e2afc93bb065abf5e6736a
7
- data.tar.gz: 7f7feb57cdf0a5aef287974511bc4635b33df6982af7ec45b5320cabcb673a52bc265616f51709dd5df36dd27528e54ac1c30e53171c5d0924bdaadbbfed6960
6
+ metadata.gz: de4b26230c03e771c976bf34a4299e9b82fbb8be72ae249a36279d49ff615852f4178d8dc640414097e5d4f984076ff179e1475157bad626edfc451518767ba4
7
+ data.tar.gz: 7c9bce3da3e2d8b26a83f07390dd16627e6c11c761bc01919002a4e13d91ffd4f0be05fdda60a867182d004c7d74b17c97a0295e7985850dae53811f8f09e2d1
data/lib/ikun/command.rb CHANGED
@@ -17,7 +17,8 @@ class Setup < Ikun::Command
17
17
  ['--shipping', '使用shipping路径的MetaWorldMobile.framework'],
18
18
  ['--branch=CONTAINER_BRANCH', '项目分支, 默认为main分支'],
19
19
  ['--target=BUSINESS_LINE', '业务线(gpark or 233), 默认为gpark, 不区分大小写.'],
20
- ['--ikun-branch', 'ikun使用哪个分支']
20
+ ['--ikun-branch', 'ikun使用哪个分支'],
21
+ ['--env', '项目环境, target == 233时生效, test/pre/online']
21
22
  ].concat(super)
22
23
  end
23
24
 
@@ -26,6 +27,7 @@ class Setup < Ikun::Command
26
27
  @branch = argv.option('branch', 'main')
27
28
  @target = argv.option('target', 'gpark')
28
29
  @ikun = argv.option('ikun-branch', 'main')
30
+ @env = argv.option('env', 'online')
29
31
  super
30
32
  end
31
33
 
@@ -33,6 +35,8 @@ class Setup < Ikun::Command
33
35
  super
34
36
  target = @target.downcase
35
37
  help! 'target参数必须是gpark或者233' unless target == 'gpark' || target == '233'
38
+ help! 'env必须是test/pre/online中的一个' unless ['test', 'pre', 'online'].include?(@env)
39
+ help! 'target == 233时, env参数才有效' unless @target == '233' && @env.length > 0
36
40
  end
37
41
 
38
42
  def run
data/lib/ikun/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ikun
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ikun
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lei.han
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide