em-synchrony-dataone-vin 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: c877baafea2c7245911ad6694c98d8a623c0fa64
4
- data.tar.gz: 3a99bf467ca37e2d9779c867708514ad75af8f42
3
+ metadata.gz: 3b11b927ec63be9a78bc3017b206aea2bfaab190
4
+ data.tar.gz: ad1a0e2636a93623d1657d6b770f0a9277568a42
5
5
  SHA512:
6
- metadata.gz: c74f30d047628e390420ac38caa7c3d70b604e3e6ac6c81158ba4fb8ef9af483f6d32279d33453f49aa0dcde2698dd2a7af20eea07c200c6a5f677d17a9abe99
7
- data.tar.gz: 09a37d24790f4fb8e01fb3bb2e8fcef5f5f5b7bf70e52ff16ab5c26bd48dd4f6ebae55b9a357b135c8edb4436fe1018e1ae12ebb710c525a136dc3cd65e71311
6
+ metadata.gz: 2ca6c5f73edf1ba948ed044f83cc84ad82f9f7b6fcb1153d31d1bd57d1a5b72cc0c766d1c9477a8509aa724f55a1743b4a40fb982aafad8c3b73bb20e75de0e6
7
+ data.tar.gz: e95bb7d595aae81271c3040e9652be04f7e39f62a484c57ec3fd6fc0491dcf8142e5f9221f91fa8a23fef7f790436aa014a393fa6c13b16989a4c29ecba92992
@@ -1,7 +1,7 @@
1
1
  module EventMachine
2
2
  module Synchrony
3
3
  module DataoneVin
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -38,33 +38,33 @@ module EventMachine
38
38
  }
39
39
 
40
40
  DATA_PATHS = {
41
- 'year' => ['basic_data', 'year'],
42
- 'make' => ['basic_data', 'make'],
43
- 'model' => ['basic_data', 'model'],
44
- 'trim_level' => ['basic_data', 'trim'],
45
- 'engine_type' => ['engines', 0, 'name'],
46
- 'engine_displacement' => ['engines', 0, 'displacement'],
47
- 'engine_shape' => ['engines', 0, 'block_type'],
48
- 'body_style' => ['basic_data', 'body_type'],
49
- 'manufactured_in' => ['basic_data', 'country_of_manufacture'],
50
- 'driveline' => ['basic_data', 'drive_type'],
51
- 'fuel_type' => ['engines', 0, 'fuel_type'],
52
- 'transmission-long' => ['transmissions', 0, 'name'],
53
- 'gears' => ['transmissions', 0, 'gears'],
54
- 'transmission-type' => ['transmissions', 0, 'type'],
55
- 'tank' => ['specifications', ['category', 'Fuel Tanks'], 'specifications', ['name', 'Fuel Tank 1 Capacity (Gallons)'], 'value'],
56
- 'abs_two_wheel' => ['safety_equipment', 'abs_two_wheel'],
57
- 'abs_four_wheel' => ['safety_equipment', 'abs_four_wheel'],
58
- 'gvwr_class' => ['specifications', ['category', 'Measurements of Weight'], 'specifications', ['name', 'Gross Vehicle Weight Rating'], 'value'],
59
- 'vehicle_type' => ['basic_data', 'vehicle_type'],
60
- 'number_of_cylinders' => ['engines', 0, 'cylinders'],
61
- 'number_of_doors' => ['basic_data', 'doors'],
62
- 'standard_seating' => ['specifications', ['category', 'Seating'], 'specifications', ['name', 'Standard Seating'], 'value'],
63
- 'optional_seating' => ['specifications', ['category', 'Seating'], 'specifications', ['name', 'Max Seating'], 'value'],
64
- 'length' => ['specifications', ['category', 'Measurements of Size and Shape'], 'specifications', ['name', 'Length'], 'value'],
65
- 'width' => ['specifications', ['category', 'Measurements of Size and Shape'], 'specifications', ['name', 'Width'], 'value'],
66
- 'height' => ['specifications', ['category', 'Measurements of Size and Shape'], 'specifications', ['name', 'Height'], 'value'],
67
- 'production_seq_number' => ['This will always be nil'],
41
+ 'year' => ['common_data', 'basic_data', 'year'],
42
+ 'make' => ['common_data', 'basic_data', 'make'],
43
+ 'model' => ['common_data', 'basic_data', 'model'],
44
+ 'trim_level' => ['common_data', 'basic_data', 'trim'],
45
+ 'engine_type' => ['styles', 0, 'engines', 0, 'name'],
46
+ 'engine_displacement' => ['styles', 0, 'engines', 0, 'displacement'],
47
+ 'engine_shape' => ['styles', 0, 'engines', 0, 'block_type'],
48
+ 'body_style' => ['common_data', 'basic_data', 'body_type'],
49
+ 'manufactured_in' => ['common_data', 'basic_data', 'country_of_manufacture'],
50
+ 'driveline' => ['common_data', 'basic_data', 'drive_type'],
51
+ 'fuel_type' => ['styles', 0, 'engines', 0, 'fuel_type'],
52
+ 'transmission-long' => ['styles', 0,'transmissions', 0, 'name'],
53
+ 'gears' => ['styles', 0,'transmissions', 0, 'gears'],
54
+ 'transmission-type' => ['styles', 0,'transmissions', 0, 'type'],
55
+ 'tank' => ['common_data', 'specifications', ['category', 'Fuel Tanks'], 'specifications', ['name', 'Fuel Tank 1 Capacity (Gallons)'], 'value'],
56
+ 'abs_two_wheel' => ['common_data', 'safety_equipment', 'abs_two_wheel'],
57
+ 'abs_four_wheel' => ['common_data', 'safety_equipment', 'abs_four_wheel'],
58
+ 'gvwr_class' => ['common_data', 'specifications', ['category', 'Measurements of Weight'], 'specifications', ['name', 'Gross Vehicle Weight Rating'], 'value'],
59
+ 'vehicle_type' => ['common_data', 'basic_data', 'vehicle_type'],
60
+ 'number_of_cylinders' => ['styles', 0, 'engines', 0, 'cylinders'],
61
+ 'number_of_doors' => ['common_data', 'basic_data', 'doors'],
62
+ 'standard_seating' => ['common_data', 'specifications', ['category', 'Seating'], 'specifications', ['name', 'Standard Seating'], 'value'],
63
+ 'optional_seating' => ['common_data', 'specifications', ['category', 'Seating'], 'specifications', ['name', 'Max Seating'], 'value'],
64
+ 'length' => ['common_data', 'specifications', ['category', 'Measurements of Size and Shape'], 'specifications', ['name', 'Length'], 'value'],
65
+ 'width' => ['common_data', 'specifications', ['category', 'Measurements of Size and Shape'], 'specifications', ['name', 'Width'], 'value'],
66
+ 'height' => ['common_data', 'specifications', ['category', 'Measurements of Size and Shape'], 'specifications', ['name', 'Height'], 'value'],
67
+ 'production_seq_number' => ['common_data', 'This will always be nil'],
68
68
  }
69
69
 
70
70
  def initialize(options)
@@ -86,7 +86,7 @@ module EventMachine
86
86
  return {:errors => errors} unless errors.empty?
87
87
 
88
88
  data = response['query_responses']['Request-Sample']
89
- explosion(data['common_data']).merge \
89
+ explosion(data).merge \
90
90
  :errors => [],
91
91
  :vin => vin,
92
92
  :vin_key => vin_key(vin),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-synchrony-dataone-vin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Nielsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-05 00:00:00.000000000 Z
12
+ date: 2013-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: em-http-request