vin-validator 1.1.0.pre.rc.2 → 1.1.1.pre.rc.1

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: d8e5a52d479ddb4dd27dd04bd8f913aaaaea50fee21536ca8bed3062c1ef84b6
4
- data.tar.gz: 728d00c37bfc36d52cb3d71e9e5ebdcac7fc37a15f704cabd175d095a51f426c
3
+ metadata.gz: 95b11debff5dd74ffe5c02c5799e15bbe2a7c9706e9e8abc767c47292522bb05
4
+ data.tar.gz: 9ba79f2325d6006f0e4572163271b23fbc36f89ce057211919ea82873355211b
5
5
  SHA512:
6
- metadata.gz: f89831b12d70327d1b8cc2b69dee43a09b1b0ae10453117021b45050bc0fdb7a35e7e935e875fccdff806c84f55b54dd56f7f1c138d8a53c1e7ba9fcaf17a78a
7
- data.tar.gz: 940a7c613399ce02e4a2cd4e24f02ac069ce6869268326134267f86f76fa50b00bc848d9f536cadc265060edc021292b663348bfcbf5d2dc0dbe3d06eed1ec62
6
+ metadata.gz: eebe7ac97ee170501530a4b3597a04d2eb91ac0cad5d34ba1c02abedc385aca85b45fa7a764e4dbc0db761a13665ce1cc142b3759f831774b8b8b6330a3b263c
7
+ data.tar.gz: 97d557bb3b81aea456f90baba304825f0c53368f6678a3f8ec0f7581d22d16910984d8bc4e6588e211d9c6fd7dcf45a35c77a8f6334ae9aa5b1c6cf0491e5ac9
@@ -27,5 +27,9 @@ module VinValidator
27
27
  ''
28
28
  end
29
29
  end
30
+
31
+ # :nodoc:
32
+ def initialize(*_args, **_kwargs)
33
+ end
30
34
  end
31
35
  end
@@ -33,11 +33,9 @@ module VinValidator
33
33
  }]
34
34
  end
35
35
 
36
- vin_split = vin.split('')
36
+ vin_split = vin.chars
37
37
 
38
- vin_wmi = vin_split[0..2].join
39
- vin_year = vin_split[9].to_s
40
- year = VinValidator::Year.find_by(letter: vin_year)
38
+ year = VinValidator::Year.find_by(letter: vin_split[9].to_s)
41
39
 
42
40
  possible_wmis = Array(simple_check[:make])
43
41
 
@@ -26,6 +26,8 @@ module VinValidator
26
26
 
27
27
  # :nodoc:
28
28
  def initialize(id:, name:)
29
+ super
30
+
29
31
  @id = id
30
32
  @name = name
31
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VinValidator
4
- VERSION = '1.1.0-rc.2'
4
+ VERSION = '1.1.1-rc.1'
5
5
  end
@@ -38,6 +38,8 @@ module VinValidator
38
38
 
39
39
  # :nodoc:
40
40
  def initialize(id:, wmi:, maker_id:, wmi_suffix: nil)
41
+ super
42
+
41
43
  @id = id
42
44
  @maker_id = maker_id
43
45
  @wmi = wmi
@@ -28,6 +28,8 @@ module VinValidator
28
28
 
29
29
  # :nodoc:
30
30
  def initialize(id:, year:, letter:)
31
+ super
32
+
31
33
  @id = id
32
34
  @year = year
33
35
  @letter = letter
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vin-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre.rc.2
4
+ version: 1.1.1.pre.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance