vin-validator 1.0.0.pre.rc.2 → 1.0.0.pre.rc.3
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/maker.rb +3 -1
- data/lib/vin_validator/version.rb +1 -1
- data/lib/vin_validator/wmi.rb +3 -1
- 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: 3741f814c141ef471f7ebcfda3251460cf7b0b3efa6c37533ed7f2f7c23e0b50
|
4
|
+
data.tar.gz: ea39c504029413cf2e1ea7c76a1204dd78a3740873c090a1528a3f55e6b95b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f26742ead7a64d80fe89441ca9c2551855f24a2cd073643ae92d2455ef93b4b2d5ec17c2addfe1fd698ce6a0950be26728c762ef6954ea27ebafaff000c061
|
7
|
+
data.tar.gz: dcd6eb8eca3cf5aebef2a6885f8c38e7702a43ea7dfbe632345b353856db73744abcb4f1862aea00b8ea4461fd735037589682153cc57c40a532e22a8ec4aec2
|
data/lib/vin_validator/maker.rb
CHANGED
@@ -10,9 +10,11 @@ module VinValidator
|
|
10
10
|
def all
|
11
11
|
return @all if defined?(@all)
|
12
12
|
|
13
|
-
|
13
|
+
all = JSON.parse(File.read(File.join(__dir__, 'makers.json')), { symbolize_names: true }).map do |id, v|
|
14
14
|
[id.to_s, new(**v)]
|
15
15
|
end
|
16
|
+
|
17
|
+
@all = all.to_h
|
16
18
|
end
|
17
19
|
|
18
20
|
# Finds the maker with the given `id`
|
data/lib/vin_validator/wmi.rb
CHANGED
@@ -10,9 +10,11 @@ module VinValidator
|
|
10
10
|
def all
|
11
11
|
return @all if defined?(@all)
|
12
12
|
|
13
|
-
|
13
|
+
all = JSON.parse(File.read(File.join(__dir__, 'wmis.json')), { symbolize_names: true }).map do |id, v|
|
14
14
|
[id.to_s, new(**v)]
|
15
15
|
end
|
16
|
+
|
17
|
+
@all = all.to_h
|
16
18
|
end
|
17
19
|
|
18
20
|
# Finds the wmi with the given `id`
|