ikun 1.4.0 → 1.4.2

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: 2a94854b9e56d689c785fb3ba5a4f51071acfe00a64065b6456d38ff3b930f4d
4
- data.tar.gz: 1b8be872f3d3927c91eb866f3d5dbb7931b913480f58ecd0f23ed367b7ce5870
3
+ metadata.gz: c0c1d9de6349b3d10dd4eaa5548b25a748cfc92a3c9fd6d11ba74ca1e95c3b33
4
+ data.tar.gz: 056d7a9a49a900f67ee661bd1de2191304caa74fa91cdf75b5d865757b83d689
5
5
  SHA512:
6
- metadata.gz: 4717996d297ed03203c8fe1004258d8bc48bb7d326464b5381d8a8a59f037f16e7cae89a497c42c6da23a5d605fbfc1e01887edbd99fe2efb2e0f79336075b10
7
- data.tar.gz: 38f1ea7e693b5d1ccb104166106401d87be22dc6bef4aaf1c751ec30caf2ef06a445b96f24cb368722ac89aaf5271179643bf7b2c7eabb8053fa9af085f0aeab
6
+ metadata.gz: b29e6a200d2ee54c47b948ef310c36c2ed7c085baf4427924546f25596bab072ca31de3656f0e52fc73c49ef47bb101841100dbc96cf133bf8b85367451305d2
7
+ data.tar.gz: 77abaf700c0be7b719a124dabbdcc61796f2520e1e199f719722e65b356e256befb911658a54a1ba71b46c29a7c3d09f99b795025266df88cece8eed1ddc6ef3
data/lib/ikun/command.rb CHANGED
@@ -27,16 +27,16 @@ class Setup < Ikun::Command
27
27
  @branch = argv.option('branch', 'main')
28
28
  @target = argv.option('target', 'gpark')
29
29
  @ikun = argv.option('ikun-branch', 'main')
30
- @env = argv.option('env', 'online')
30
+ @env = argv.option('env', 'online') if @target == '233'
31
31
  super
32
32
  end
33
33
 
34
34
  def validate!
35
35
  super
36
36
  target = @target.downcase
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
37
+ help! 'target参数必须是gpark或者233' unless target == 'gpark' || target == '233' || target == 'shindig'
38
+ help! 'env必须是test/pre/online中的一个' unless ['pre', 'online'].include?(@env)
39
+ help! 'target == 233时, env参数才有效' unless (@target == '233' || @target == 'shindig') && @env.length > 0
40
40
  end
41
41
 
42
42
  def run
data/lib/ikun/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ikun
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.2"
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.4.0
4
+ version: 1.4.2
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-09-26 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide