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: 38198acef62a76065fc57b5365744bb09b3c85561a7d2b6cbc61ad121caa4585
4
- data.tar.gz: 241fedf88d2f32c952bb86ca5d8052daac1838406cd00aa39bd6a919a5a6eb17
3
+ metadata.gz: 0ddfb8fb532566b001836257182732a1f9f959146dafe564aa9eb9b9f10b8638
4
+ data.tar.gz: 6e4fcf5cefc36ec23dc2ca9bc3d754d4e40e8d6837a5519b0df8ad1e616fb588
5
5
  SHA512:
6
- metadata.gz: 12fb8d34b816c5c1d75462ded857db58cc54bb3de8c544e755968c07666f2f78717209d4212aa731d5cf8cd7e6b6dc4333d8929f3b1675abaafca17ba4525d2a
7
- data.tar.gz: 7e99a3ba78f2e971c653aa4171465cd1de6491be6b1d369a8ca4d77e873d62f10dfde1533f42428a4f0551d64325683a6946544fb822b4c6cccc69bd8937e37e
6
+ metadata.gz: 77045ee92e5492cd36ae02a334a155e19b3a105645c8bec5d721f2fe0ea6107f587108e8274d1827d687452cf5040fb4ae2fdc2ebc5a478465b41fd8c8683cae
7
+ data.tar.gz: cbde65d446fd1801a4797fbd1da2d63033a1e47ec87a1261b3269f8f87e97b06d843ae9eb2d50e4080946ff0167013c41360f28069addf4759cf48cf1cc4d5a0
@@ -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 { |id, v| [id.to_s, new(**v)] }
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VinValidator
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
@@ -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 { |id, v| [id.to_s, new(**v)] }
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.3
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
- - makers.json
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