black_book 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/black_book.gemspec +2 -2
- data/lib/black_book/used_cars.rb +7 -7
- data/lib/black_book/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f1453b567a82b9c41a498d47ac73096d6dac421
|
4
|
+
data.tar.gz: af58ccf67c1e3cd1c8acc044ff0b9b7cee77250d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0809a9f7d26e1e60df6702b372ad004bc9d79571fc26729496315a034890a4232921d4c8bedb2538e5e62605c56cc9b3a51957f3d0e9bab8abcc9d46cad64346
|
7
|
+
data.tar.gz: c778d9b6aca899d0c4d17bc0308e34492762452c220cae3b4d6e24931a1567d0d922304a2d21577cde178c6d88176a1956c72828a2b187da36a8ab29f53ab1ab
|
data/black_book.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'black_book/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "black_book"
|
8
8
|
spec.version = BlackBook::VERSION
|
9
|
-
spec.authors = ["Tony Coconate"]
|
10
|
-
spec.email = ["me@tonycoconate.com"]
|
9
|
+
spec.authors = ["Tony Coconate", "Cory Stephenson"]
|
10
|
+
spec.email = ["me@tonycoconate.com", "aevin@me.com"]
|
11
11
|
spec.description = %q{Provides a ruby interface for the Black Book's API. Read more about it here: http://www.blackbookusa.com}
|
12
12
|
spec.summary = %q{A ruby interface for Black Book's API}
|
13
13
|
spec.homepage = "http://github.com/tonycoco/black_book"
|
data/lib/black_book/used_cars.rb
CHANGED
@@ -24,7 +24,7 @@ module BlackBook
|
|
24
24
|
envelope = response.hash[:envelope]
|
25
25
|
|
26
26
|
raise VinNotFound if envelope[:header][:user_credentials][:returncode] == "20"
|
27
|
-
raise BlackBookError if envelope[:header][:user_credentials][:returncode] != "0"
|
27
|
+
raise BlackBookError, (envelope[:header][:user_credentials][:returnmessage]) if envelope[:header][:user_credentials][:returncode] != "0"
|
28
28
|
|
29
29
|
envelope[:body][:current_vin_values_response][:current_vin_values_result]
|
30
30
|
rescue Savon::SOAPFault => e
|
@@ -54,7 +54,7 @@ module BlackBook
|
|
54
54
|
envelope = response.hash[:envelope]
|
55
55
|
|
56
56
|
raise VehicleNotFound if envelope[:header][:user_credentials][:returncode] == "20"
|
57
|
-
raise BlackBookError if envelope[:header][:user_credentials][:returncode] != "0"
|
57
|
+
raise BlackBookError, (envelope[:header][:user_credentials][:returnmessage]) if envelope[:header][:user_credentials][:returncode] != "0"
|
58
58
|
|
59
59
|
envelope[:body][:current_values_response][:current_values_result]
|
60
60
|
rescue Savon::SOAPFault => e
|
@@ -68,7 +68,7 @@ module BlackBook
|
|
68
68
|
|
69
69
|
envelope = response.hash[:envelope]
|
70
70
|
|
71
|
-
raise BlackBookError if envelope[:header][:user_credentials][:returncode] != "0"
|
71
|
+
raise BlackBookError, (envelope[:header][:user_credentials][:returnmessage]) if envelope[:header][:user_credentials][:returncode] != "0"
|
72
72
|
|
73
73
|
envelope[:body][:years_response][:years_result][:years][:year]
|
74
74
|
rescue Savon::SOAPFault => e
|
@@ -83,7 +83,7 @@ module BlackBook
|
|
83
83
|
|
84
84
|
envelope = response.hash[:envelope]
|
85
85
|
|
86
|
-
raise BlackBookError if envelope[:header][:user_credentials][:returncode] != "0"
|
86
|
+
raise BlackBookError, (envelope[:header][:user_credentials][:returnmessage]) if envelope[:header][:user_credentials][:returncode] != "0"
|
87
87
|
raise MakesNotFound if envelope[:body][:makes_response][:makes_result][:makes].nil?
|
88
88
|
|
89
89
|
envelope[:body][:makes_response][:makes_result][:makes][:make]
|
@@ -100,7 +100,7 @@ module BlackBook
|
|
100
100
|
|
101
101
|
envelope = response.hash[:envelope]
|
102
102
|
|
103
|
-
raise BlackBookError if envelope[:header][:user_credentials][:returncode] != "0"
|
103
|
+
raise BlackBookError, (envelope[:header][:user_credentials][:returnmessage]) if envelope[:header][:user_credentials][:returncode] != "0"
|
104
104
|
raise ModelsNotFound if envelope[:body][:models_response][:models_result][:models].nil?
|
105
105
|
|
106
106
|
envelope[:body][:models_response][:models_result][:models][:model]
|
@@ -118,7 +118,7 @@ module BlackBook
|
|
118
118
|
|
119
119
|
envelope = response.hash[:envelope]
|
120
120
|
|
121
|
-
raise BlackBookError if envelope[:header][:user_credentials][:returncode] != "0"
|
121
|
+
raise BlackBookError, (envelope[:header][:user_credentials][:returnmessage]) if envelope[:header][:user_credentials][:returncode] != "0"
|
122
122
|
raise SeriesNotFound if envelope[:body][:series_response][:series_result][:series].nil?
|
123
123
|
|
124
124
|
envelope[:body][:series_response][:series_result][:series][:vehseries]
|
@@ -137,7 +137,7 @@ module BlackBook
|
|
137
137
|
|
138
138
|
envelope = response.hash[:envelope]
|
139
139
|
|
140
|
-
raise BlackBookError if envelope[:header][:user_credentials][:returncode] != "0"
|
140
|
+
raise BlackBookError, (envelope[:header][:user_credentials][:returnmessage]) if envelope[:header][:user_credentials][:returncode] != "0"
|
141
141
|
raise StylesNotFound if envelope[:body][:body_styles_response][:body_styles_result][:styles].nil?
|
142
142
|
|
143
143
|
envelope[:body][:body_styles_response][:body_styles_result][:styles][:style]
|
data/lib/black_book/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: black_book
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Coconate
|
8
|
+
- Cory Stephenson
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: symboltable
|
@@ -126,6 +127,7 @@ description: 'Provides a ruby interface for the Black Book''s API. Read more abo
|
|
126
127
|
it here: http://www.blackbookusa.com'
|
127
128
|
email:
|
128
129
|
- me@tonycoconate.com
|
130
|
+
- aevin@me.com
|
129
131
|
executables: []
|
130
132
|
extensions: []
|
131
133
|
extra_rdoc_files: []
|