Sha256: 4a922b2d34c4a8fffd99d8aa6a37f34a1c04b582226f8ad3bed51481722142ad

Contents?: true

Size: 652 Bytes

Versions: 5

Compression:

Stored size: 652 Bytes

Contents

require "vindetta/calculator"
require "vindetta/cli"
require "vindetta/decoder"
require "vindetta/generator"
require "vindetta/validator"
require "vindetta/version"

module Vindetta
  VIN_LENGTH = 17
  WMI_LENGTH = 3
  VDS_LENGTH = 6
  VIS_LENGTH = 8

  CHECK_DIGIT_INDEX = 8
  PLANT_CODE_INDEX = 10

  WMI_CHARACTERS = "0123456789ABCDEFGHJKLMNPRSTUVWXYZ".chars
  VDS_CHARACTERS = "0123456789ABCDEFGHJKLMNPRSTUVWXYZ".chars
  VIS_CHARACTERS = "0123456789ABCDEFGHJKLMNPRSTUVWXYZ".chars
  MODEL_YEAR_CHARACTERS = VIS_CHARACTERS - "UZ".chars

  WMI_RANGE = 0..2
  VDS_RANGE = 3..CHECK_DIGIT_INDEX
  PRODUCTION_NUMBER_RANGE = 11..16
  VIS_RANGE = 9..16
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vindetta-0.24.0 lib/vindetta.rb
vindetta-0.23.0 lib/vindetta.rb
vindetta-0.22.0 lib/vindetta.rb
vindetta-0.21.0 lib/vindetta.rb
vindetta-0.20.0 lib/vindetta.rb