vinquery 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vinquery (0.4.0)
4
+ vinquery (0.4.1)
5
5
  nokogiri (>= 1.4.4)
6
6
 
7
7
  GEM
@@ -59,7 +59,9 @@ class Vinquery
59
59
  if attributes.size > 0
60
60
  vin = doc.css('vin').first.attributes['number'].value
61
61
  attributes[:vin_key] = make_vin_key(vin)
62
- attributes[:vendor_result] = doc.to_xml
62
+ attributes[:vendor_result] = doc.to_xml
63
+ attributes[:number_of_cylinders] = attributes[:engine_type].upcase.match(/ [LV](\d{1,2}) /) ? $1 : nil
64
+ attributes[:has_turbo] = attributes[:engine_type].upcase.match(/ ([TURBO|SUPERCHARGED]) /) ? true : false
63
65
  end
64
66
  @attributes = attributes
65
67
  end
@@ -1,3 +1,3 @@
1
1
  class Vinquery
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vinquery
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.1
5
+ version: 0.4.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jake Mallory
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-08-04 00:00:00 Z
14
+ date: 2011-08-08 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri