vinquery 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/vinquery.rb +3 -1
- data/lib/vinquery/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/vinquery.rb
CHANGED
@@ -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
|
data/lib/vinquery/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: vinquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
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-
|
14
|
+
date: 2011-08-08 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: nokogiri
|