campgrounds 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +48 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +40 -0
- data/LICENSE.txt +22 -0
- data/README.md +64 -0
- data/Rakefile +7 -0
- data/campgrounds.gemspec +30 -0
- data/lib/campgrounds/base.rb +35 -0
- data/lib/campgrounds/campground_details.rb +26 -0
- data/lib/campgrounds/campground_search.rb +218 -0
- data/lib/campgrounds/campsite_search.rb +138 -0
- data/lib/campgrounds/version.rb +3 -0
- data/lib/campgrounds.rb +20 -0
- data/pkg/campgrounds-0.0.1.gem +0 -0
- data/spec/fixtures/campgrounds_cassettes/campground_details.yml +231 -0
- data/spec/fixtures/campgrounds_cassettes/campground_search.yml +1556 -0
- data/spec/fixtures/campgrounds_cassettes/campground_search_added.yml +1465 -0
- data/spec/fixtures/campgrounds_cassettes/campground_search_find.yml +87157 -0
- data/spec/fixtures/campgrounds_cassettes/campsite_search.yml +3930 -0
- data/spec/fixtures/campgrounds_cassettes/campsite_search_find.yml +3131 -0
- data/spec/lib/campgrounds/base_spec.rb +10 -0
- data/spec/lib/campgrounds/campground_details_spec.rb +47 -0
- data/spec/lib/campgrounds/campground_search_spec.rb +127 -0
- data/spec/lib/campgrounds/campsite_search_spec.rb +125 -0
- data/spec/spec_helper.rb +16 -0
- metadata +217 -0
@@ -0,0 +1,231 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.amp.active.com/camping/campground/details?api_key=2chxq68efd4azrpygt5hh2qu&contractCode=CO&parkId=50032
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Accept-Ranges:
|
22
|
+
- bytes
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, no-cache, no-store
|
25
|
+
Content-Type:
|
26
|
+
- text/xml
|
27
|
+
Date:
|
28
|
+
- Thu, 04 Oct 2012 03:00:17 GMT
|
29
|
+
Expires:
|
30
|
+
- Thu, 04 Oct 2012 03:00:17 GMT
|
31
|
+
Pragma:
|
32
|
+
- no-cache
|
33
|
+
Server:
|
34
|
+
- Apache
|
35
|
+
Set-Cookie:
|
36
|
+
- JSESSIONID=81F475E320A664E72EBF731926A4EF61.web06-ny; Path=/
|
37
|
+
- NSC_QSPE-VXQ-IUUQ=ffffffff09293c2945525d5f4f58455e445a4a4225b9;Version=1;Max-Age=3600;path=/;httponly
|
38
|
+
- _rauv_=81F475E320A664E72EBF731926A4EF61.web06-ny_; Domain=.reserveamerica.com;
|
39
|
+
Expires=Wed, 29-Sep-2032 03:00:14 GMT; Path=/
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
X-Original-Content-Encoding:
|
43
|
+
- gzip
|
44
|
+
X-Original-Content-Length:
|
45
|
+
- '2112'
|
46
|
+
Content-Length:
|
47
|
+
- '6779'
|
48
|
+
Connection:
|
49
|
+
- keep-alive
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ! '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
53
|
+
|
54
|
+
<detailDescription alert="BEAR ALERT: BLACK BEARS ARE COMMON IN THE PARK.
|
55
|
+
FOOD STORAGE REGULATION STRICTLY ENFORCED!FIRST COME FIRST SERVE CAMPING MAY
|
56
|
+
BE AVAILBLE OUTSIDE THE RESERVATION DATES. CONTACT THE PARK FOR INFORMATION."
|
57
|
+
contractID="CO" description=" The Mueller cabins are only reservable through
|
58
|
+
the call center. Mueller State Park is open year round. With its wealth
|
59
|
+
of aspen trees, each season is a delight for photographers and sightseers
|
60
|
+
visiting the park. Over fifty miles of scenic trails invite you to explore
|
61
|
+
the park&amp;#39;s rare beauty. Hiking, camping, mountain biking, horseback
|
62
|
+
riding, snow shoeing, cross country skiing and nature study are the park&amp;#39;s
|
63
|
+
main attractions. Mueller&amp;#39;s 5,121 acres of aspen and conifer
|
64
|
+
forests are home to an abundance of wildlife including black bear, elk, deer,
|
65
|
+
fox, coyotes, &amp; hawks. 132 campsites in seven loops include 110 electrical
|
66
|
+
sites accommodating motor homes, trailers and tents, and 22 walk-in tent only
|
67
|
+
sites. Campsites fees range from $16 - $20. After the middle of October, limited
|
68
|
+
winter campsites are available first come/first serve. There is an extra $2
|
69
|
+
per night camping fee for all sites with an arrival date of May 1 - September
|
70
|
+
30. For more information, call the park at 719-687-2366." drivingDirection="25
|
71
|
+
miles west of Colorado Springs on Hwy 24 to Divide. Then 3 1/2 miles south
|
72
|
+
on Hwy 67 to the park entrance." facilitiesDescription="" facility="MUELLER
|
73
|
+
STATE PARK" facilityID="50032" fullReservationUrl="http://www.reserveamerica.com/campsiteSearch.do?contractCode=CO&parkId=50032"
|
74
|
+
importantInformation="Fire danger is high this season. ATTENTION TENT CAMPERS:
|
75
|
+
When checking site information, tent campers must scroll down and read the
|
76
|
+
&quot;IMPORTANT INFORMATION&quot; which will contain tent size information
|
77
|
+
for that site. Some sites will not accommodate tents. ATTENTION ALL CAMPERS:
|
78
|
+
Mueller is Black Bear country. Proper food storage is required per regulations.
|
79
|
+
IMPORTANT RESERVATION INFORMATION: Mueller&apos;s campsites are on reservations
|
80
|
+
approximately the middle of May through the middle of October. Reservations
|
81
|
+
must be made at least three days in advance of your arrival. Aspen Leaf Annual
|
82
|
+
Pass holders can make discounted reservations online. In addition to the camping
|
83
|
+
fee, a parks pass (annual or daily) is required on all vehicles entering the
|
84
|
+
park. Parks passes are not included in reservation fees. FIRST-COME, FIRST-SERVE
|
85
|
+
CAMPING MAY BE AVAILBLE OUTSIDE THE RESERVATION DATES. CONTACT THE PARK FOR
|
86
|
+
INFORMATION. " latitude="38.8947222" longitude="-105.1794444" nearbyAttrctionDescription=""
|
87
|
+
orientationDescription="" recreationDescription="" regionName="Southeast Region"
|
88
|
+
reservationUrl="/campsiteSearch.do?contractCode=CO&parkId=50032">
|
89
|
+
|
90
|
+
<address city="DIVIDE" country="United States" shortName="MUST" state="Colorado"
|
91
|
+
streetAddress="P.O. BOX 39" zip="80814"/>
|
92
|
+
|
93
|
+
<photo realUrl="/webphotos/CO/pid50032/0/180x120.jpg" url="<img width="180"
|
94
|
+
height="120" src="/webphotos/CO/pid50032/0/180x120.jpg"
|
95
|
+
class="PopBoxImageSmall" pbsrc="/webphotos/CO/pid50032/0/540x360.jpg"
|
96
|
+
onclick="PopPhoto(this,50,''PopBoxImageLarge'');" />"/>
|
97
|
+
|
98
|
+
<photo realUrl="/webphotos/CO/pid50032/1/180x120.jpg" url="<img width="180"
|
99
|
+
height="120" src="/webphotos/CO/pid50032/1/180x120.jpg"
|
100
|
+
class="PopBoxImageSmall" pbsrc="/webphotos/CO/pid50032/1/540x360.jpg"
|
101
|
+
onclick="PopPhoto(this,50,''PopBoxImageLarge'');" />"/>
|
102
|
+
|
103
|
+
<photo realUrl="/webphotos/CO/pid50032/2/180x120.jpg" url="<img width="180"
|
104
|
+
height="120" src="/webphotos/CO/pid50032/2/180x120.jpg"
|
105
|
+
class="PopBoxImageSmall" pbsrc="/webphotos/CO/pid50032/2/540x360.jpg"
|
106
|
+
onclick="PopPhoto(this,50,''PopBoxImageLarge'');" />"/>
|
107
|
+
|
108
|
+
<photo realUrl="/webphotos/CO/pid50032/3/180x120.jpg" url="<img width="180"
|
109
|
+
height="120" src="/webphotos/CO/pid50032/3/180x120.jpg"
|
110
|
+
class="PopBoxImageSmall" pbsrc="/webphotos/CO/pid50032/3/540x360.jpg"
|
111
|
+
onclick="PopPhoto(this,50,''PopBoxImageLarge'');" />"/>
|
112
|
+
|
113
|
+
<photo realUrl="/webphotos/CO/pid50032/4/180x120.jpg" url="<img width="180"
|
114
|
+
height="120" src="/webphotos/CO/pid50032/4/180x120.jpg"
|
115
|
+
class="PopBoxImageSmall" pbsrc="/webphotos/CO/pid50032/4/540x360.jpg"
|
116
|
+
onclick="PopPhoto(this,50,''PopBoxImageLarge'');" />"/>
|
117
|
+
|
118
|
+
<photo realUrl="/webphotos/CO/pid50032/5/180x120.jpg" url="<img width="180"
|
119
|
+
height="120" src="/webphotos/CO/pid50032/5/180x120.jpg"
|
120
|
+
class="PopBoxImageSmall" pbsrc="/webphotos/CO/pid50032/5/540x360.jpg"
|
121
|
+
onclick="PopPhoto(this,50,''PopBoxImageLarge'');" />"/>
|
122
|
+
|
123
|
+
<informationLink link="" title=""/>
|
124
|
+
|
125
|
+
<contact name="Direct Line" number="7196872366"/>
|
126
|
+
|
127
|
+
<contact name="Ranger Station" number="7196872366"/>
|
128
|
+
|
129
|
+
<amenity distance="Within Facility" name="Biking"/>
|
130
|
+
|
131
|
+
<amenity distance="Within Facility" name="Bird Watching"/>
|
132
|
+
|
133
|
+
<amenity distance="Within Facility" name="Camper Services Bldg"/>
|
134
|
+
|
135
|
+
<amenity distance="Within Facility" name="Comfort Station"/>
|
136
|
+
|
137
|
+
<amenity distance="Within Facility" name="Cross Country Skiing"/>
|
138
|
+
|
139
|
+
<amenity distance="Within Facility" name="Dump Station"/>
|
140
|
+
|
141
|
+
<amenity distance="Within Facility" name="Firewood Available"/>
|
142
|
+
|
143
|
+
<amenity distance="Within Facility" name="Fishing"/>
|
144
|
+
|
145
|
+
<amenity distance="Within Facility" name="Group Campground"/>
|
146
|
+
|
147
|
+
<amenity distance="Within Facility" name="Hiking"/>
|
148
|
+
|
149
|
+
<amenity distance="Within Facility" name="Horseback Riding"/>
|
150
|
+
|
151
|
+
<amenity distance="Within Facility" name="Hunting"/>
|
152
|
+
|
153
|
+
<amenity distance="Within Facility" name="Interpretitive Programs"/>
|
154
|
+
|
155
|
+
<amenity distance="Within Facility" name="Laundry Facilities"/>
|
156
|
+
|
157
|
+
<amenity distance="Within Facility" name="Natural Shade"/>
|
158
|
+
|
159
|
+
<amenity distance="Within Facility" name="Nature Study Exhibits"/>
|
160
|
+
|
161
|
+
<amenity distance="Within Facility" name="Parking"/>
|
162
|
+
|
163
|
+
<amenity distance="Within Facility" name="Photography"/>
|
164
|
+
|
165
|
+
<amenity distance="Within Facility" name="Picnic Tables"/>
|
166
|
+
|
167
|
+
<amenity distance="Within Facility" name="Picnicking"/>
|
168
|
+
|
169
|
+
<amenity distance="Within Facility" name="Playground"/>
|
170
|
+
|
171
|
+
<amenity distance="Within Facility" name="Proximity To Camp Serv."/>
|
172
|
+
|
173
|
+
<amenity distance="Within Facility" name="Ranger Station"/>
|
174
|
+
|
175
|
+
<amenity distance="Within Facility" name="Showers"/>
|
176
|
+
|
177
|
+
<amenity distance="Within Facility" name="Snow Shoeing"/>
|
178
|
+
|
179
|
+
<amenity distance="Within Facility" name="Snow Sledding"/>
|
180
|
+
|
181
|
+
<amenity distance="Within Facility" name="Visitor Center"/>
|
182
|
+
|
183
|
+
<amenity distance="Within Facility" name="Wildlife Watching Opportunity"/>
|
184
|
+
|
185
|
+
<bulletin/>
|
186
|
+
|
187
|
+
</detailDescription>
|
188
|
+
|
189
|
+
'
|
190
|
+
http_version:
|
191
|
+
recorded_at: Thu, 04 Oct 2012 03:20:37 GMT
|
192
|
+
- request:
|
193
|
+
method: get
|
194
|
+
uri: http://api.amp.active.com/camping/campground/details
|
195
|
+
body:
|
196
|
+
encoding: US-ASCII
|
197
|
+
string: ''
|
198
|
+
headers:
|
199
|
+
Accept:
|
200
|
+
- ! '*/*; q=0.5, application/xml'
|
201
|
+
Accept-Encoding:
|
202
|
+
- gzip, deflate
|
203
|
+
Params:
|
204
|
+
- ?contractCode=CO&parkId=50032&2chxq68efd4azrpygt5hh2qu=
|
205
|
+
User-Agent:
|
206
|
+
- Ruby
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 403
|
210
|
+
message: Forbidden
|
211
|
+
headers:
|
212
|
+
Accept-Ranges:
|
213
|
+
- bytes
|
214
|
+
Content-Type:
|
215
|
+
- text/xml
|
216
|
+
Date:
|
217
|
+
- Thu, 04 Oct 2012 19:50:56 GMT
|
218
|
+
Server:
|
219
|
+
- Mashery Proxy
|
220
|
+
X-Mashery-Error-Code:
|
221
|
+
- ERR_403_DEVELOPER_INACTIVE
|
222
|
+
Content-Length:
|
223
|
+
- '31'
|
224
|
+
Connection:
|
225
|
+
- keep-alive
|
226
|
+
body:
|
227
|
+
encoding: US-ASCII
|
228
|
+
string: <h1>403 Developer Inactive</h1>
|
229
|
+
http_version:
|
230
|
+
recorded_at: Thu, 04 Oct 2012 19:50:56 GMT
|
231
|
+
recorded_with: VCR 2.2.5
|