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,153 +1,146 @@
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::Artist</title>
7
+ <title>class Songkickr::Artist - 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/artist_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/songkickr/artist.rb">lib/songkickr/artist.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/artist.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
+ </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
- </div>
80
+ <div id="project-metadata">
81
+ <nav id="fileindex-section" class="section project-section">
82
+ <h3 class="section-header">Pages</h3>
76
83
 
77
- <div id="project-metadata">
78
-
79
-
80
- <div id="fileindex-section" class="section project-section">
81
- <h3 class="section-header">Files</h3>
82
- <ul>
83
-
84
- <li class="file"><a href="../LICENSE.html">LICENSE</a></li>
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
- <div id="classindex-section" class="section project-section">
93
- <h3 class="section-header">Class/Module Index
94
- <span class="search-toggle"><img src="../images/find.png"
95
- height="16" width="16" alt="[+]"
96
- title="show/hide quicksearch" /></span></h3>
97
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
98
- <fieldset>
99
- <legend>Quicksearch</legend>
100
- <input type="text" name="quicksearch" value=""
101
- class="quicksearch-field" />
102
- </fieldset>
103
- </form>
104
-
105
- <ul class="link-list">
106
-
107
- <li><a href="../Songkickr.html">Songkickr</a></li>
108
-
109
- <li><a href="../Songkickr/Artist.html">Songkickr::Artist</a></li>
110
-
111
- <li><a href="../Songkickr/ArtistResult.html">Songkickr::ArtistResult</a></li>
112
-
113
- <li><a href="../Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a></li>
114
-
115
- <li><a href="../Songkickr/Event.html">Songkickr::Event</a></li>
116
-
117
- <li><a href="../Songkickr/EventResult.html">Songkickr::EventResult</a></li>
118
-
119
- <li><a href="../Songkickr/Location.html">Songkickr::Location</a></li>
120
-
121
- <li><a href="../Songkickr/LocationResult.html">Songkickr::LocationResult</a></li>
122
-
123
- <li><a href="../Songkickr/Performance.html">Songkickr::Performance</a></li>
124
-
125
- <li><a href="../Songkickr/Remote.html">Songkickr::Remote</a></li>
126
-
127
- <li><a href="../Songkickr/Setlist.html">Songkickr::Setlist</a></li>
128
-
129
- <li><a href="../Songkickr/SetlistItem.html">Songkickr::SetlistItem</a></li>
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
- <div id="documentation">
144
- <h1 class="class">Songkickr::Artist</h1>
136
+ <div id="documentation">
137
+ <h1 class="class">class Songkickr::Artist</h1>
145
138
 
146
- <div id="description" class="description">
147
-
139
+ <div id="description" class="description">
140
+
148
141
  <p>A single artist</p>
149
142
 
150
- <pre>{
143
+ <pre>{
151
144
  &quot;uri&quot;:&quot;http://www.songkick.com/artists/253846-radiohead&quot;,
152
145
  &quot;displayName&quot;:&quot;Radiohead&quot;,
153
146
  &quot;id&quot;:253846,
@@ -157,119 +150,102 @@
157
150
  <p><a
158
151
  href="http://www.songkick.com/developer/artist-search">www.songkick.com/developer/artist-search</a></p>
159
152
 
160
- </div><!-- description -->
153
+ </div><!-- description -->
161
154
 
155
+
156
+
157
+
158
+ <section id="5Buntitled-5D" class="documentation-section">
162
159
 
163
- <div id="5Buntitled-5D" class="documentation-section">
164
-
165
160
 
166
-
161
+
167
162
 
168
-
163
+
164
+
165
+
166
+ <!-- Attributes -->
167
+ <section id="attribute-method-details" class="method-section section">
168
+ <h3 class="section-header">Attributes</h3>
169
169
 
170
170
 
171
- <!-- Attributes -->
172
- <div id="attribute-method-details" class="method-section section">
173
- <h3 class="section-header">Attributes</h3>
171
+ <div id="attribute-i-display_name" class="method-detail">
172
+ <div class="method-heading attribute-method-heading">
173
+ <span class="method-name">display_name</span><span
174
+ class="attribute-access-type">[RW]</span>
175
+ </div>
174
176
 
177
+ <div class="method-description">
175
178
 
176
- <div id="display_name-attribute-method" class="method-detail">
177
- <a name="display_name"></a>
178
-
179
- <a name="display_name="></a>
180
-
181
- <div class="method-heading attribute-method-heading">
182
- <span class="method-name">display_name</span><span
183
- class="attribute-access-type">[RW]</span>
184
- </div>
185
-
186
- <div class="method-description">
187
-
188
-
189
-
190
- </div>
191
- </div>
192
179
 
193
- <div id="id-attribute-method" class="method-detail">
194
- <a name="id"></a>
195
-
196
- <a name="id="></a>
197
-
198
- <div class="method-heading attribute-method-heading">
199
- <span class="method-name">id</span><span
200
- class="attribute-access-type">[RW]</span>
201
- </div>
202
-
203
- <div class="method-description">
204
-
205
-
206
-
207
- </div>
208
- </div>
209
180
 
210
- <div id="on_tour_until-attribute-method" class="method-detail">
211
- <a name="on_tour_until"></a>
212
-
213
- <a name="on_tour_until="></a>
214
-
215
- <div class="method-heading attribute-method-heading">
216
- <span class="method-name">on_tour_until</span><span
217
- class="attribute-access-type">[RW]</span>
218
- </div>
219
-
220
- <div class="method-description">
221
-
222
-
223
-
224
- </div>
225
181
  </div>
226
-
227
- <div id="uri-attribute-method" class="method-detail">
228
- <a name="uri"></a>
229
-
230
- <a name="uri="></a>
231
-
232
- <div class="method-heading attribute-method-heading">
233
- <span class="method-name">uri</span><span
234
- class="attribute-access-type">[RW]</span>
235
- </div>
236
-
237
- <div class="method-description">
238
-
239
-
240
-
241
- </div>
182
+ </div>
183
+
184
+ <div id="attribute-i-id" class="method-detail">
185
+ <div class="method-heading attribute-method-heading">
186
+ <span class="method-name">id</span><span
187
+ class="attribute-access-type">[RW]</span>
242
188
  </div>
189
+
190
+ <div class="method-description">
191
+
243
192
 
244
- </div><!-- attribute-method-details -->
193
+
194
+ </div>
195
+ </div>
245
196
 
197
+ <div id="attribute-i-on_tour_until" class="method-detail">
198
+ <div class="method-heading attribute-method-heading">
199
+ <span class="method-name">on_tour_until</span><span
200
+ class="attribute-access-type">[RW]</span>
201
+ </div>
246
202
 
247
- <!-- Methods -->
203
+ <div class="method-description">
204
+
205
+
206
+
207
+ </div>
208
+ </div>
248
209
 
249
- <div id="public-class-method-details" class="method-section section">
250
- <h3 class="section-header">Public Class Methods</h3>
210
+ <div id="attribute-i-uri" class="method-detail">
211
+ <div class="method-heading attribute-method-heading">
212
+ <span class="method-name">uri</span><span
213
+ class="attribute-access-type">[RW]</span>
214
+ </div>
251
215
 
216
+ <div class="method-description">
217
+
218
+
219
+
220
+ </div>
221
+ </div>
252
222
 
253
- <div id="new-method" class="method-detail ">
254
- <a name="method-c-new"></a>
223
+ </section><!-- attribute-method-details -->
224
+
225
+
226
+ <!-- Methods -->
227
+
228
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
229
+ <h3 class="section-header">Public Class Methods</h3>
230
+
231
+
232
+ <div id="method-c-new" class="method-detail ">
233
+
234
+ <div class="method-heading">
235
+ <span class="method-name">new</span><span
236
+ class="method-args">(artist_hash = {})</span>
237
+ <span class="method-click-advice">click to toggle source</span>
238
+ </div>
239
+
255
240
 
241
+ <div class="method-description">
256
242
 
257
- <div class="method-heading">
258
- <span class="method-name">new</span><span
259
- class="method-args">(artist_hash = {})</span>
260
- <span class="method-click-advice">click to toggle source</span>
261
- </div>
243
+ <p>Accepts a hash of artist attributes.</p>
262
244
 
263
245
 
264
- <div class="method-description">
265
-
266
- <p>Accepts a hash of artist attributes.</p>
267
-
268
-
269
-
270
- <div class="method-source-code" id="new-source">
271
- <pre>
272
- <span class="ruby-comment"># File lib/songkickr/artist.rb, line 16</span>
246
+
247
+ <div class="method-source-code" id="new-source">
248
+ <pre><span class="ruby-comment"># File lib/songkickr/artist.rb, line 16</span>
273
249
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">artist_hash</span> = {})
274
250
  <span class="ruby-ivar">@uri</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;uri&quot;</span>]
275
251
  <span class="ruby-ivar">@display_name</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;displayName&quot;</span>]
@@ -277,29 +253,26 @@ href="http://www.songkick.com/developer/artist-search">www.songkick.com/develope
277
253
  <span class="ruby-ivar">@uri</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;uri&quot;</span>]
278
254
  <span class="ruby-ivar">@on_tour_until</span> = <span class="ruby-identifier">artist_hash</span>[<span class="ruby-string">&quot;onTourUntil&quot;</span>]
279
255
  <span class="ruby-keyword">end</span></pre>
280
- </div><!-- new-source -->
281
-
282
- </div>
283
-
256
+ </div><!-- new-source -->
284
257
 
258
+ </div>
285
259
 
286
-
287
- </div><!-- new-method -->
260
+
261
+
262
+
263
+ </div><!-- new-method -->
288
264
 
289
-
290
- </div><!-- public-class-method-details -->
291
265
 
292
- </div><!-- 5Buntitled-5D -->
266
+ </section><!-- public-class-method-details -->
293
267
 
268
+ </section><!-- 5Buntitled-5D -->
294
269
 
295
- </div><!-- documentation -->
270
+ </div><!-- documentation -->
296
271
 
297
- <div id="validator-badges">
298
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
299
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
300
- Rdoc Generator</a> 2</small>.</p>
301
- </div>
302
272
 
303
- </body>
304
- </html>
273
+ <footer id="validator-badges">
274
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
275
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
276
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
277
+ </footer>
305
278