songkickr 0.2.2 → 0.3.0

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