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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VinValidator
4
- VERSION = '0.0.2'
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)