vin-validator 0.0.2 → 0.0.4
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/makers.json +1830 -0
- data/lib/vin_validator/version.rb +1 -1
- data/lib/vin_validator/wmi.rb +3 -1
- data/lib/vin_validator/wmis.json +6062 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ddfb8fb532566b001836257182732a1f9f959146dafe564aa9eb9b9f10b8638
|
4
|
+
data.tar.gz: 6e4fcf5cefc36ec23dc2ca9bc3d754d4e40e8d6837a5519b0df8ad1e616fb588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77045ee92e5492cd36ae02a334a155e19b3a105645c8bec5d721f2fe0ea6107f587108e8274d1827d687452cf5040fb4ae2fdc2ebc5a478465b41fd8c8683cae
|
7
|
+
data.tar.gz: cbde65d446fd1801a4797fbd1da2d63033a1e47ec87a1261b3269f8f87e97b06d843ae9eb2d50e4080946ff0167013c41360f28069addf4759cf48cf1cc4d5a0
|
data/lib/vin_validator/maker.rb
CHANGED
@@ -6,7 +6,9 @@ module VinValidator
|
|
6
6
|
def all
|
7
7
|
return @all if defined?(@all)
|
8
8
|
|
9
|
-
@all = JSON.parse(File.read('makers.json'), { symbolize_names: true }).to_h
|
9
|
+
@all = JSON.parse(File.read(File.join(__dir__, 'makers.json')), { symbolize_names: true }).to_h do |id, v|
|
10
|
+
[id.to_s, new(**v)]
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
def find(id)
|