vin-validator 0.0.3 → 0.0.4
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:
|
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)
|
data/lib/vin_validator/wmi.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('wmis.json'), { symbolize_names: true }).to_h
|
9
|
+
@all = JSON.parse(File.read(File.join(__dir__, 'wmis.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)
|
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: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brands Insurance
|
@@ -38,11 +38,11 @@ files:
|
|
38
38
|
- lib/vin_validator/api.rb
|
39
39
|
- lib/vin_validator/knowledge.rb
|
40
40
|
- lib/vin_validator/maker.rb
|
41
|
+
- lib/vin_validator/makers.json
|
41
42
|
- lib/vin_validator/result.rb
|
42
43
|
- lib/vin_validator/version.rb
|
43
44
|
- lib/vin_validator/wmi.rb
|
44
|
-
-
|
45
|
-
- wmis.json
|
45
|
+
- lib/vin_validator/wmis.json
|
46
46
|
homepage: https://github.com/BrandsInsurance/vin-validator/
|
47
47
|
licenses:
|
48
48
|
- MIT
|
File without changes
|
File without changes
|