vin-validator 1.1.0.pre.rc.2 → 1.1.0

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: d8e5a52d479ddb4dd27dd04bd8f913aaaaea50fee21536ca8bed3062c1ef84b6
4
- data.tar.gz: 728d00c37bfc36d52cb3d71e9e5ebdcac7fc37a15f704cabd175d095a51f426c
3
+ metadata.gz: 18079484ae913bfde0303a09c79d57a1218d3e2a98c9a08bb16d913327bb4cf8
4
+ data.tar.gz: 1a2564a4468edc52e278a458029dfb3ddf41694204fbb778b0319dc73d9fbb90
5
5
  SHA512:
6
- metadata.gz: f89831b12d70327d1b8cc2b69dee43a09b1b0ae10453117021b45050bc0fdb7a35e7e935e875fccdff806c84f55b54dd56f7f1c138d8a53c1e7ba9fcaf17a78a
7
- data.tar.gz: 940a7c613399ce02e4a2cd4e24f02ac069ce6869268326134267f86f76fa50b00bc848d9f536cadc265060edc021292b663348bfcbf5d2dc0dbe3d06eed1ec62
6
+ metadata.gz: 62479a95c57806373805006a4ac4d928f1702e8331ff127e4df2f0d47da26721aa9bf1fdc621f8484bfb171b95ff92dcb995f21f2397db3cd6a6d92423270f1f
7
+ data.tar.gz: 46e22fd11203835b2dfa6eb21976f23d0bd4fe7700802024e06edd9ddfedc634d3df36b934cbad0251f41d0fcab534a68f143fac3dc1f2c9d14afba2a0411d9f
@@ -33,11 +33,9 @@ module VinValidator
33
33
  }]
34
34
  end
35
35
 
36
- vin_split = vin.split('')
36
+ vin_split = vin.chars
37
37
 
38
- vin_wmi = vin_split[0..2].join
39
- vin_year = vin_split[9].to_s
40
- year = VinValidator::Year.find_by(letter: vin_year)
38
+ year = VinValidator::Year.find_by(letter: vin_split[9].to_s)
41
39
 
42
40
  possible_wmis = Array(simple_check[:make])
43
41
 
@@ -26,6 +26,8 @@ module VinValidator
26
26
 
27
27
  # :nodoc:
28
28
  def initialize(id:, name:)
29
+ super
30
+
29
31
  @id = id
30
32
  @name = name
31
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VinValidator
4
- VERSION = '1.1.0-rc.2'
4
+ VERSION = '1.1.0'
5
5
  end
@@ -38,6 +38,8 @@ module VinValidator
38
38
 
39
39
  # :nodoc:
40
40
  def initialize(id:, wmi:, maker_id:, wmi_suffix: nil)
41
+ super
42
+
41
43
  @id = id
42
44
  @maker_id = maker_id
43
45
  @wmi = wmi
@@ -28,6 +28,8 @@ module VinValidator
28
28
 
29
29
  # :nodoc:
30
30
  def initialize(id:, year:, letter:)
31
+ super
32
+
31
33
  @id = id
32
34
  @year = year
33
35
  @letter = letter
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: 1.1.0.pre.rc.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance
@@ -65,9 +65,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  version: 2.5.3
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ">"
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: 1.3.1
70
+ version: '0'
71
71
  requirements: []
72
72
  rubygems_version: 3.4.10
73
73
  signing_key: