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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 193d68f8bb903729653960bb77273c2f0dab49f57edf19e48770fdf78b977a04
4
- data.tar.gz: 575d2afa32ab7a72c90b7e01a1096edea9a0a3047336b0b586fc007263f5cf6c
3
+ metadata.gz: 0ddfb8fb532566b001836257182732a1f9f959146dafe564aa9eb9b9f10b8638
4
+ data.tar.gz: 6e4fcf5cefc36ec23dc2ca9bc3d754d4e40e8d6837a5519b0df8ad1e616fb588
5
5
  SHA512:
6
- metadata.gz: f03ba1c8d5bd92694bc0f7e8ad6b015ea779e2d81f1b7176bb3926536bf79fe36d13942de8c7d702da214aaea01ebd3a59905d8c48fb72a9ca2f36c6ca0a0b3e
7
- data.tar.gz: 8a91f767a64965beba8e112fde759edc90141e2b496ec80602943050495e2b713aff6274dd0f5bc790440e65217767e7f073066f5f3d5bd0b566b40805af3113
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)