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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b774955f575d00bad446f59e25c82365583573d9
4
- data.tar.gz: 851bc1bfba77d1cafc759cd4113bd92fb711e14f
3
+ metadata.gz: 91622030e5ffa8129cb5a53e334c3b977ffffda3
4
+ data.tar.gz: 7779bc8f3057b7a6621a98c18e1bbfde16964c74
5
5
  SHA512:
6
- metadata.gz: 3899d1385fa04762a7d33ee0083541e8c1f3ba1ee9672b49f1cd385301edf33f4e7fcb739a16bbff9e322c9ad923c781bb8a051082e477d33aab5030b51d7bb8
7
- data.tar.gz: 6ff55db690ef886568974f9db5a1553ea8e2a6d3f638cac19eb5a76a9b3cd410f5d9415c2ff29baea7b8e1155e4d1d320d2c85c205123220816e49dab28d4be8
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
- puts Vindetta::Decoder.decode_vin(_args.first).to_json
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
 
@@ -1,3 +1,3 @@
1
1
  module Vindetta
2
- VERSION = "0.10.0".freeze
2
+ VERSION = "0.11.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vindetta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Decot