vast_api 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://leads.vast.com:80/leads/schema/555288039954342885/-/item_vehicle/bike?apikey=
6
+ body: !!null
7
+ headers: !!null
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 401
11
+ message: Unauthorized
12
+ headers:
13
+ content-type:
14
+ - text/xml; charset=iso-8859-1
15
+ content-length:
16
+ - '145'
17
+ server:
18
+ - Jetty(6.1.3)
19
+ body: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<status code=\"401\" type=\"authorization\">\n\t<message>Unauthorized
20
+ Access - Bad API Key</message>\n</status>\n\n"
21
+ http_version: '1.1'
@@ -0,0 +1,29 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://leads.vast.com:80/leads/-/item_vehicle/bike?apikey=
6
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<entry>\n <record_id>http://data.vast.com/listings/555288039954342885/-/item_vehicle/bike?apikey=</record_id>\n
7
+ \ <adf>\n <customer>\n <comments>No comments</comments>\n <contact>\n
8
+ \ <phone>123123323</phone>\n <address>\n <street_1>134
9
+ W 29 ST</street_1>\n <regioncode>NY</regioncode>\n <postalcode>10001</postalcode>\n
10
+ \ <city>New York</city>\n </address>\n <email>one@gmail.com</email>\n
11
+ \ <name_last>test</name_last>\n <name_first>test</name_first>\n
12
+ \ </contact>\n </customer>\n </adf>\n</entry>\n"
13
+ headers:
14
+ content-type:
15
+ - application/atom+xml
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 401
19
+ message: Unauthorized
20
+ headers:
21
+ content-length:
22
+ - '145'
23
+ server:
24
+ - Jetty(6.1.3)
25
+ content-type:
26
+ - text/xml; charset=iso-8859-1
27
+ body: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<status code=\"401\" type=\"authorization\">\n\t<message>Unauthorized
28
+ Access - Bad API Key</message>\n</status>\n\n"
29
+ http_version: '1.1'
@@ -8,19 +8,20 @@ rescue Bundler::BundlerError => e
8
8
  exit e.status_code
9
9
  end
10
10
  require 'minitest/autorun'
11
+
12
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ require 'net/http'
11
15
  require 'vcr'
16
+ require 'vast_api'
12
17
 
13
18
  VCR.config do |c|
14
19
  c.cassette_library_dir = 'test/fixtures/vcr_cassettes'
15
20
  c.stub_with :webmock # or :fakeweb
16
21
  end
17
22
 
18
-
19
- $LOAD_PATH.unshift(File.dirname(__FILE__))
20
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
21
- require 'vast_api'
22
-
23
23
  class MiniTest::Unit::TestCase
24
24
  end
25
25
 
26
26
  MiniTest::Unit.autorun
27
+
@@ -10,7 +10,6 @@ describe VastApi do
10
10
  VCR.use_cassette('bike listings', :record => :new_episodes) do
11
11
  @listing = @vast.category('item_vehicle/bike').listings
12
12
  end
13
- p @listing.url
14
13
  end
15
14
 
16
15
  it "should return a list of items" do
@@ -22,7 +21,7 @@ describe VastApi do
22
21
  id.wont_be_nil
23
22
  #id.should == @listing.attr('id')
24
23
  end
25
-
24
+
26
25
  it "should be able to get query options for listings" do
27
26
  @listing.query['category'].wont_be_nil
28
27
  end
@@ -42,11 +41,10 @@ describe VastApi do
42
41
  it "should be able to filter items" do
43
42
  VCR.use_cassette("filter items", :record => :new_episodes) do
44
43
  filter = @vast.category('horses').where('pet-gen'=>'Male').listings
45
- p filter.url
46
44
  filter.size.must_be(:>, 0)
47
45
  end
48
46
  end
49
-
47
+
50
48
  it "find should raise an error if there is no category" do
51
49
  bike = @listing.first
52
50
  lambda { VastApi.new.find(bike.id) }.must_raise ArgumentError
@@ -54,24 +52,41 @@ describe VastApi do
54
52
 
55
53
  it "find should get a single item" do
56
54
  bike = @listing.first
57
- p bike.id
58
55
  find_bike_cat = ''
59
- VCR.use_cassette('find bike with category', :record => :new_episodes) do
56
+ VCR.use_cassette('find bike with category', :record => :new_episodes) do
60
57
  find_bike_cat = @listing.find!(bike.id)
61
58
  end
62
59
  find_bike_cat.id.must_equal bike.id
63
60
  end
64
61
 
62
+ it "post lead submission" do
63
+ bike = @listing.first
64
+ params = {:comments => "No comments", :phone => "123123323", :street_1 => "134 W 29 ST", :regioncode => "NY",
65
+ :postalcode => "10001", :city => "New York", :email => "one@gmail.com", :name_first => "test", :name_last => "test"}
66
+ VCR.use_cassette('post lead', :record => :new_episodes) do
67
+ res = bike.post_leads(params)
68
+ res[:status].to_i.must_be(:>, 0)
69
+ end
70
+ end
71
+
72
+ it "get required fields" do
73
+ bike = @listing.first
74
+ VCR.use_cassette('get required fields', :record => :new_episodes) do
75
+ res = bike.req_fields
76
+ res.size.must_be(:==, 7)
77
+ end
78
+ end
79
+
65
80
  it "entry should have a hash of links" do
66
81
  bike = @listing.first
67
- bike.vast_links['via'].wont_be_nil
82
+ bike.vast_links['via'].wont_be_nil
68
83
  end
69
84
 
70
85
  end
71
-
86
+
72
87
  describe 'Attributes' do
73
88
  before do
74
- VCR.use_cassette('find bike with attribute', :record => :new_episodes) do
89
+ VCR.use_cassette('find bike with attribute', :record => :new_episodes) do
75
90
  @attributes = @vast.category('item_vehicle/bike').attributes
76
91
  end
77
92
  end
@@ -79,15 +94,62 @@ describe VastApi do
79
94
  it "should be able to fetch attributes" do
80
95
  @attributes.size.must_be(:>, 0)
81
96
  end
82
-
97
+
83
98
  it "each entry should be hash" do
84
99
  @attributes.must_be_kind_of VastApi::Attributes
85
100
  end
86
101
  end
87
-
102
+
103
+ describe 'listings with attributes' do
104
+
105
+ before do
106
+ VCR.use_cassette('bike listings', :record => :new_episodes) do
107
+ @listing = @vast.category('item_vehicle/bike').where('include'=>'attributes').listings
108
+ end
109
+ end
110
+
111
+ it "check if listings are all listings" do
112
+ @listing.each do |l|
113
+ l.must_be_kind_of VastApi::Listings::Entry
114
+ end
115
+ end
116
+
117
+ it "check if attributes are there" do
118
+ @listing.instance_variable_get(:@attributes).must_be_kind_of Hash
119
+ @listing.instance_variable_get(:@attributes).values.each do |l|
120
+ l.must_be_kind_of VastApi::Attributes::Entry
121
+ end
122
+ end
123
+
124
+ end
125
+
126
+ describe 'attributes with listings' do
127
+
128
+ before do
129
+ VCR.use_cassette('bike listings', :record => :new_episodes) do
130
+ @attributes = @vast.category('item_vehicle/bike').where('include'=>'listings').attributes
131
+ end
132
+ end
133
+
134
+ it "check if listings are all attributes" do
135
+ @attributes.values.each do |l|
136
+ l.must_be_kind_of VastApi::Attributes::Entry
137
+ end
138
+ end
139
+
140
+ it "check if attributes are there" do
141
+ @attributes.instance_variable_get(:@listings).must_be_kind_of Array
142
+ @attributes.instance_variable_get(:@listings).each do |l|
143
+ l.must_be_kind_of VastApi::Listings::Entry
144
+ end
145
+ end
146
+
147
+ end
148
+
149
+
88
150
  describe 'Categories' do
89
151
  before do
90
- VCR.use_cassette('find bike with category', :record => :new_episodes) do
152
+ VCR.use_cassette('find bike with category', :record => :new_episodes) do
91
153
  @categories = @vast.categories
92
154
  end
93
155
  end
@@ -101,4 +163,122 @@ describe VastApi do
101
163
  end
102
164
  end
103
165
 
166
+ describe 'create_entry' do
167
+ it "should detect this as an item" do
168
+ node = Nokogiri::XML('
169
+ <?xml version="1.0" encoding="utf-8"?>
170
+ <feed xmlns=\'http://www.w3.org/2005/Atom\' xmlns:o=\'http://a9.com/-/spec/opensearchrss/1.0/\' xmlns:v=\'http://data.vast.com/ns/listings\'>
171
+ <entry>
172
+ <id>http://data.vast.com/listings/4492261456855456117/-/item_vehicle/bike</id>
173
+ <updated>2011-08-08T09:05:26+02:00</updated>
174
+ <published>2011-08-08T09:05:27+02:00</published>
175
+ <author>
176
+ <name>www.sample.com</name>
177
+ </author>
178
+ <title type="text">SAMPLE - 1974 Womens Schwinn Varsity 10 Speed Bike All Original w Fenders Light...</title>
179
+ <v:vertical>general</v:vertical>
180
+ <v:category>item_vehicle%2Cbike</v:category>
181
+ <v:item_id>4492261456855456117</v:item_id>
182
+ <v:location precision="zip">
183
+ <v:state>TN</v:state>
184
+ <v:country>United States</v:country>
185
+ <v:zip>37132</v:zip>
186
+ <v:distance>0</v:distance>
187
+ <v:city>Murfreesboro</v:city>
188
+ <v:lat precision="unknown">35.847750</v:lat>
189
+ <v:lon precision="unknown">-86.363590</v:lon>
190
+ <v:address></v:address>
191
+ </v:location>
192
+ <v:price type="money" symbol="$" currency="USD" value="0"/>
193
+ <v:currency type="text">USD</v:currency>
194
+ <link rel="self" type="application/atom+xml" href="http://data.vast.com/listings/4492261456855456117/-/item_vehicle/bike?apikey="/>
195
+ <link rel="via" type="text/html" title="www.sample.com" href="http://details.vast.com/details/item_vehicle/bike/ob-NzezewthgbbXRMZttJ2JlJ27Hw==/"/>
196
+ <link rel="alternate" type="text/html" title="1974 Womens Schwinn Varsity 10 Speed Bike All Original w Fenders Light..." href="http://details.vast.com/details/item_vehicle/bike/ob-NzezewthgbbXRMZttJ2JlJ27Hw==/"/>
197
+ <link rel="http://feedback.vast.com" type="text/html" title="Report incorrect result" href="http://www.vast.com/ajax/report?id=4492261456855456117&amp;category=item_vehicle/bike&amp;apikey="/>
198
+ <v:domain_name type="text">www.sample.com</v:domain_name>
199
+ <v:year type="number"></v:year>
200
+ <v:image_url type="image/jpeg">http://img.vast.com/128x96/4492261456855456117</v:image_url>
201
+ <v:large_image_url type="image/jpeg">http://img.vast.com/320x240/4492261456855456117</v:large_image_url>
202
+ <v:tiny_image_url type="image/jpeg">http://img.vast.com/59x44/4492261456855456117</v:tiny_image_url>
203
+ <v:image_count>1</v:image_count>
204
+ <v:hasimage type="boolean">yes</v:hasimage>
205
+ <v:hosted type="boolean">no</v:hosted>
206
+ <v:hosted_type type="text">landing</v:hosted_type>
207
+ <v:description type="text">1974 Schwinn Varsity Sport. It is all original and in great shape just look at the pictures. It has metal fenders a working generator and working lights front and tail. The original paint and decals are in great shape as well as the leather seat. Also included the original owners manual that came with this bicycle.</v:description>
208
+ <content type="html">&lt;img src="http://img.vast.com/128x96/4492261456855456117"&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;description:&lt;/strong&gt;1974 Schwinn Varsity Sport. It is all original and in great shape just look at the pictures. It has metal fenders a working generator and working lights front and tail. The original paint and decals are in great shape as well as the leather seat. Also included the original owners manual that came with this bicycle.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;price:&lt;/strong&gt;0&lt;/li&gt;&lt;li&gt;&lt;strong&gt;country:&lt;/strong&gt;United States&lt;/li&gt;&lt;li&gt;&lt;strong&gt;state:&lt;/strong&gt;TN&lt;/li&gt;&lt;li&gt;&lt;strong&gt;zip:&lt;/strong&gt;37132&lt;/li&gt;&lt;li&gt;&lt;strong&gt;city:&lt;/strong&gt;Murfreesboro&lt;/li&gt;&lt;/ul&gt;</content>
209
+ </entry>
210
+ </feed>')
211
+ @vast.create_entry(node.root.children[1]).must_be_kind_of VastApi::Listings::Entry
212
+ end
213
+
214
+ it "should detect this as an attribute" do
215
+ node = Nokogiri::XML(%q|
216
+ <?xml version="1.0" encoding="utf-8"?>
217
+ <feed xmlns='http://www.w3.org/2005/Atom' xmlns:o='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:v='http://data.vast.com/ns/listings'>
218
+ <entry>
219
+ <id>http://data.vast.com/attributes/location/-/item_vehicle/bike</id>
220
+ <title type='text'>SAMPLE - Location</title>
221
+ <updated>2011-08-12T15:40:14+02:00</updated>
222
+ <author>
223
+ <name>www.vast.com</name>
224
+ </author>
225
+ <v:attribute id="location" type="text">
226
+ <v:value id="Park-City--UT" count="108">Park City, UT</v:value>
227
+ <v:value id="New-York--NY" count="32">New York, NY</v:value>
228
+ <v:value id="Fullerton--CA" count="18">Fullerton, CA</v:value>
229
+ <v:value id="Los-Angeles--CA" count="18">Los Angeles, CA</v:value>
230
+ <v:value id="Birmingham--AL" count="15">Birmingham, AL</v:value>
231
+ <v:value id="Boulder--CO" count="8">Boulder, CO</v:value>
232
+ <v:value id="Salt-Lake-City--UT" count="8">Salt Lake City, UT</v:value>
233
+ <v:value id="Porter--TX" count="8">Porter, TX</v:value>
234
+ <v:value id="North-Bend--WA" count="7">North Bend, WA</v:value>
235
+ <v:value id="Seattle--WA" count="6">Seattle, WA</v:value>
236
+ <v:value id="Louisville--KY" count="6">Louisville, KY</v:value>
237
+ <v:value id="Orlando--FL" count="6">Orlando, FL</v:value>
238
+ <v:value id="Bridgeport--CT" count="6">Bridgeport, CT</v:value>
239
+ <v:value id="Milwaukee--WI" count="5">Milwaukee, WI</v:value>
240
+ <v:value id="San-Carlos--CA" count="5">San Carlos, CA</v:value>
241
+ <v:value id="Sherman--IL" count="5">Sherman, IL</v:value>
242
+ <v:value id="Northbrook--IL" count="5">Northbrook, IL</v:value>
243
+ <v:value id="Ventura--CA" count="5">Ventura, CA</v:value>
244
+ <v:value id="Trumbull--CT" count="5">Trumbull, CT</v:value>
245
+ <v:value id="Norwalk--CT" count="5">Norwalk, CT</v:value>
246
+ <v:value id="Washington--NY" count="5">Washington, NY</v:value>
247
+ <v:value id="Phoenix--AZ" count="4">Phoenix, AZ</v:value>
248
+ <v:value id="Denver--CO" count="4">Denver, CO</v:value>
249
+ <v:value id="New-Haven--CT" count="4">New Haven, CT</v:value>
250
+ <v:value id="Indianapolis--IN" count="4">Indianapolis, IN</v:value>
251
+ <v:value id="Surprise--AZ" count="4">Surprise, AZ</v:value>
252
+ <v:value id="Jacksonville--FL" count="4">Jacksonville, FL</v:value>
253
+ <v:value id="Colorado-Springs--CO" count="3">Colorado Springs, CO</v:value>
254
+ <v:value id="Portland--OR" count="3">Portland, OR</v:value>
255
+ <v:value id="Sandy-Hook--CT" count="3">Sandy Hook, CT</v:value>
256
+ <v:value id="Salem--OR" count="3">Salem, OR</v:value>
257
+ <v:value id="Reading--PA" count="3">Reading, PA</v:value>
258
+ <v:value id="Spokane--WA" count="3">Spokane, WA</v:value>
259
+ <v:value id="Rock-Hill--SC" count="3">Rock Hill, SC</v:value>
260
+ <v:value id="Waxahachie--TX" count="3">Waxahachie, TX</v:value>
261
+ <v:value id="Columbus--OH" count="3">Columbus, OH</v:value>
262
+ <v:value id="Sacramento--CA" count="3">Sacramento, CA</v:value>
263
+ <v:value id="Aurora--IL" count="3">Aurora, IL</v:value>
264
+ <v:value id="Bellingham--WA" count="3">Bellingham, WA</v:value>
265
+ <v:value id="North-Haven--CT" count="3">North Haven, CT</v:value>
266
+ <v:value id="Kingwood--TX" count="3">Kingwood, TX</v:value>
267
+ <v:value id="Atlanta--GA" count="3">Atlanta, GA</v:value>
268
+ <v:value id="Houston--TX" count="3">Houston, TX</v:value>
269
+ <v:value id="Ontario--CA" count="3">Ontario, CA</v:value>
270
+ <v:value id="Lincoln--NE" count="3">Lincoln, NE</v:value>
271
+ <v:value id="Other-CA" count="6">Other CA</v:value>
272
+ <v:value id="Other-PA" count="6">Other PA</v:value>
273
+ <v:value id="Other-IN" count="5">Other IN</v:value>
274
+ <v:value id="Other-NY" count="4">Other NY</v:value>
275
+ <v:value id="unknown" count="190">unknown</v:value>
276
+ </v:attribute>
277
+ </entry>
278
+ </feed>|)
279
+ @vast.create_entry(node.root.children[1]).must_be_kind_of VastApi::Attributes::Entry
280
+ end
281
+
282
+ end
104
283
  end
284
+
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vast_api}
8
- s.version = "0.1.2"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Ryan Ong}, %q{Mikhail Knyazev}]
12
- s.date = %q{2011-07-01}
12
+ s.date = %q{2011-08-12}
13
13
  s.description = %q{A ruby wrapper for the http://www.vast.com/ api}
14
14
  s.email = %q{ryanong@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -34,6 +34,8 @@ Gem::Specification.new do |s|
34
34
  "test/fixtures/vcr_cassettes/filter_items.yml",
35
35
  "test/fixtures/vcr_cassettes/find_bike_with_attribute.yml",
36
36
  "test/fixtures/vcr_cassettes/find_bike_with_category.yml",
37
+ "test/fixtures/vcr_cassettes/get_required_fields.yml",
38
+ "test/fixtures/vcr_cassettes/post_lead.yml",
37
39
  "test/helper.rb",
38
40
  "test/test_vast_api.rb",
39
41
  "vast_api.gemspec"
@@ -41,7 +43,7 @@ Gem::Specification.new do |s|
41
43
  s.homepage = %q{http://github.com/carzen/vast_api}
42
44
  s.licenses = [%q{MIT}]
43
45
  s.require_paths = [%q{lib}]
44
- s.rubygems_version = %q{1.8.5}
46
+ s.rubygems_version = %q{1.8.6}
45
47
  s.summary = %q{A ruby wrapper for the http://www.vast.com/ api}
46
48
  s.test_files = [
47
49
  "test/helper.rb",
@@ -56,32 +58,38 @@ Gem::Specification.new do |s|
56
58
  s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
57
59
  s.add_development_dependency(%q<minitest>, [">= 0"])
58
60
  s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
59
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
61
+ s.add_development_dependency(%q<bundler>, [">= 0"])
60
62
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
61
63
  s.add_development_dependency(%q<rcov>, [">= 0"])
62
64
  s.add_development_dependency(%q<webmock>, [">= 0"])
63
65
  s.add_development_dependency(%q<vcr>, [">= 0"])
66
+ s.add_development_dependency(%q<i18n>, [">= 0"])
67
+ s.add_development_dependency(%q<builder>, [">= 0"])
64
68
  else
65
69
  s.add_dependency(%q<activesupport>, [">= 2.3.5"])
66
70
  s.add_dependency(%q<nokogiri>, [">= 0"])
67
71
  s.add_dependency(%q<minitest>, [">= 0"])
68
72
  s.add_dependency(%q<yard>, ["~> 0.6.0"])
69
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
73
+ s.add_dependency(%q<bundler>, [">= 0"])
70
74
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
71
75
  s.add_dependency(%q<rcov>, [">= 0"])
72
76
  s.add_dependency(%q<webmock>, [">= 0"])
73
77
  s.add_dependency(%q<vcr>, [">= 0"])
78
+ s.add_dependency(%q<i18n>, [">= 0"])
79
+ s.add_dependency(%q<builder>, [">= 0"])
74
80
  end
75
81
  else
76
82
  s.add_dependency(%q<activesupport>, [">= 2.3.5"])
77
83
  s.add_dependency(%q<nokogiri>, [">= 0"])
78
84
  s.add_dependency(%q<minitest>, [">= 0"])
79
85
  s.add_dependency(%q<yard>, ["~> 0.6.0"])
80
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
86
+ s.add_dependency(%q<bundler>, [">= 0"])
81
87
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
82
88
  s.add_dependency(%q<rcov>, [">= 0"])
83
89
  s.add_dependency(%q<webmock>, [">= 0"])
84
90
  s.add_dependency(%q<vcr>, [">= 0"])
91
+ s.add_dependency(%q<i18n>, [">= 0"])
92
+ s.add_dependency(%q<builder>, [">= 0"])
85
93
  end
86
94
  end
87
95
 
metadata CHANGED
@@ -1,127 +1,146 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vast_api
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
4
5
  prerelease:
5
- version: 0.1.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Ryan Ong
9
9
  - Mikhail Knyazev
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-07-01 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2011-08-12 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: activesupport
18
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2151936060 !ruby/object:Gem::Requirement
19
18
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
23
22
  version: 2.3.5
24
23
  type: :runtime
25
24
  prerelease: false
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *2151936060
26
+ - !ruby/object:Gem::Dependency
28
27
  name: nokogiri
29
- requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirement: &2151933120 !ruby/object:Gem::Requirement
30
29
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
35
34
  type: :runtime
36
35
  prerelease: false
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *2151933120
37
+ - !ruby/object:Gem::Dependency
39
38
  name: minitest
40
- requirement: &id003 !ruby/object:Gem::Requirement
39
+ requirement: &2151928560 !ruby/object:Gem::Requirement
41
40
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
46
45
  type: :development
47
46
  prerelease: false
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *2151928560
48
+ - !ruby/object:Gem::Dependency
50
49
  name: yard
51
- requirement: &id004 !ruby/object:Gem::Requirement
50
+ requirement: &2151923220 !ruby/object:Gem::Requirement
52
51
  none: false
53
- requirements:
52
+ requirements:
54
53
  - - ~>
55
- - !ruby/object:Gem::Version
54
+ - !ruby/object:Gem::Version
56
55
  version: 0.6.0
57
56
  type: :development
58
57
  prerelease: false
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
58
+ version_requirements: *2151923220
59
+ - !ruby/object:Gem::Dependency
61
60
  name: bundler
62
- requirement: &id005 !ruby/object:Gem::Requirement
61
+ requirement: &2151918800 !ruby/object:Gem::Requirement
63
62
  none: false
64
- requirements:
65
- - - ~>
66
- - !ruby/object:Gem::Version
67
- version: 1.0.0
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
68
67
  type: :development
69
68
  prerelease: false
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
69
+ version_requirements: *2151918800
70
+ - !ruby/object:Gem::Dependency
72
71
  name: jeweler
73
- requirement: &id006 !ruby/object:Gem::Requirement
72
+ requirement: &2151912820 !ruby/object:Gem::Requirement
74
73
  none: false
75
- requirements:
74
+ requirements:
76
75
  - - ~>
77
- - !ruby/object:Gem::Version
76
+ - !ruby/object:Gem::Version
78
77
  version: 1.5.2
79
78
  type: :development
80
79
  prerelease: false
81
- version_requirements: *id006
82
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *2151912820
81
+ - !ruby/object:Gem::Dependency
83
82
  name: rcov
84
- requirement: &id007 !ruby/object:Gem::Requirement
83
+ requirement: &2151906900 !ruby/object:Gem::Requirement
85
84
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: "0"
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
90
89
  type: :development
91
90
  prerelease: false
92
- version_requirements: *id007
93
- - !ruby/object:Gem::Dependency
91
+ version_requirements: *2151906900
92
+ - !ruby/object:Gem::Dependency
94
93
  name: webmock
95
- requirement: &id008 !ruby/object:Gem::Requirement
94
+ requirement: &2151903840 !ruby/object:Gem::Requirement
96
95
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: "0"
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
101
100
  type: :development
102
101
  prerelease: false
103
- version_requirements: *id008
104
- - !ruby/object:Gem::Dependency
102
+ version_requirements: *2151903840
103
+ - !ruby/object:Gem::Dependency
105
104
  name: vcr
106
- requirement: &id009 !ruby/object:Gem::Requirement
105
+ requirement: &2151900960 !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: *2151900960
114
+ - !ruby/object:Gem::Dependency
115
+ name: i18n
116
+ requirement: &2151898040 !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: *2151898040
125
+ - !ruby/object:Gem::Dependency
126
+ name: builder
127
+ requirement: &2151890900 !ruby/object:Gem::Requirement
107
128
  none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: "0"
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
112
133
  type: :development
113
134
  prerelease: false
114
- version_requirements: *id009
135
+ version_requirements: *2151890900
115
136
  description: A ruby wrapper for the http://www.vast.com/ api
116
137
  email: ryanong@gmail.com
117
138
  executables: []
118
-
119
139
  extensions: []
120
-
121
- extra_rdoc_files:
140
+ extra_rdoc_files:
122
141
  - LICENSE.txt
123
142
  - README.rdoc
124
- files:
143
+ files:
125
144
  - .document
126
145
  - Gemfile
127
146
  - LICENSE.txt
@@ -139,39 +158,39 @@ files:
139
158
  - test/fixtures/vcr_cassettes/filter_items.yml
140
159
  - test/fixtures/vcr_cassettes/find_bike_with_attribute.yml
141
160
  - test/fixtures/vcr_cassettes/find_bike_with_category.yml
161
+ - test/fixtures/vcr_cassettes/get_required_fields.yml
162
+ - test/fixtures/vcr_cassettes/post_lead.yml
142
163
  - test/helper.rb
143
164
  - test/test_vast_api.rb
144
165
  - vast_api.gemspec
145
166
  homepage: http://github.com/carzen/vast_api
146
- licenses:
167
+ licenses:
147
168
  - MIT
148
169
  post_install_message:
149
170
  rdoc_options: []
150
-
151
- require_paths:
171
+ require_paths:
152
172
  - lib
153
- required_ruby_version: !ruby/object:Gem::Requirement
173
+ required_ruby_version: !ruby/object:Gem::Requirement
154
174
  none: false
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- hash: 3790848219343916625
159
- segments:
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ segments:
160
180
  - 0
161
- version: "0"
162
- required_rubygems_version: !ruby/object:Gem::Requirement
181
+ hash: -792478915482862852
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
183
  none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- version: "0"
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
168
188
  requirements: []
169
-
170
189
  rubyforge_project:
171
- rubygems_version: 1.8.5
190
+ rubygems_version: 1.8.6
172
191
  signing_key:
173
192
  specification_version: 3
174
193
  summary: A ruby wrapper for the http://www.vast.com/ api
175
- test_files:
194
+ test_files:
176
195
  - test/helper.rb
177
196
  - test/test_vast_api.rb