ikun 1.1.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e6db3c008111692a5d4cd57bf374c8945c41912c6f6df6f8caec3d2e96b47db
4
- data.tar.gz: d2ad1be006ace4178ba10fc20e68361f69b9e2f708698b47c82600667d75df8d
3
+ metadata.gz: 8b6d8a315b2f7269ae2cf7add4b12e2cec186dddbabd18fd8edeef8d2b1814c0
4
+ data.tar.gz: b2aaa0d9967a161eb77d51044a8d74b055c88fe8f459d8c98cd8410da8227240
5
5
  SHA512:
6
- metadata.gz: 72d72d6496e3e96623804871a6c2b695b28946d164e6522241fce717974e1eb8f1fcc0efd160d78463f6eacc043fd0f2eac84266205f887a89076e5443b7b792
7
- data.tar.gz: d8641316ec8a4718d8592099715c9d5c55226eea36cb397927f81c0e24aec1dc1b13f9aefebc6e38808ea8648cb39d801fda26d6efcf030fb4a1599bb890c2f6
6
+ metadata.gz: 68a9489296edf3137fa7cc88cbbbed6e4532df4650cba62ac9048be50eb2666c42490038ff1d8fc92af549c509aa8c84409addc3374c75398aa8853e4e6572ec
7
+ data.tar.gz: ba11ae4f4c151a4e3dc15535d0014c3aec674f6ce2b8dd68f5fd3e44af21b2a3eaca58af8864c5b5d1a2aefd4ac0cece414953e48cad5e94550e9388486a7e6a
data/lib/ikun/command.rb CHANGED
@@ -16,7 +16,8 @@ class Setup < Ikun::Command
16
16
  [
17
17
  ['--shipping', '使用shipping路径的MetaWorldMobile.framework'],
18
18
  ['--branch=CONTAINER_BRANCH', '项目分支, 默认为main分支'],
19
- ['--target=BUSINESS_LINE', '业务线(gpark or 233), 默认为gpark, 不区分大小写.']
19
+ ['--target=BUSINESS_LINE', '业务线(gpark or 233), 默认为gpark, 不区分大小写.'],
20
+ ['--ikun-branch', 'ikun使用哪个分支']
20
21
  ].concat(super)
21
22
  end
22
23
 
@@ -24,18 +25,19 @@ class Setup < Ikun::Command
24
25
  @shipping = argv.flag?('shipping', false)
25
26
  @branch = argv.option('branch', 'main')
26
27
  @target = argv.option('target', 'gpark')
28
+ @ikun = argv.option('ikun-branch', 'main')
27
29
  super
28
30
  end
29
31
 
30
32
  def validate!
31
33
  super
32
34
  target = @target.downcase
33
- help! '业务线必须是gpark或者233' unless target == 'gpark' || target == '233'
35
+ help! 'target参数必须是gpark或者233' unless target == 'gpark' || target == '233'
34
36
  end
35
37
 
36
38
  def run
37
39
  FileUtils.rm_rf('ikun') if File.exists?('ikun')
38
- `git clone git@gitlab.appshahe.com:shared-specs/ikun.git -b main`
40
+ `git clone git@gitlab.appshahe.com:shared-specs/ikun.git -b #{@ikun}`
39
41
  FileUtils.cd('ikun')
40
42
  `sh setup.sh -s #{@shipping} -b #{@branch} -t #{@target}`
41
43
  end
data/lib/ikun/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ikun
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.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.1.0
4
+ version: 1.1.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-02-26 00:00:00.000000000 Z
11
+ date: 2024-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide