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 +4 -4
- data/lib/avm/tools/runner.rb +14 -0
- data/lib/avm/tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7f76082f43aec3689eed38273c83e24a6307cd8e9dbb582fc0eda7d82aaaefe
|
4
|
+
data.tar.gz: 39a41b349999c89af1ab6b8fdfa904382366914df067e4d48ba3d47d737b07c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c474810c867a6aab1c11ad6229e005a79253ec4e6a36f28f3b8d7a0599627fbc73c1050bf21ea0c65cf70a29fc01dbe7a52cb6c69f88acc3d4bf3edf03e8d1f5
|
7
|
+
data.tar.gz: ebc3c3801f3d050f41039e71eb1358a26918ce4d3ed89c7afd92d340c9b67d783564105eec6a2657b7f218e7816270378618556eed2b4dde913ee6907b21fe30
|
data/lib/avm/tools/runner.rb
CHANGED
@@ -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
|
data/lib/avm/tools/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|