vin-validator 1.1.1 → 1.1.2

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: 29693e715cafc13f7f524aa406809f1f3365c64861d6e725d466357955423408
4
- data.tar.gz: 5908ae7979a6b3276b3d0bfdf40a7993357ddb922c47fbbc4a74410cada1ce11
3
+ metadata.gz: 3d7b6f5f70cc838e759aa5eb7354c384bcb53354d6b855d2d56c0d669ec20035
4
+ data.tar.gz: e8d1273877b4a8dbf5d90d72c7e96c33c7ee13ac5ecd262866e042e4492fadc0
5
5
  SHA512:
6
- metadata.gz: 8e5ba5b44a0c2107c894b3b48c68834e0e11d5fd459cfd5e645031bb0680693b87ac27da1405f0af2f6c9d4ddb75efad35a228ea8343c9a16d3a253f6f4fa427
7
- data.tar.gz: 659d562b46e4c84ba75344e7925634ebe1aab5484fcf32c24cd0dd23e32c968e7429a5c50b5c25da5de7bc003ca6557863aed7fdaaaf925502d77e5591ee7da3
6
+ metadata.gz: 135c7e702101f15db2ab9f616be181822256df3aceb91df6db71cd24409b1a762c8efaeb1027f066cd12e6d4f3e43ced088b21ea445bc542c173ce70260de2c5
7
+ data.tar.gz: 48df1b68c0eec601d4f31c9cf43688b84dd340a806d4d9312158f9515e347be784a9fe3573bb2aa29234e563dc9201a82ab4c748035c723ee8f7e6a5057cce30
data/CHANGELOG.adoc CHANGED
@@ -1,13 +1,18 @@
1
- = 1.1.1
1
+ == 1.1.2
2
+
3
+ * Bug with VINs containing ``/``
4
+ ** URL was changed
5
+
6
+ == 1.1.1
2
7
 
3
8
  * Bug with ``VinValidator::BaseModel#initialize``
4
9
  ** It needed to exist
5
10
 
6
- = 1.1.0
11
+ == 1.1.0
7
12
 
8
13
  * Added ``VinValidator::Knowledge::validate``
9
14
  ** Track revolving 30 years too
10
15
 
11
- = 1.0.0
16
+ == 1.0.0
12
17
 
13
18
  * Intial Release
@@ -13,6 +13,11 @@ module VinValidator
13
13
  def vin_info(vins)
14
14
  vins_to_check = [vins]
15
15
  vins_to_check.flatten!
16
+ vins_to_check = vins_to_check.flat_map do |vin|
17
+ next if vin.nil?
18
+
19
+ vin.split('/').map { |v| v.gsub(/[^0-9a-z]/i, '') }
20
+ end
16
21
  vins_to_check.compact!
17
22
  vins_to_check.uniq!
18
23
 
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './api'
4
- require_relative './maker'
5
- require_relative './result'
6
- require_relative './year'
7
- require_relative './wmi'
3
+ require_relative 'api'
4
+ require_relative 'maker'
5
+ require_relative 'result'
6
+ require_relative 'wmi'
7
+ require_relative 'year'
8
8
 
9
9
  module VinValidator
10
10
  class Knowledge
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VinValidator
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
metadata CHANGED
@@ -1,30 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vin-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-12 00:00:00.000000000 Z
11
+ date: 2023-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rubomatic
14
+ name: rubocop-rubomatic
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.0
19
+ version: 1.3.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.0
27
- description:
26
+ version: 1.3.0
27
+ description:
28
28
  email:
29
29
  - documents@brandsinsurance.com
30
30
  executables: []
@@ -54,7 +54,7 @@ metadata:
54
54
  homepage_uri: https://github.com/BrandsInsurance/vin-validator/
55
55
  source_code_uri: https://github.com/BrandsInsurance/vin-validator
56
56
  changelog_uri: https://github.com/BrandsInsurance/vin-validator/blob/main/CHANGELOG.adoc
57
- post_install_message:
57
+ post_install_message:
58
58
  rdoc_options: []
59
59
  require_paths:
60
60
  - lib
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  version: '0'
71
71
  requirements: []
72
72
  rubygems_version: 3.4.10
73
- signing_key:
73
+ signing_key:
74
74
  specification_version: 4
75
75
  summary: Shared vin validator API for BrandsInsurance
76
76
  test_files: []