vindetta 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vindetta/cli.rb +4 -1
- data/lib/vindetta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91622030e5ffa8129cb5a53e334c3b977ffffda3
|
4
|
+
data.tar.gz: 7779bc8f3057b7a6621a98c18e1bbfde16964c74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc784d470acdbc8888c4c0b0981f1b4a7dbdfe647471471240de6a0cf7d98e90f2e115c3463b095e9ea4a5a7507f1e2f144519bfbaf283803a6a95064fdfcb91
|
7
|
+
data.tar.gz: 5eda5fdbcdac9e529d65408702cef3e18db618d303f3c17ddda38625970fda2177d7473b3895089e2cea21c6a78dd80b74e5fa6f64edc5099c47651537d09924
|
data/lib/vindetta/cli.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "gli"
|
2
2
|
require "vindetta/version"
|
3
|
+
require "pp"
|
3
4
|
|
4
5
|
module Vindetta
|
5
6
|
class CLI
|
@@ -26,7 +27,9 @@ module Vindetta
|
|
26
27
|
desc "Decodes a VIN"
|
27
28
|
command %i[decode d] do |c|
|
28
29
|
c.action do |_global, _options, _args|
|
29
|
-
|
30
|
+
vin = STDIN.gets.chomp || _args.first
|
31
|
+
|
32
|
+
puts Vindetta::Decoder.decode_vin(vin).to_json
|
30
33
|
end
|
31
34
|
end
|
32
35
|
|
data/lib/vindetta/version.rb
CHANGED