songkickr 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +6 -2
- data/Gemfile.lock +32 -10
- data/README.rdoc +7 -7
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/bin/autospec +16 -0
- data/bin/convert_to_should_syntax +16 -0
- data/bin/guard +16 -0
- data/bin/htmldiff +16 -0
- data/bin/httparty +16 -0
- data/bin/jeweler +16 -0
- data/bin/ldiff +16 -0
- data/bin/rake +16 -0
- data/bin/rake2thor +16 -0
- data/bin/rg +16 -0
- data/bin/ri +16 -0
- data/bin/rspec +16 -0
- data/bin/thor +16 -0
- data/doc/APIError.html +241 -0
- data/doc/APIKeyNotSet.html +164 -175
- data/doc/LICENSE.html +109 -109
- data/doc/README_rdoc.html +120 -117
- data/doc/ResourceNotFound.html +203 -0
- data/doc/Songkickr/Artist.html +210 -237
- data/doc/Songkickr/ArtistResult.html +228 -254
- data/doc/Songkickr/ConcertSetlistResult.html +205 -223
- data/doc/Songkickr/Event.html +344 -409
- data/doc/Songkickr/EventResult.html +226 -252
- data/doc/Songkickr/Location.html +210 -237
- data/doc/Songkickr/LocationResult.html +229 -255
- data/doc/Songkickr/Performance.html +222 -253
- data/doc/Songkickr/Remote.html +630 -481
- data/doc/Songkickr/Setlist.html +258 -296
- data/doc/Songkickr/SetlistItem.html +187 -206
- data/doc/Songkickr/Venue.html +205 -232
- data/doc/Songkickr.html +204 -271
- data/doc/created.rid +16 -16
- data/doc/images/add.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/index.html +93 -127
- data/doc/js/darkfish.js +99 -62
- data/doc/js/jquery.js +15 -29
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +119 -339
- data/doc/table_of_contents.html +185 -0
- data/lib/songkickr/artist.rb +3 -3
- data/lib/songkickr/remote.rb +36 -13
- data/lib/songkickr.rb +16 -2
- data/songkickr.gemspec +121 -4
- data/test/fixtures/vcr/invalid_api_key.yml +63 -0
- data/test/fixtures/vcr/invalid_event_id.yml +33 -0
- data/test/fixtures/vcr/invalid_user.yml +32 -0
- data/test/fixtures/vcr/invalid_venue_id.yml +33 -0
- data/test/fixtures/vcr/valid_event.yml +52 -0
- data/test/fixtures/vcr/valid_user.yml +71 -0
- data/test/fixtures/vcr/valid_venue.yml +53 -0
- data/test/helper.rb +2 -2
- data/test/songkickr/test_remote.rb +68 -24
- data/test/vcr_helper.rb +7 -0
- data/test.rb +2 -2
- metadata +626 -40
data/doc/Songkickr/Location.html
CHANGED
@@ -1,150 +1,143 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
5
4
|
<head>
|
6
|
-
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
7
6
|
|
8
|
-
|
7
|
+
<title>class Songkickr::Location - RDoc Documentation</title>
|
9
8
|
|
10
|
-
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
16
14
|
|
17
|
-
|
18
|
-
<
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
19
21
|
|
20
|
-
<div id="metadata">
|
21
|
-
<div id="home-metadata">
|
22
|
-
<div id="home-section" class="section">
|
23
|
-
<h3 class="section-header">
|
24
|
-
<a href="../index.html">Home</a>
|
25
|
-
<a href="../index.html#classes">Classes</a>
|
26
|
-
<a href="../index.html#methods">Methods</a>
|
27
|
-
</h3>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
22
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/songkickr/location.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
43
53
|
|
44
|
-
|
45
|
-
|
54
|
+
|
55
|
+
</div>
|
46
56
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link">Object
|
63
|
+
|
64
|
+
</nav>
|
57
65
|
|
58
|
-
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
59
70
|
|
60
|
-
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
</ul>
|
76
|
+
</nav>
|
61
77
|
|
62
|
-
|
63
|
-
<!-- Method Quickref -->
|
64
|
-
<div id="method-list-section" class="section">
|
65
|
-
<h3 class="section-header">Methods</h3>
|
66
|
-
<ul class="link-list">
|
67
|
-
|
68
|
-
<li><a href="#method-c-new">::new</a></li>
|
69
|
-
|
70
|
-
</ul>
|
71
|
-
</div>
|
72
|
-
|
78
|
+
</div>
|
73
79
|
|
74
|
-
|
75
|
-
|
80
|
+
<div id="project-metadata">
|
81
|
+
<nav id="fileindex-section" class="section project-section">
|
82
|
+
<h3 class="section-header">Pages</h3>
|
76
83
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
87
|
-
|
88
|
-
</ul>
|
89
|
-
</div>
|
90
|
-
|
84
|
+
<ul>
|
85
|
+
|
86
|
+
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
87
|
+
|
88
|
+
<li class="file"><a href="../README_rdoc.html">README</a>
|
89
|
+
|
90
|
+
</ul>
|
91
|
+
</nav>
|
91
92
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<li><a href="../Songkickr/Venue.html">Songkickr::Venue</a></li>
|
132
|
-
|
133
|
-
<li><a href="../APIKeyNotSet.html">APIKeyNotSet</a></li>
|
134
|
-
|
135
|
-
</ul>
|
136
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
137
|
-
</div>
|
93
|
+
<nav id="classindex-section" class="section project-section">
|
94
|
+
<h3 class="section-header">Class and Module Index</h3>
|
95
|
+
|
96
|
+
<ul class="link-list">
|
97
|
+
|
98
|
+
<li><a href="../Songkickr.html">Songkickr</a>
|
99
|
+
|
100
|
+
<li><a href="../Songkickr/Artist.html">Songkickr::Artist</a>
|
101
|
+
|
102
|
+
<li><a href="../Songkickr/ArtistResult.html">Songkickr::ArtistResult</a>
|
103
|
+
|
104
|
+
<li><a href="../Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a>
|
105
|
+
|
106
|
+
<li><a href="../Songkickr/Event.html">Songkickr::Event</a>
|
107
|
+
|
108
|
+
<li><a href="../Songkickr/EventResult.html">Songkickr::EventResult</a>
|
109
|
+
|
110
|
+
<li><a href="../Songkickr/Location.html">Songkickr::Location</a>
|
111
|
+
|
112
|
+
<li><a href="../Songkickr/LocationResult.html">Songkickr::LocationResult</a>
|
113
|
+
|
114
|
+
<li><a href="../Songkickr/Performance.html">Songkickr::Performance</a>
|
115
|
+
|
116
|
+
<li><a href="../Songkickr/Remote.html">Songkickr::Remote</a>
|
117
|
+
|
118
|
+
<li><a href="../Songkickr/Setlist.html">Songkickr::Setlist</a>
|
119
|
+
|
120
|
+
<li><a href="../Songkickr/SetlistItem.html">Songkickr::SetlistItem</a>
|
121
|
+
|
122
|
+
<li><a href="../Songkickr/Venue.html">Songkickr::Venue</a>
|
123
|
+
|
124
|
+
<li><a href="../APIError.html">APIError</a>
|
125
|
+
|
126
|
+
<li><a href="../APIKeyNotSet.html">APIKeyNotSet</a>
|
127
|
+
|
128
|
+
<li><a href="../ResourceNotFound.html">ResourceNotFound</a>
|
129
|
+
|
130
|
+
</ul>
|
131
|
+
</nav>
|
138
132
|
|
139
|
-
|
140
|
-
</div>
|
141
133
|
</div>
|
134
|
+
</nav>
|
142
135
|
|
143
|
-
|
144
|
-
|
136
|
+
<div id="documentation">
|
137
|
+
<h1 class="class">class Songkickr::Location</h1>
|
145
138
|
|
146
|
-
|
147
|
-
|
139
|
+
<div id="description" class="description">
|
140
|
+
|
148
141
|
<p>A class to represent the hash of a <a href="Location.html">Location</a>.</p>
|
149
142
|
|
150
143
|
<pre>{
|
@@ -169,120 +162,103 @@
|
|
169
162
|
<p><a
|
170
163
|
href="http://www.songkick.com/developer/location-search">www.songkick.com/developer/location-search</a></p>
|
171
164
|
|
172
|
-
|
165
|
+
</div><!-- description -->
|
173
166
|
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
174
171
|
|
175
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
176
|
-
|
177
172
|
|
178
|
-
|
173
|
+
|
179
174
|
|
180
|
-
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
<!-- Attributes -->
|
179
|
+
<section id="attribute-method-details" class="method-section section">
|
180
|
+
<h3 class="section-header">Attributes</h3>
|
181
181
|
|
182
182
|
|
183
|
-
|
184
|
-
|
185
|
-
|
183
|
+
<div id="attribute-i-city" class="method-detail">
|
184
|
+
<div class="method-heading attribute-method-heading">
|
185
|
+
<span class="method-name">city</span><span
|
186
|
+
class="attribute-access-type">[RW]</span>
|
187
|
+
</div>
|
186
188
|
|
189
|
+
<div class="method-description">
|
187
190
|
|
188
|
-
<div id="city-attribute-method" class="method-detail">
|
189
|
-
<a name="city"></a>
|
190
|
-
|
191
|
-
<a name="city="></a>
|
192
|
-
|
193
|
-
<div class="method-heading attribute-method-heading">
|
194
|
-
<span class="method-name">city</span><span
|
195
|
-
class="attribute-access-type">[RW]</span>
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<div class="method-description">
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
</div>
|
203
|
-
</div>
|
204
191
|
|
205
|
-
<div id="lat-attribute-method" class="method-detail">
|
206
|
-
<a name="lat"></a>
|
207
|
-
|
208
|
-
<a name="lat="></a>
|
209
|
-
|
210
|
-
<div class="method-heading attribute-method-heading">
|
211
|
-
<span class="method-name">lat</span><span
|
212
|
-
class="attribute-access-type">[RW]</span>
|
213
|
-
</div>
|
214
|
-
|
215
|
-
<div class="method-description">
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
</div>
|
220
|
-
</div>
|
221
192
|
|
222
|
-
<div id="lng-attribute-method" class="method-detail">
|
223
|
-
<a name="lng"></a>
|
224
|
-
|
225
|
-
<a name="lng="></a>
|
226
|
-
|
227
|
-
<div class="method-heading attribute-method-heading">
|
228
|
-
<span class="method-name">lng</span><span
|
229
|
-
class="attribute-access-type">[RW]</span>
|
230
|
-
</div>
|
231
|
-
|
232
|
-
<div class="method-description">
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
</div>
|
237
193
|
</div>
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
<
|
243
|
-
|
244
|
-
<div class="method-heading attribute-method-heading">
|
245
|
-
<span class="method-name">metro_area</span><span
|
246
|
-
class="attribute-access-type">[RW]</span>
|
247
|
-
</div>
|
248
|
-
|
249
|
-
<div class="method-description">
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
</div>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
<div id="attribute-i-lat" class="method-detail">
|
197
|
+
<div class="method-heading attribute-method-heading">
|
198
|
+
<span class="method-name">lat</span><span
|
199
|
+
class="attribute-access-type">[RW]</span>
|
254
200
|
</div>
|
201
|
+
|
202
|
+
<div class="method-description">
|
203
|
+
|
255
204
|
|
256
|
-
|
205
|
+
|
206
|
+
</div>
|
207
|
+
</div>
|
257
208
|
|
209
|
+
<div id="attribute-i-lng" class="method-detail">
|
210
|
+
<div class="method-heading attribute-method-heading">
|
211
|
+
<span class="method-name">lng</span><span
|
212
|
+
class="attribute-access-type">[RW]</span>
|
213
|
+
</div>
|
258
214
|
|
259
|
-
|
215
|
+
<div class="method-description">
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</div>
|
220
|
+
</div>
|
260
221
|
|
261
|
-
<div id="
|
262
|
-
<
|
222
|
+
<div id="attribute-i-metro_area" class="method-detail">
|
223
|
+
<div class="method-heading attribute-method-heading">
|
224
|
+
<span class="method-name">metro_area</span><span
|
225
|
+
class="attribute-access-type">[RW]</span>
|
226
|
+
</div>
|
263
227
|
|
228
|
+
<div class="method-description">
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
</div>
|
233
|
+
</div>
|
264
234
|
|
265
|
-
|
266
|
-
|
235
|
+
</section><!-- attribute-method-details -->
|
236
|
+
|
267
237
|
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
238
|
+
<!-- Methods -->
|
239
|
+
|
240
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
241
|
+
<h3 class="section-header">Public Class Methods</h3>
|
242
|
+
|
243
|
+
|
244
|
+
<div id="method-c-new" class="method-detail ">
|
245
|
+
|
246
|
+
<div class="method-heading">
|
247
|
+
<span class="method-name">new</span><span
|
248
|
+
class="method-args">(location_hash)</span>
|
249
|
+
<span class="method-click-advice">click to toggle source</span>
|
250
|
+
</div>
|
251
|
+
|
275
252
|
|
276
|
-
|
277
|
-
|
278
|
-
|
253
|
+
<div class="method-description">
|
254
|
+
|
255
|
+
<p>Takes a location hash. Handles the different city hashes from <a
|
279
256
|
href="Event.html">Event</a> and <a href="Location.html">Location</a></p>
|
280
|
-
|
257
|
+
|
281
258
|
|
282
|
-
|
283
|
-
|
284
|
-
<pre>
|
285
|
-
<span class="ruby-comment"># File lib/songkickr/location.rb, line 28</span>
|
259
|
+
|
260
|
+
<div class="method-source-code" id="new-source">
|
261
|
+
<pre><span class="ruby-comment"># File lib/songkickr/location.rb, line 28</span>
|
286
262
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">location_hash</span>)
|
287
263
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">location_hash</span>[<span class="ruby-string">"city"</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-comment"># location in Event</span>
|
288
264
|
<span class="ruby-ivar">@city</span> = <span class="ruby-identifier">location_hash</span>[<span class="ruby-string">"city"</span>]
|
@@ -298,29 +274,26 @@ href="Event.html">Event</a> and <a href="Location.html">Location</a></p>
|
|
298
274
|
|
299
275
|
<span class="ruby-ivar">@metro_area</span> = <span class="ruby-identifier">location_hash</span>[<span class="ruby-string">'metro_area'</span>]
|
300
276
|
<span class="ruby-keyword">end</span></pre>
|
301
|
-
|
302
|
-
|
303
|
-
</div>
|
304
|
-
|
277
|
+
</div><!-- new-source -->
|
305
278
|
|
279
|
+
</div>
|
306
280
|
|
307
|
-
|
308
|
-
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
</div><!-- new-method -->
|
309
285
|
|
310
|
-
|
311
|
-
</div><!-- public-class-method-details -->
|
312
286
|
|
313
|
-
</
|
287
|
+
</section><!-- public-class-method-details -->
|
314
288
|
|
289
|
+
</section><!-- 5Buntitled-5D -->
|
315
290
|
|
316
|
-
|
291
|
+
</div><!-- documentation -->
|
317
292
|
|
318
|
-
<div id="validator-badges">
|
319
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
320
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
321
|
-
Rdoc Generator</a> 2</small>.</p>
|
322
|
-
</div>
|
323
293
|
|
324
|
-
|
325
|
-
</
|
294
|
+
<footer id="validator-badges">
|
295
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
296
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
297
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
298
|
+
</footer>
|
326
299
|
|