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 +4 -4
- data/lib/vin_validator/base_model.rb +4 -0
- data/lib/vin_validator/knowledge.rb +2 -4
- data/lib/vin_validator/maker.rb +2 -0
- data/lib/vin_validator/version.rb +1 -1
- data/lib/vin_validator/wmi.rb +2 -0
- data/lib/vin_validator/year.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95b11debff5dd74ffe5c02c5799e15bbe2a7c9706e9e8abc767c47292522bb05
|
4
|
+
data.tar.gz: 9ba79f2325d6006f0e4572163271b23fbc36f89ce057211919ea82873355211b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eebe7ac97ee170501530a4b3597a04d2eb91ac0cad5d34ba1c02abedc385aca85b45fa7a764e4dbc0db761a13665ce1cc142b3759f831774b8b8b6330a3b263c
|
7
|
+
data.tar.gz: 97d557bb3b81aea456f90baba304825f0c53368f6678a3f8ec0f7581d22d16910984d8bc4e6588e211d9c6fd7dcf45a35c77a8f6334ae9aa5b1c6cf0491e5ac9
|
@@ -33,11 +33,9 @@ module VinValidator
|
|
33
33
|
}]
|
34
34
|
end
|
35
35
|
|
36
|
-
vin_split = vin.
|
36
|
+
vin_split = vin.chars
|
37
37
|
|
38
|
-
|
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
|
|
data/lib/vin_validator/maker.rb
CHANGED
data/lib/vin_validator/wmi.rb
CHANGED
data/lib/vin_validator/year.rb
CHANGED