vin-validator 1.0.0.pre.rc.4 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0900718cbe575b518977738752910919e1cd816dda122a14a3bcf61fa15ec08
4
- data.tar.gz: 4229000169bba080ef7f1be600499da69c0f9f65d40b066f7635eed3e3530825
3
+ metadata.gz: 6c3d04d4468c96f8cbed1cf0e44dd34ef3d46fdf263b7fe3ad09c48d90c9224b
4
+ data.tar.gz: '09f46ff94ce6201b670e23e0e7b0e7da1a1d9559420f459f280f4202e665b433'
5
5
  SHA512:
6
- metadata.gz: 6ee7bbe424b9d984356af801069dce68f1a46c9db272831b1990703351bbcf47756c5494f38cf6df061014e65519a98b0cabd10d039fc098d736fcfabb97c479
7
- data.tar.gz: bf9cb2c03dabcc1771a567f973f0705ca753f99a63e39f60753bca42c2c95cd44486e378534f16e0000df5d5c5002893d0bae5ad10337bd5b709bb296ba6cdf3
6
+ metadata.gz: 893b7796831b1b524a0116e252ab5cb4c9ba8d2b16c5c65e15111e02513e373d7eb7fc38bc4adb3ab5594e683dfed9aef6361662a9ed41730623f7f991411a3b
7
+ data.tar.gz: a60f59a6b161b07bcce6d0b355f2b96a84376545ae879f55ebb55d3b20d677b6fbebfde52b44e204ac3d8cc53d03d0eaeba49edae705b809f97ba3d5d69085b0
@@ -11,9 +11,6 @@ module VinValidator
11
11
  # @return [Hash]
12
12
  #
13
13
  def vin_info(vins)
14
- check_nhtsa = block_given? ? yield : true
15
- return {} unless check_nhtsa
16
-
17
14
  vins_to_check = [vins]
18
15
  vins_to_check.flatten!
19
16
  vins_to_check.compact!
@@ -15,8 +15,8 @@ module VinValidator
15
15
  #
16
16
  # @return [Hash]
17
17
  #
18
- def vin_info(vins, hit_nhtsa = false, &block)
19
- results = hit_nhtsa ? VinValidator::Api.vin_info(vins, &block) : {}
18
+ def vin_info(vins, hit_nhtsa = false)
19
+ results = hit_nhtsa ? VinValidator::Api.vin_info(vins) : {}
20
20
 
21
21
  Array(vins).map { |vin| [vin, build_results(vin, results.fetch(vin, {}))] }.to_h
22
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VinValidator
4
- VERSION = '1.0.0-rc.4'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vin-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.rc.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubomatic
@@ -62,9 +62,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  version: 2.5.3
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ">"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 1.3.1
67
+ version: '0'
68
68
  requirements: []
69
69
  rubygems_version: 3.4.10
70
70
  signing_key: