vin_exploder 0.4.3 → 0.4.4

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vin_exploder (0.4.2)
4
+ vin_exploder (0.4.4)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -4,7 +4,7 @@ module VinExploder
4
4
 
5
5
  class Explosion
6
6
 
7
- attr_reader :vin, :success, :errors, :make, :model, :year, :driveline, :body_style, :fuel_type, :number_of_doors, :all
7
+ attr_reader :vin_key, :success, :errors, :make, :model, :year, :driveline, :body_style, :fuel_type, :number_of_doors, :all
8
8
 
9
9
  def initialize(vin, vin_hash, errors=[])
10
10
  @vin = vin
@@ -23,9 +23,9 @@ module VinExploder
23
23
  #could make the hashes more complete
24
24
  case vin
25
25
  when '3D7LU38C83G854645'
26
- { :vin => '3D7LU38C83G854645', :make => 'Dodge', :model => 'Ram 3500', :year => '2004', :trim_level => 'ST Quad Cab Long Bed 4WD', :fuel_type => 'Desiel', :engine_type => '5.9L L6 OHV 24V TURBO DIESEL', :number_of_doors => '4', :manufactured_in => 'UNITED STATES', :production_seq_number => 'C27031', :driveline => '4WD', :body_style => "CREW CAB PICKUP 4-DR" }
26
+ { :vin => '3D7LU38C83G854645', :make => 'Dodge', :model => 'Ram 3500', :year => '2004', :trim_level => 'ST Quad Cab Long Bed 4WD', :fuel_type => 'Desiel', :engine_type => '5.9L L6 OHV 24V TURBO DIESEL', :number_of_doors => '4', :manufactured_in => 'UNITED STATES', :production_seq_number => 'C27031', :driveline => '4WD', :body_style => "CREW CAB PICKUP 4-DR", :gvwr_class => 'H', :vehicle_type => 'PICKUP', :"anti-brake_system" => '4-Wheel ABS' }
27
27
  when '1G1ND52F14M587843'
28
- { :vin => '1G1ND52F14M587843', :make => 'Chevrolet', :model => 'Classic', :year => '2004', :trim_level => 'Fleet', :fuel_type => 'Gas', :engine_type => '2.2L L4 DOHC', :number_of_doors => '4', :manufactured_in => 'UNITED STATES', :production_seq_number => '587843', :driveline => 'FWD', :body_style => "SEDAN 4-DR" }
28
+ { :vin => '1G1ND52F14M587843', :make => 'Chevrolet', :model => 'Classic', :year => '2004', :trim_level => 'Fleet', :fuel_type => 'Gas', :engine_type => '2.2L L4 DOHC', :number_of_doors => '4', :manufactured_in => 'UNITED STATES', :production_seq_number => '587843', :driveline => 'FWD', :body_style => "SEDAN 4-DR", :gvwr_class => 'D', :vehicle_type => 'PASSENGER', :"anti-brake_system" => '4-Wheel ABS' }
29
29
  when '12345678912345678'
30
30
  { :errors => [{'5' => 'Invalid VIN number: This VIN number did not pass checksum test.'}] }
31
31
  when /[IOQ]/
@@ -1,3 +1,3 @@
1
1
  module VinExploder
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
@@ -22,6 +22,7 @@ describe TestAdapter do
22
22
  hash[:make].should == 'Chevrolet'
23
23
  hash[:model].should == 'Classic'
24
24
  hash[:fuel_type].should == 'Gas'
25
+ hash[:vin].should == '1G1ND52F14M587843'
25
26
  end
26
27
 
27
28
  it "should return checksum error for vin 12345678912345678" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vin_exploder
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.3
5
+ version: 0.4.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jake Mallory
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-18 00:00:00 Z
13
+ date: 2011-08-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec