ares-runtime 2.0.3 → 2.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/ares +9 -11
  3. data/lib/ares/runtime/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c321feb80ab38315e30a032600325160b61fba7e2369fd731052c86ee4fa1341
4
- data.tar.gz: f7409e906b26c98ed91a1fd2c77747b22dc359662d769adcda7ee47002ba2ac4
3
+ metadata.gz: 81de4545e8d66d968044ae58cae71c5c85c046abb0ab64d37d2168cb2fc4d7f3
4
+ data.tar.gz: '06449ce70a874e93a14539dd6dc218d72b62b26e6976598d1c0356f19436b0a5'
5
5
  SHA512:
6
- metadata.gz: 3d7153a6fa16e1eccd05ced673a3527b1a13f50313066f517ea3cd240756ad23ee2feaeedb75a72cbab40e32a4444cb64625a742c5a8e0c0725534428b7d8482
7
- data.tar.gz: 1eef6e2f4c9dd99ae5e037da0e5adab6e30d3573d88f193ff6678d4d928f1f2340a6464185b8edfe2ee0e62d9085c33a9868184449d889579ac2bfebf845d5ef
6
+ metadata.gz: da4b14bba6c3dc93b557be261e8ba46d971f627b87e6db858204e64ef20e83f14521000625da27092d2def1851df2c8bad6809d4281c9f0b90677f16a180a748
7
+ data.tar.gz: e64cd173652723ca5f6b5f6e43d78e32c3d024b4f8054e9c5c8a434119dbaf96225ecd7fb8682bbd67141e3e442c3253905864e858a7c0ccbaebeecf7e51fb5a
data/exe/ares CHANGED
@@ -7,16 +7,14 @@ require 'optparse'
7
7
  module Ares
8
8
  class CLI
9
9
  def self.start
10
- command = ARGV.shift
11
-
12
- case command
13
- when 'init' then init
14
- when 'config' then config
15
- when 'doctor' then doctor
16
- when 'version' then version
17
- when 'logs' then logs
10
+ case ARGV.first
11
+ when 'init' then ARGV.shift; init
12
+ when 'config' then ARGV.shift; config
13
+ when 'doctor' then ARGV.shift; doctor
14
+ when 'version' then ARGV.shift; version
15
+ when 'logs' then ARGV.shift; logs
18
16
  else
19
- run_task(command)
17
+ run_task
20
18
  end
21
19
  end
22
20
 
@@ -40,7 +38,7 @@ module Ares
40
38
  Ares::Runtime::LogsCLI.run
41
39
  end
42
40
 
43
- def self.run_task(first_arg)
41
+ def self.run_task
44
42
  options = {
45
43
  dry_run: false,
46
44
  git: false,
@@ -60,7 +58,7 @@ module Ares
60
58
  exit
61
59
  end
62
60
 
63
- task = ([first_arg] + ARGV).compact.join(' ').strip
61
+ task = ARGV.join(' ').strip
64
62
 
65
63
  if task.empty?
66
64
  puts 'No task provided.'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ares
4
4
  module Runtime
5
- VERSION = '2.0.3'
5
+ VERSION = '2.0.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ares-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shubham