vast_api 0.0.1 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@
11
11
  message: OK
12
12
  headers:
13
13
  date:
14
- - Fri, 18 Mar 2011 18:14:29 GMT
14
+ - Mon, 21 Mar 2011 20:15:45 GMT
15
15
  server:
16
16
  - Apache
17
17
  x-powered-by:
@@ -25,7 +25,7 @@
25
25
  age:
26
26
  - "0"
27
27
  expires:
28
- - Fri, 18 Mar 2011 18:19:29 GMT
28
+ - Mon, 21 Mar 2011 20:20:45 GMT
29
29
  transfer-encoding:
30
30
  - chunked
31
31
  body: |
@@ -33,99 +33,100 @@
33
33
  <feed xmlns='http://www.w3.org/2005/Atom' xmlns:o='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:v='http://data.vast.com/ns/attributes'>
34
34
  <id>http://data.vast.com/attributes/-/item_vehicle/bike</id>
35
35
  <link rel="self" type="application/atom+xml" href="http://data.vast.com/attributes/-/item_vehicle/bike"/>
36
- <updated>2011-03-18T19:14:48+01:00</updated>
36
+ <updated>2011-03-21T21:14:47+01:00</updated>
37
37
  <title type="text">SAMPLE - Bicycles For Sale</title>
38
38
  <subtitle>These are sample Vast API results. These results may only be used for testing and demonstrating applications and components based on the Vast API. All other uses are prohibited. For results suitable for other uses, including commercial use, please include your API key using the apikey parameter. You may apply for an API key at http://www.vast.com/partner</subtitle>
39
39
  <logo>http://www.vast.com/resources/vast_v3/images/vast_logo.jpg</logo>
40
- <o:totalResults>852</o:totalResults>
40
+ <o:totalResults>730</o:totalResults>
41
41
  <o:startIndex>1</o:startIndex>
42
42
  <o:itemsPerPage>10</o:itemsPerPage>
43
43
  <o:Query xmlns:v="http://data.vast.com/ns/search" role="request" v:range="50" startIndex="1" totalResults="10" v:feed="attributes" v:category="item_vehicle,bike" />
44
44
  <v:stem/>
45
45
  <v:extra/>
46
- <v:site_count>9</v:site_count>
46
+ <v:site_count>10</v:site_count>
47
47
  <v:location/>
48
48
  <entry>
49
49
  <id>http://data.vast.com/attributes/location/-/item_vehicle/bike</id>
50
50
  <title type='text'>SAMPLE - Location</title>
51
- <updated>2011-03-18T19:14:48+01:00</updated>
51
+ <updated>2011-03-21T21:14:47+01:00</updated>
52
52
  <author>
53
53
  <name>www.vast.com</name>
54
54
  </author>
55
55
  <v:attribute id="location" type="text">
56
- <v:value id="Park-City--UT" count="99">Park City, UT</v:value>
57
- <v:value id="Porter--TX" count="25">Porter, TX</v:value>
58
- <v:value id="New-York--NY" count="22">New York, NY</v:value>
59
- <v:value id="Los-Angeles--CA" count="16">Los Angeles, CA</v:value>
56
+ <v:value id="Park-City--UT" count="72">Park City, UT</v:value>
57
+ <v:value id="New-York--NY" count="19">New York, NY</v:value>
58
+ <v:value id="Porter--TX" count="16">Porter, TX</v:value>
60
59
  <v:value id="Fullerton--CA" count="14">Fullerton, CA</v:value>
61
- <v:value id="San-Francisco--CA" count="9">San Francisco, CA</v:value>
62
60
  <v:value id="Homeland--CA" count="8">Homeland, CA</v:value>
63
- <v:value id="Phoenix--AZ" count="7">Phoenix, AZ</v:value>
64
- <v:value id="Seattle--WA" count="6">Seattle, WA</v:value>
65
- <v:value id="North-Bend--WA" count="5">North Bend, WA</v:value>
66
- <v:value id="New-Haven--CT" count="5">New Haven, CT</v:value>
67
- <v:value id="Spokane--WA" count="5">Spokane, WA</v:value>
68
- <v:value id="Santa-Rosa--CA" count="4">Santa Rosa, CA</v:value>
61
+ <v:value id="Los-Angeles--CA" count="6">Los Angeles, CA</v:value>
62
+ <v:value id="Trumbull--CT" count="5">Trumbull, CT</v:value>
63
+ <v:value id="Houston--TX" count="4">Houston, TX</v:value>
64
+ <v:value id="Baltimore--MD" count="4">Baltimore, MD</v:value>
65
+ <v:value id="Centerbrook--CT" count="4">Centerbrook, CT</v:value>
66
+ <v:value id="Norwalk--CT" count="4">Norwalk, CT</v:value>
67
+ <v:value id="Bridgeport--CT" count="4">Bridgeport, CT</v:value>
68
+ <v:value id="Indianapolis--IN" count="4">Indianapolis, IN</v:value>
69
+ <v:value id="Portland--OR" count="4">Portland, OR</v:value>
69
70
  <v:value id="Atlanta--GA" count="4">Atlanta, GA</v:value>
70
- <v:value id="Trumbull--CT" count="4">Trumbull, CT</v:value>
71
- <v:value id="Albuquerque--NM" count="4">Albuquerque, NM</v:value>
72
- <v:value id="Baltimore--MD" count="3">Baltimore, MD</v:value>
73
- <v:value id="Boston--MA" count="3">Boston, MA</v:value>
74
- <v:value id="Daytona-Beach--FL" count="3">Daytona Beach, FL</v:value>
75
- <v:value id="Saint-Petersburg--FL" count="3">Saint Petersburg, FL</v:value>
76
- <v:value id="Louisville--KY" count="3">Louisville, KY</v:value>
77
- <v:value id="Washington--NY" count="3">Washington, NY</v:value>
78
- <v:value id="Aurora--IL" count="3">Aurora, IL</v:value>
71
+ <v:value id="Salt-Lake-City--UT" count="4">Salt Lake City, UT</v:value>
72
+ <v:value id="Phoenix--AZ" count="4">Phoenix, AZ</v:value>
73
+ <v:value id="Spokane--WA" count="4">Spokane, WA</v:value>
74
+ <v:value id="Minneapolis--MN" count="3">Minneapolis, MN</v:value>
75
+ <v:value id="San-Francisco--CA" count="3">San Francisco, CA</v:value>
76
+ <v:value id="Waterbury--CT" count="3">Waterbury, CT</v:value>
77
+ <v:value id="Albuquerque--NM" count="3">Albuquerque, NM</v:value>
79
78
  <v:value id="Stratford--CT" count="3">Stratford, CT</v:value>
80
- <v:value id="Bellingham--WA" count="3">Bellingham, WA</v:value>
81
- <v:value id="Indianapolis--IN" count="3">Indianapolis, IN</v:value>
82
- <v:value id="Milford--CT" count="3">Milford, CT</v:value>
83
- <v:value id="Bridgeport--CT" count="3">Bridgeport, CT</v:value>
79
+ <v:value id="Denver--CO" count="3">Denver, CO</v:value>
80
+ <v:value id="Reading--PA" count="3">Reading, PA</v:value>
81
+ <v:value id="Columbus--OH" count="3">Columbus, OH</v:value>
82
+ <v:value id="New-Haven--CT" count="3">New Haven, CT</v:value>
83
+ <v:value id="Washington--NY" count="3">Washington, NY</v:value>
84
+ <v:value id="North-Haven--CT" count="3">North Haven, CT</v:value>
85
+ <v:value id="Santa-Rosa--CA" count="3">Santa Rosa, CA</v:value>
84
86
  <v:value id="Champlain--NY" count="3">Champlain, NY</v:value>
85
- <v:value id="Torrance--CA" count="2">Torrance, CA</v:value>
86
- <v:value id="Columbus--OH" count="2">Columbus, OH</v:value>
87
- <v:value id="San-Luis-Obispo--CA" count="2">San Luis Obispo, CA</v:value>
88
- <v:value id="Emeryville--CA" count="2">Emeryville, CA</v:value>
89
- <v:value id="Monroe--MI" count="2">Monroe, MI</v:value>
90
- <v:value id="Magnolia--TX" count="2">Magnolia, TX</v:value>
91
- <v:value id="Oxnard--CA" count="2">Oxnard, CA</v:value>
92
- <v:value id="Denver--CO" count="2">Denver, CO</v:value>
93
- <v:value id="Fort-Collins--CO" count="2">Fort Collins, CO</v:value>
94
- <v:value id="Raleigh--NC" count="2">Raleigh, NC</v:value>
95
- <v:value id="Adair--IA" count="2">Adair, IA</v:value>
96
- <v:value id="Vacaville--CA" count="2">Vacaville, CA</v:value>
97
- <v:value id="Dallas--TX" count="2">Dallas, TX</v:value>
98
- <v:value id="Minneapolis--MN" count="2">Minneapolis, MN</v:value>
87
+ <v:value id="Aurora--IL" count="3">Aurora, IL</v:value>
88
+ <v:value id="Louisville--KY" count="3">Louisville, KY</v:value>
89
+ <v:value id="North-Bend--WA" count="3">North Bend, WA</v:value>
90
+ <v:value id="Honolulu--HI" count="3">Honolulu, HI</v:value>
91
+ <v:value id="Saint-Petersburg--FL" count="3">Saint Petersburg, FL</v:value>
92
+ <v:value id="Seattle--WA" count="3">Seattle, WA</v:value>
93
+ <v:value id="Redondo-Beach--CA" count="2">Redondo Beach, CA</v:value>
94
+ <v:value id="Provo--UT" count="2">Provo, UT</v:value>
95
+ <v:value id="Fayetteville--AR" count="2">Fayetteville, AR</v:value>
96
+ <v:value id="Boulder--CO" count="2">Boulder, CO</v:value>
97
+ <v:value id="Davis--CA" count="2">Davis, CA</v:value>
98
+ <v:value id="Tulsa--OK" count="2">Tulsa, OK</v:value>
99
+ <v:value id="Jacksonville--FL" count="2">Jacksonville, FL</v:value>
100
+ <v:value id="Charlotte--NC" count="2">Charlotte, NC</v:value>
99
101
  <v:value id="Shepparton--Australia" count="10">Shepparton, Australia</v:value>
100
- <v:value id="Other-CA" count="8">Other CA</v:value>
101
- <v:value id="Other-NY" count="5">Other NY</v:value>
102
- <v:value id="Other-PA" count="3">Other PA</v:value>
103
- <v:value id="Other-IL" count="2">Other IL</v:value>
104
- <v:value id="Other-OH" count="2">Other OH</v:value>
105
- <v:value id="unknown" count="204">unknown</v:value>
102
+ <v:value id="Other-NY" count="6">Other NY</v:value>
103
+ <v:value id="Other-CA" count="6">Other CA</v:value>
104
+ <v:value id="Other-PA" count="5">Other PA</v:value>
105
+ <v:value id="unknown" count="170">unknown</v:value>
106
106
  </v:attribute>
107
- <content type="html">&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Park-City--UT&quot;&gt;Park City, UT&lt;/a&gt; 99&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Porter--TX&quot;&gt;Porter, TX&lt;/a&gt; 25&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=New-York--NY&quot;&gt;New York, NY&lt;/a&gt; 22&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Los-Angeles--CA&quot;&gt;Los Angeles, CA&lt;/a&gt; 16&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Fullerton--CA&quot;&gt;Fullerton, CA&lt;/a&gt; 14&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=San-Francisco--CA&quot;&gt;San Francisco, CA&lt;/a&gt; 9&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Homeland--CA&quot;&gt;Homeland, CA&lt;/a&gt; 8&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Phoenix--AZ&quot;&gt;Phoenix, AZ&lt;/a&gt; 7&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Seattle--WA&quot;&gt;Seattle, WA&lt;/a&gt; 6&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=North-Bend--WA&quot;&gt;North Bend, WA&lt;/a&gt; 5&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=New-Haven--CT&quot;&gt;New Haven, CT&lt;/a&gt; 5&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Spokane--WA&quot;&gt;Spokane, WA&lt;/a&gt; 5&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Santa-Rosa--CA&quot;&gt;Santa Rosa, CA&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Atlanta--GA&quot;&gt;Atlanta, GA&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Trumbull--CT&quot;&gt;Trumbull, CT&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Albuquerque--NM&quot;&gt;Albuquerque, NM&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Baltimore--MD&quot;&gt;Baltimore, MD&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Boston--MA&quot;&gt;Boston, MA&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Daytona-Beach--FL&quot;&gt;Daytona Beach, FL&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Saint-Petersburg--FL&quot;&gt;Saint Petersburg, FL&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Louisville--KY&quot;&gt;Louisville, KY&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Washington--NY&quot;&gt;Washington, NY&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Aurora--IL&quot;&gt;Aurora, IL&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Stratford--CT&quot;&gt;Stratford, CT&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Bellingham--WA&quot;&gt;Bellingham, WA&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Indianapolis--IN&quot;&gt;Indianapolis, IN&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Milford--CT&quot;&gt;Milford, CT&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Bridgeport--CT&quot;&gt;Bridgeport, CT&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Champlain--NY&quot;&gt;Champlain, NY&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Torrance--CA&quot;&gt;Torrance, CA&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Columbus--OH&quot;&gt;Columbus, OH&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=San-Luis-Obispo--CA&quot;&gt;San Luis Obispo, CA&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Emeryville--CA&quot;&gt;Emeryville, CA&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Monroe--MI&quot;&gt;Monroe, MI&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Magnolia--TX&quot;&gt;Magnolia, TX&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Oxnard--CA&quot;&gt;Oxnard, CA&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Denver--CO&quot;&gt;Denver, CO&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Fort-Collins--CO&quot;&gt;Fort Collins, CO&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Raleigh--NC&quot;&gt;Raleigh, NC&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Adair--IA&quot;&gt;Adair, IA&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Vacaville--CA&quot;&gt;Vacaville, CA&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Dallas--TX&quot;&gt;Dallas, TX&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Minneapolis--MN&quot;&gt;Minneapolis, MN&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Shepparton--Australia&quot;&gt;Shepparton, Australia&lt;/a&gt; 10&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Other-CA&quot;&gt;Other CA&lt;/a&gt; 8&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Other-NY&quot;&gt;Other NY&lt;/a&gt; 5&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Other-PA&quot;&gt;Other PA&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Other-IL&quot;&gt;Other IL&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Other-OH&quot;&gt;Other OH&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=unknown&quot;&gt;unknown&lt;/a&gt; 204&lt;/li&gt;&lt;/ul&gt;</content>
107
+ <content type="html">&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Park-City--UT&quot;&gt;Park City, UT&lt;/a&gt; 72&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=New-York--NY&quot;&gt;New York, NY&lt;/a&gt; 19&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Porter--TX&quot;&gt;Porter, TX&lt;/a&gt; 16&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Fullerton--CA&quot;&gt;Fullerton, CA&lt;/a&gt; 14&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Homeland--CA&quot;&gt;Homeland, CA&lt;/a&gt; 8&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Los-Angeles--CA&quot;&gt;Los Angeles, CA&lt;/a&gt; 6&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Trumbull--CT&quot;&gt;Trumbull, CT&lt;/a&gt; 5&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Houston--TX&quot;&gt;Houston, TX&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Baltimore--MD&quot;&gt;Baltimore, MD&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Centerbrook--CT&quot;&gt;Centerbrook, CT&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Norwalk--CT&quot;&gt;Norwalk, CT&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Bridgeport--CT&quot;&gt;Bridgeport, CT&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Indianapolis--IN&quot;&gt;Indianapolis, IN&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Portland--OR&quot;&gt;Portland, OR&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Atlanta--GA&quot;&gt;Atlanta, GA&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Salt-Lake-City--UT&quot;&gt;Salt Lake City, UT&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Phoenix--AZ&quot;&gt;Phoenix, AZ&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Spokane--WA&quot;&gt;Spokane, WA&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Minneapolis--MN&quot;&gt;Minneapolis, MN&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=San-Francisco--CA&quot;&gt;San Francisco, CA&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Waterbury--CT&quot;&gt;Waterbury, CT&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Albuquerque--NM&quot;&gt;Albuquerque, NM&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Stratford--CT&quot;&gt;Stratford, CT&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Denver--CO&quot;&gt;Denver, CO&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Reading--PA&quot;&gt;Reading, PA&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Columbus--OH&quot;&gt;Columbus, OH&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=New-Haven--CT&quot;&gt;New Haven, CT&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Washington--NY&quot;&gt;Washington, NY&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=North-Haven--CT&quot;&gt;North Haven, CT&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Santa-Rosa--CA&quot;&gt;Santa Rosa, CA&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Champlain--NY&quot;&gt;Champlain, NY&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Aurora--IL&quot;&gt;Aurora, IL&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Louisville--KY&quot;&gt;Louisville, KY&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=North-Bend--WA&quot;&gt;North Bend, WA&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Honolulu--HI&quot;&gt;Honolulu, HI&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Saint-Petersburg--FL&quot;&gt;Saint Petersburg, FL&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Seattle--WA&quot;&gt;Seattle, WA&lt;/a&gt; 3&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Redondo-Beach--CA&quot;&gt;Redondo Beach, CA&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Provo--UT&quot;&gt;Provo, UT&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Fayetteville--AR&quot;&gt;Fayetteville, AR&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Boulder--CO&quot;&gt;Boulder, CO&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Davis--CA&quot;&gt;Davis, CA&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Tulsa--OK&quot;&gt;Tulsa, OK&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Jacksonville--FL&quot;&gt;Jacksonville, FL&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Charlotte--NC&quot;&gt;Charlotte, NC&lt;/a&gt; 2&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Shepparton--Australia&quot;&gt;Shepparton, Australia&lt;/a&gt; 10&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Other-NY&quot;&gt;Other NY&lt;/a&gt; 6&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Other-CA&quot;&gt;Other CA&lt;/a&gt; 6&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=Other-PA&quot;&gt;Other PA&lt;/a&gt; 5&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?location=unknown&quot;&gt;unknown&lt;/a&gt; 170&lt;/li&gt;&lt;/ul&gt;</content>
108
108
  </entry>
109
109
  <entry>
110
110
  <id>http://data.vast.com/attributes/price/-/item_vehicle/bike</id>
111
111
  <title type='text'>SAMPLE - Price</title>
112
- <updated>2011-03-18T19:14:47+01:00</updated>
112
+ <updated>2011-03-21T21:14:46+01:00</updated>
113
113
  <author>
114
114
  <name>www.vast.com</name>
115
115
  </author>
116
- <v:attribute id="price" type="money" symbol="$" currency="USD" lower="0" upper="3001" median="500">
117
- <v:value id="0-1000" count="646" min="0" max="1000">less than $1,001</v:value>
118
- <v:value id="1001-2000" count="78" min="1001" max="2000">$1,001 - $2,000</v:value>
119
- <v:value id="2001-3000" count="55" min="2001" max="3000">$2,001 - $3,000</v:value>
120
- <v:value id="3001-max" count="31" min="3001" max="max">$3,001+</v:value>
121
- <v:value id="unknown" count="42" >unknown</v:value>
116
+ <v:attribute id="price" type="money" symbol="$" currency="USD" lower="0" upper="9001" median="500">
117
+ <v:value id="0-1000" count="541" min="0" max="1000">less than $1,001</v:value>
118
+ <v:value id="1001-2000" count="70" min="1001" max="2000">$1,001 - $2,000</v:value>
119
+ <v:value id="2001-3000" count="43" min="2001" max="3000">$2,001 - $3,000</v:value>
120
+ <v:value id="3001-9000" count="29" min="3001" max="9000">$3,001 - $9,000</v:value>
121
+ <v:value id="9001-max" count="4" min="9001" max="max">$9,001+</v:value>
122
+ <v:value id="unknown" count="43" >unknown</v:value>
122
123
  </v:attribute>
123
- <content type="html">&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=0-1000&quot;&gt;less than $1,001&lt;/a&gt; 646&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=1001-2000&quot;&gt;$1,001 - $2,000&lt;/a&gt; 78&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=2001-3000&quot;&gt;$2,001 - $3,000&lt;/a&gt; 55&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=3001-max&quot;&gt;$3,001+&lt;/a&gt; 31&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=unknown&quot;&gt;unknown&lt;/a&gt; 42&lt;/li&gt;&lt;/ul&gt;</content>
124
+ <content type="html">&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=0-1000&quot;&gt;less than $1,001&lt;/a&gt; 541&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=1001-2000&quot;&gt;$1,001 - $2,000&lt;/a&gt; 70&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=2001-3000&quot;&gt;$2,001 - $3,000&lt;/a&gt; 43&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=3001-9000&quot;&gt;$3,001 - $9,000&lt;/a&gt; 29&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=9001-max&quot;&gt;$9,001+&lt;/a&gt; 4&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/attributes/-/item_vehicle/bike?price=unknown&quot;&gt;unknown&lt;/a&gt; 43&lt;/li&gt;&lt;/ul&gt;</content>
124
125
  </entry>
125
126
  <entry>
126
127
  <id>http://data.vast.com/attributes/category/-/item_vehicle/bike</id>
127
128
  <title type='text'>SAMPLE - Category</title>
128
- <updated>2011-03-18T19:14:46+01:00</updated>
129
+ <updated>2011-03-21T21:14:45+01:00</updated>
129
130
  <author>
130
131
  <name>www.vast.com</name>
131
132
  </author>
@@ -11,7 +11,7 @@
11
11
  message: OK
12
12
  headers:
13
13
  date:
14
- - Fri, 18 Mar 2011 18:14:28 GMT
14
+ - Mon, 21 Mar 2011 20:15:45 GMT
15
15
  server:
16
16
  - Apache
17
17
  x-powered-by:
@@ -25,17 +25,17 @@
25
25
  age:
26
26
  - "0"
27
27
  expires:
28
- - Fri, 18 Mar 2011 18:19:28 GMT
28
+ - Mon, 21 Mar 2011 20:20:45 GMT
29
29
  transfer-encoding:
30
30
  - chunked
31
31
  body: |
32
32
  <?xml version="1.0" encoding="utf-8" standalone="no"?>
33
33
  <feed xmlns="http://www.w3.org/2005/Atom" xmlns:v="http://data.vast.com/ns/categories">
34
34
  <id>http://data.vast.com/categories</id>
35
- <updated>2011-03-17T22:29:10+0100</updated>
35
+ <updated>2011-03-21T18:29:15+0100</updated>
36
36
  <entry>
37
37
  <id>http://data.vast.com/categories</id>
38
- <updated>2011-03-17T22:29:10+0100</updated>
38
+ <updated>2011-03-21T18:29:15+0100</updated>
39
39
  <title type="text">SAMPLE - Vast Categories</title>
40
40
  <subtitle>These are sample Vast API results. These results may only be used for testing and demonstrating applications and components based on the Vast API. All other uses are prohibited. For results suitable for other uses, including commercial use, please include your API key using the apikey parameter. You may apply for an API key at http://www.vast.com/partner.</subtitle>
41
41
  <v:category count="1869094" id="jobs" name="Jobs"/>
@@ -301,7 +301,7 @@
301
301
  - !ruby/struct:VCR::HTTPInteraction
302
302
  request: !ruby/struct:VCR::Request
303
303
  method: :get
304
- uri: http://data.vast.com:80/listings/-5132760670951876731/-/item_vehicle,bike
304
+ uri: http://data.vast.com:80/listings//-/item_vehicle/bike
305
305
  body:
306
306
  headers:
307
307
  response: !ruby/struct:VCR::Response
@@ -310,7 +310,45 @@
310
310
  message: OK
311
311
  headers:
312
312
  date:
313
- - Fri, 18 Mar 2011 18:14:31 GMT
313
+ - Mon, 21 Mar 2011 20:15:47 GMT
314
+ server:
315
+ - Apache
316
+ x-powered-by:
317
+ - PHP/5.2.14
318
+ content-type:
319
+ - text/html; charset=utf-8
320
+ accept-ranges:
321
+ - bytes
322
+ cache-control:
323
+ - private, max-age=300
324
+ age:
325
+ - "0"
326
+ expires:
327
+ - Mon, 21 Mar 2011 20:20:47 GMT
328
+ transfer-encoding:
329
+ - chunked
330
+ body: |
331
+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
332
+ <html><head>
333
+ <title></title>
334
+ </head><body>
335
+ <h1></h1>
336
+ </body></html>
337
+
338
+ http_version: "1.1"
339
+ - !ruby/struct:VCR::HTTPInteraction
340
+ request: !ruby/struct:VCR::Request
341
+ method: :get
342
+ uri: http://data.vast.com:80/listings/555288039954342885/-/item_vehicle/bike
343
+ body:
344
+ headers:
345
+ response: !ruby/struct:VCR::Response
346
+ status: !ruby/struct:VCR::ResponseStatus
347
+ code: 200
348
+ message: OK
349
+ headers:
350
+ date:
351
+ - Mon, 21 Mar 2011 22:01:10 GMT
314
352
  server:
315
353
  - Apache
316
354
  x-powered-by:
@@ -324,48 +362,48 @@
324
362
  age:
325
363
  - "0"
326
364
  expires:
327
- - Fri, 18 Mar 2011 18:19:31 GMT
365
+ - Mon, 21 Mar 2011 22:06:10 GMT
328
366
  transfer-encoding:
329
367
  - chunked
330
368
  body: |
331
369
  <entry xmlns='http://www.w3.org/2005/Atom' xmlns:v='http://data.vast.com/ns/listings'>
332
- <id>http://data.vast.com/listings/-5132760670951876731/-/item_vehicle/bike</id>
333
- <updated>2011-03-10T09:03:11+01:00</updated>
334
- <published>2011-03-08T09:02:56+01:00</published>
370
+ <id>http://data.vast.com/listings/555288039954342885/-/item_vehicle/bike</id>
371
+ <updated>2011-03-18T09:04:04+01:00</updated>
372
+ <published>2011-02-14T09:03:26+01:00</published>
335
373
  <author>
336
374
  <name>www.sample.com</name>
337
375
  </author>
338
- <title type="text">SAMPLE - Colnago Ferrari CX 60 bicycle</title>
376
+ <title type="text">SAMPLE - Vintage 25 Inch Univega</title>
339
377
  <v:vertical>general</v:vertical>
340
378
  <v:category>item_vehicle%2Cbike</v:category>
341
- <v:item_id>-5132760670951876731</v:item_id>
342
- <v:location precision="city">
343
- <v:state>Vi</v:state>
344
- <v:country>Australia</v:country>
345
- <v:zip></v:zip>
379
+ <v:item_id>555288039954342885</v:item_id>
380
+ <v:location precision="zip">
381
+ <v:state>WA</v:state>
382
+ <v:country>United States</v:country>
383
+ <v:zip>98077</v:zip>
346
384
  <v:distance>0</v:distance>
347
- <v:city>Shepparton</v:city>
348
- <v:lat precision="unknown">-36.383000</v:lat>
349
- <v:lon precision="unknown">145.400000</v:lon>
385
+ <v:city>Woodinville</v:city>
386
+ <v:lat precision="unknown">47.749870</v:lat>
387
+ <v:lon precision="unknown">-122.098319</v:lon>
350
388
  <v:address></v:address>
351
389
  </v:location>
352
390
  <v:price type="money" symbol="$" currency="USD" value="0"/>
353
391
  <v:currency type="text">USD</v:currency>
354
- <link rel="self" type="application/atom+xml" href="http://data.vast.com/listings/-5132760670951876731/-/item_vehicle/bike?apikey="/>
355
- <link rel="via" type="text/html" title="www.sample.com" href="http://details.vast.com/details/item_vehicle/bike/ob-Nzeze2zBRLy3WbBh09E8m4HRCw==/"/>
356
- <link rel="alternate" type="text/html" title="Colnago Ferrari CX 60 bicycle" href="http://details.vast.com/details/item_vehicle/bike/ob-Nzeze2zBRLy3WbBh09E8m4HRCw==/"/>
357
- <link rel="http://feedback.vast.com" type="text/html" title="Report incorrect result" href="http://www.vast.com/ajax/report?id=-5132760670951876731&amp;category=item_vehicle/bike&amp;apikey="/>
392
+ <link rel="self" type="application/atom+xml" href="http://data.vast.com/listings/555288039954342885/-/item_vehicle/bike?apikey="/>
393
+ <link rel="via" type="text/html" title="www.sample.com" href="http://details.vast.com/details/item_vehicle/bike/ob-NzezewM0CURHmZaIMMyUBGiJ/"/>
394
+ <link rel="alternate" type="text/html" title="Vintage 25 Inch Univega" href="http://details.vast.com/details/item_vehicle/bike/ob-NzezewM0CURHmZaIMMyUBGiJ/"/>
395
+ <link rel="http://feedback.vast.com" type="text/html" title="Report incorrect result" href="http://www.vast.com/ajax/report?id=555288039954342885&amp;category=item_vehicle/bike&amp;apikey="/>
358
396
  <v:domain_name type="text">www.sample.com</v:domain_name>
359
397
  <v:year type="number"></v:year>
360
- <v:image_url type="image/jpeg">http://img.vast.com/128x96/-5132760670951876731</v:image_url>
361
- <v:large_image_url type="image/jpeg">http://img.vast.com/320x240/-5132760670951876731</v:large_image_url>
362
- <v:tiny_image_url type="image/jpeg">http://img.vast.com/59x44/-5132760670951876731</v:tiny_image_url>
398
+ <v:image_url type="image/jpeg">http://img.vast.com/128x96/555288039954342885</v:image_url>
399
+ <v:large_image_url type="image/jpeg">http://img.vast.com/320x240/555288039954342885</v:large_image_url>
400
+ <v:tiny_image_url type="image/jpeg">http://img.vast.com/59x44/555288039954342885</v:tiny_image_url>
363
401
  <v:image_count>1</v:image_count>
364
402
  <v:hasimage type="boolean">yes</v:hasimage>
365
403
  <v:hosted type="boolean">no</v:hosted>
366
404
  <v:hosted_type type="text">landing</v:hosted_type>
367
- <v:description type="text">The Ferrari CX 60 bicycle is a MTB model dedicated to all Ferrari enthusiasts looking for an highly performing bicycle. This red Ferrari model features the sophisticated suspension system Rock Shox with W/ ball bearing Multilink which guarantees excellent comfort on all ground conditions. The Ferrari CX 60 is equipped with Suntour Epicon forks Shimano LX derailleurs and shifters ultra-light frame made from hydroformed aluminium and Shimano hydraulic disk Deore brakes. The CX 60 features Continental Explorer Pro 26 tires. The model is finished by Wellgo pedels double density grips and Ferrari Sport Edition microfiber saddle. The Ferrari CX 60 is perfect to face all kind of steep slopes without renouncing to comfort and style. The Ferrari CX 60 bicycle has been produced by Turbo with Colnago exclusively for Ferrari. Frame size M - 470 mm. Weight 138 kg approx. Colour red Ferrari Team Two-year guarantee.</v:description>
368
- <content type="html">&lt;img src="http://img.vast.com/128x96/-5132760670951876731"&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;description:&lt;/strong&gt;The Ferrari CX 60 bicycle is a MTB model dedicated to all Ferrari enthusiasts looking for an highly performing bicycle. This red Ferrari model features the sophisticated suspension system Rock Shox with W/ ball bearing Multilink which guarantees excellent comfort on all ground conditions. The Ferrari CX 60 is equipped with Suntour Epicon forks Shimano LX derailleurs and shifters ultra-light frame made from hydroformed aluminium and Shimano hydraulic disk Deore brakes. The CX 60 features Continental Explorer Pro 26 tires. The model is finished by Wellgo pedels double density grips and Ferrari Sport Edition microfiber saddle. The Ferrari CX 60 is perfect to face all kind of steep slopes without renouncing to comfort and style. The Ferrari CX 60 bicycle has been produced by Turbo with Colnago exclusively for Ferrari. Frame size M - 470 mm. Weight 138 kg approx. Colour red Ferrari Team Two-year guarantee.&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;Australia&lt;/li&gt;&lt;li&gt;&lt;strong&gt;state:&lt;/strong&gt;Vi&lt;/li&gt;&lt;li&gt;&lt;strong&gt;city:&lt;/strong&gt;Shepparton&lt;/li&gt;&lt;/ul&gt;</content>
405
+ <v:description type="text">This bike is in great condition. Everything on the bike still works incredibly well. Questions and concerns - Kramsivamhotmail.com</v:description>
406
+ <content type="html">&lt;img src="http://img.vast.com/128x96/555288039954342885"&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;description:&lt;/strong&gt;This bike is in great condition. Everything on the bike still works incredibly well. Questions and concerns - Kramsivamhotmail.com&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;WA&lt;/li&gt;&lt;li&gt;&lt;strong&gt;zip:&lt;/strong&gt;98077&lt;/li&gt;&lt;li&gt;&lt;strong&gt;city:&lt;/strong&gt;Woodinville&lt;/li&gt;&lt;/ul&gt;</content>
369
407
  </entry>
370
408
 
371
409
  http_version: "1.1"
@@ -49,15 +49,17 @@ describe VastApi do
49
49
 
50
50
  it "find should raise an error if there is no category" do
51
51
  bike = @listing.first
52
- lambda { @vast.find(bike.id) }.must_raise ArgumentError
52
+ lambda { VastApi.new.find(bike.id) }.must_raise ArgumentError
53
53
  end
54
54
 
55
55
  it "find should get a single item" do
56
56
  bike = @listing.first
57
+ p bike.id
58
+ find_bike_cat = ''
57
59
  VCR.use_cassette('find bike with category', :record => :new_episodes) do
58
- find_bike_cat = @vast.find(bike.id, @listing.query['category'])
59
- find_bike_cat.id.must_equal bike.id
60
+ find_bike_cat = @vast.find!(bike.id)
60
61
  end
62
+ find_bike_cat.id.must_equal bike.id
61
63
  end
62
64
  end
63
65
 
@@ -69,7 +71,6 @@ describe VastApi do
69
71
  end
70
72
 
71
73
  it "should be able to fetch attributes" do
72
- p @attributes
73
74
  @attributes.size.must_be(:>, 0)
74
75
  end
75
76
 
data/vast_api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vast_api}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Ong", "Mikhail Knyazev"]
12
- s.date = %q{2011-03-18}
12
+ s.date = %q{2011-03-21}
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 = [
@@ -27,7 +27,6 @@ Gem::Specification.new do |s|
27
27
  "lib/vast_api.rb",
28
28
  "lib/vast_api/attributes.rb",
29
29
  "lib/vast_api/attributes/entry.rb",
30
- "lib/vast_api/base.rb",
31
30
  "lib/vast_api/categories.rb",
32
31
  "lib/vast_api/categories/category.rb",
33
32
  "lib/vast_api/listings.rb",
@@ -40,7 +39,7 @@ Gem::Specification.new do |s|
40
39
  "test/test_vast_api.rb",
41
40
  "vast_api.gemspec"
42
41
  ]
43
- s.homepage = %q{http://github.com/ryanong/vast_api}
42
+ s.homepage = %q{http://github.com/carzen/vast_api}
44
43
  s.licenses = ["MIT"]
45
44
  s.require_paths = ["lib"]
46
45
  s.rubygems_version = %q{1.6.1}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vast_api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ryan Ong
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-03-18 00:00:00 -04:00
14
+ date: 2011-03-21 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -133,7 +133,6 @@ files:
133
133
  - lib/vast_api.rb
134
134
  - lib/vast_api/attributes.rb
135
135
  - lib/vast_api/attributes/entry.rb
136
- - lib/vast_api/base.rb
137
136
  - lib/vast_api/categories.rb
138
137
  - lib/vast_api/categories/category.rb
139
138
  - lib/vast_api/listings.rb
@@ -146,7 +145,7 @@ files:
146
145
  - test/test_vast_api.rb
147
146
  - vast_api.gemspec
148
147
  has_rdoc: true
149
- homepage: http://github.com/ryanong/vast_api
148
+ homepage: http://github.com/carzen/vast_api
150
149
  licenses:
151
150
  - MIT
152
151
  post_install_message:
@@ -159,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
158
  requirements:
160
159
  - - ">="
161
160
  - !ruby/object:Gem::Version
162
- hash: 3557780049682049951
161
+ hash: 292590391515625799
163
162
  segments:
164
163
  - 0
165
164
  version: "0"
data/lib/vast_api/base.rb DELETED
@@ -1,43 +0,0 @@
1
- require 'open-uri'
2
- require 'nokogiri'
3
-
4
- class VastApi
5
- class Base < Array
6
- attr_reader :xml, :url, :vast
7
-
8
- def initialize(vast)
9
- @vast = vast
10
- @url = "#{API_URL}#{self.class.to_s.split('::')[1].downcase}/-/#{@vast.category}?#{@vast.query}"
11
- @xml = Nokogiri::XML(open(@url))
12
- populate
13
- end
14
-
15
- def attr(var_name)
16
- if var = @xml.at(var_name)
17
- var.text
18
- elsif var = @xml.at('//v:'+var_name)
19
- var.text
20
- elsif var = @xml.at('//o:'+var_name)
21
- var.text
22
- else
23
- nil
24
- end
25
- end
26
-
27
- def attributes
28
- @vast.attributes
29
- end
30
-
31
- def listings
32
- @vast.listings
33
- end
34
-
35
- def categories
36
- @vast.categories
37
- end
38
- private
39
-
40
- def populate
41
- end
42
- end
43
- end