avm-tools 0.11.1 → 0.12.0

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: 20510ab3933cf19bae2c7ae012845a0126759023067b31a5d0bc8a460a7803f2
4
- data.tar.gz: 7a8121313ffe1c01c8a1eb2cb46406245a14cdec822b9e2beb9f77bc9bb66d23
3
+ metadata.gz: a7f76082f43aec3689eed38273c83e24a6307cd8e9dbb582fc0eda7d82aaaefe
4
+ data.tar.gz: 39a41b349999c89af1ab6b8fdfa904382366914df067e4d48ba3d47d737b07c7
5
5
  SHA512:
6
- metadata.gz: 52d429231e958647ffc6e19f63052148d387124e38419c3cc83b03edae8c8e9060263855db6a0d89ae2b330ecb4ed2aa053f217b4f39c560415cdf0cac3e709d
7
- data.tar.gz: 5c1a859a46d6ef3dac1b1d2aebb96021293f04a5925f109171f52361e539ce66d4c84d4fc56eb775e7852b63930d49865380bf1cbdf87930c9e239a635ff7bef
6
+ metadata.gz: c474810c867a6aab1c11ad6229e005a79253ec4e6a36f28f3b8d7a0599627fbc73c1050bf21ea0c65cf70a29fc01dbe7a52cb6c69f88acc3d4bf3edf03e8d1f5
7
+ data.tar.gz: ebc3c3801f3d050f41039e71eb1358a26918ce4d3ed89c7afd92d340c9b67d783564105eec6a2657b7f218e7816270378618556eed2b4dde913ee6907b21fe30
@@ -1,22 +1,36 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/console/docopt_runner'
4
+ require 'eac_ruby_utils/console/speaker'
4
5
  require 'eac_ruby_utils/require_sub'
5
6
  ::EacRubyUtils.require_sub(__FILE__)
7
+ require 'avm/tools/version'
6
8
 
7
9
  module Avm
8
10
  module Tools
9
11
  class Runner < ::EacRubyUtils::Console::DocoptRunner
12
+ include ::EacRubyUtils::Console::Speaker
13
+
10
14
  DOC = <<~DOCOPT
11
15
  Tools for AVM.
12
16
 
13
17
  Usage:
14
18
  __PROGRAM__ [options] __SUBCOMMANDS__
19
+ __PROGRAM__ --version
15
20
  __PROGRAM__ -h | --help
16
21
 
17
22
  Options:
18
23
  -h --help Show this screen.
24
+ -V --version Show version.
19
25
  DOCOPT
26
+
27
+ def run
28
+ if options.fetch('--version')
29
+ out(::Avm::Tools::VERSION + "\n")
30
+ else
31
+ run_with_subcommand
32
+ end
33
+ end
20
34
  end
21
35
  end
22
36
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.11.1'
5
+ VERSION = '0.12.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-22 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers