vindetta 0.11.0 → 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
  SHA1:
3
- metadata.gz: 91622030e5ffa8129cb5a53e334c3b977ffffda3
4
- data.tar.gz: 7779bc8f3057b7a6621a98c18e1bbfde16964c74
3
+ metadata.gz: 045ea11f936070763a5697375633ef5728d463c6
4
+ data.tar.gz: 18378b1d362e4b06879dea15b944cd3a421de99a
5
5
  SHA512:
6
- metadata.gz: cc784d470acdbc8888c4c0b0981f1b4a7dbdfe647471471240de6a0cf7d98e90f2e115c3463b095e9ea4a5a7507f1e2f144519bfbaf283803a6a95064fdfcb91
7
- data.tar.gz: 5eda5fdbcdac9e529d65408702cef3e18db618d303f3c17ddda38625970fda2177d7473b3895089e2cea21c6a78dd80b74e5fa6f64edc5099c47651537d09924
6
+ metadata.gz: 2a029ba9d2dbacb6d90fa98ebd5d390e09753c7172ef96c3a80f66d98794af683ce1b0792b0e87a88ccea34ba5969d58cc25090174cc02ef7e2064e9962d505e
7
+ data.tar.gz: 4441fb64d3779acb4915067110a7f45ccb155949ce6550b8ada4ec5b9a0fbea46b4212205130186627216d6717094dffb6b17c066c607a539b6223ef01605935
data/lib/vindetta/cli.rb CHANGED
@@ -27,7 +27,9 @@ module Vindetta
27
27
  desc "Decodes a VIN"
28
28
  command %i[decode d] do |c|
29
29
  c.action do |_global, _options, _args|
30
- vin = STDIN.gets.chomp || _args.first
30
+ vin = _args.first
31
+
32
+ exit_now!("vin is required") if vin.nil?
31
33
 
32
34
  puts Vindetta::Decoder.decode_vin(vin).to_json
33
35
  end
@@ -1,3 +1,3 @@
1
1
  module Vindetta
2
- VERSION = "0.11.0".freeze
2
+ VERSION = "0.12.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.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Decot