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
data/doc/README_rdoc.html CHANGED
@@ -1,112 +1,113 @@
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">
1
+ <!DOCTYPE html>
4
2
 
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <html>
6
4
  <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
8
6
 
9
- <title>File: README.rdoc [RDoc Documentation]</title>
7
+ <title>README - RDoc Documentation</title>
10
8
 
11
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
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>
12
21
 
13
- <script src="./js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="./js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="./js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="./js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
22
 
23
23
  <body class="file">
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="project-metadata">
36
-
37
-
38
- <div id="fileindex-section" class="section project-section">
39
- <h3 class="section-header">Files</h3>
40
- <ul>
41
-
42
- <li class="file"><a href="./LICENSE.html">LICENSE</a></li>
43
-
44
- <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
45
-
46
- </ul>
47
- </div>
48
-
49
-
50
- <div id="classindex-section" class="section project-section">
51
- <h3 class="section-header">Class Index
52
- <span class="search-toggle"><img src="./images/find.png"
53
- height="16" width="16" alt="[+]"
54
- title="show/hide quicksearch" /></span></h3>
55
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
56
- <fieldset>
57
- <legend>Quicksearch</legend>
58
- <input type="text" name="quicksearch" value=""
59
- class="quicksearch-field" />
60
- </fieldset>
61
- </form>
62
-
63
- <ul class="link-list">
64
-
65
- <li><a href="./Songkickr.html">Songkickr</a></li>
66
-
67
- <li><a href="./Songkickr/Artist.html">Songkickr::Artist</a></li>
68
-
69
- <li><a href="./Songkickr/ArtistResult.html">Songkickr::ArtistResult</a></li>
70
-
71
- <li><a href="./Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a></li>
72
-
73
- <li><a href="./Songkickr/Event.html">Songkickr::Event</a></li>
74
-
75
- <li><a href="./Songkickr/EventResult.html">Songkickr::EventResult</a></li>
76
-
77
- <li><a href="./Songkickr/Location.html">Songkickr::Location</a></li>
78
-
79
- <li><a href="./Songkickr/LocationResult.html">Songkickr::LocationResult</a></li>
80
-
81
- <li><a href="./Songkickr/Performance.html">Songkickr::Performance</a></li>
82
-
83
- <li><a href="./Songkickr/Remote.html">Songkickr::Remote</a></li>
84
-
85
- <li><a href="./Songkickr/Setlist.html">Songkickr::Setlist</a></li>
86
-
87
- <li><a href="./Songkickr/SetlistItem.html">Songkickr::SetlistItem</a></li>
88
-
89
- <li><a href="./Songkickr/Venue.html">Songkickr::Venue</a></li>
90
-
91
- <li><a href="./APIKeyNotSet.html">APIKeyNotSet</a></li>
92
-
93
- </ul>
94
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
95
- </div>
96
-
97
-
98
- </div>
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="project-metadata">
47
+ <nav id="fileindex-section" class="section project-section">
48
+ <h3 class="section-header">Pages</h3>
49
+
50
+ <ul>
51
+
52
+ <li class="file"><a href="./LICENSE.html">LICENSE</a>
53
+
54
+ <li class="file"><a href="./README_rdoc.html">README</a>
55
+
56
+ </ul>
57
+ </nav>
58
+
59
+ <nav id="classindex-section" class="section project-section">
60
+ <h3 class="section-header">Class and Module Index</h3>
61
+
62
+ <ul class="link-list">
63
+
64
+ <li><a href="./Songkickr.html">Songkickr</a>
65
+
66
+ <li><a href="./Songkickr/Artist.html">Songkickr::Artist</a>
67
+
68
+ <li><a href="./Songkickr/ArtistResult.html">Songkickr::ArtistResult</a>
69
+
70
+ <li><a href="./Songkickr/ConcertSetlistResult.html">Songkickr::ConcertSetlistResult</a>
71
+
72
+ <li><a href="./Songkickr/Event.html">Songkickr::Event</a>
73
+
74
+ <li><a href="./Songkickr/EventResult.html">Songkickr::EventResult</a>
75
+
76
+ <li><a href="./Songkickr/Location.html">Songkickr::Location</a>
77
+
78
+ <li><a href="./Songkickr/LocationResult.html">Songkickr::LocationResult</a>
79
+
80
+ <li><a href="./Songkickr/Performance.html">Songkickr::Performance</a>
81
+
82
+ <li><a href="./Songkickr/Remote.html">Songkickr::Remote</a>
83
+
84
+ <li><a href="./Songkickr/Setlist.html">Songkickr::Setlist</a>
85
+
86
+ <li><a href="./Songkickr/SetlistItem.html">Songkickr::SetlistItem</a>
87
+
88
+ <li><a href="./Songkickr/Venue.html">Songkickr::Venue</a>
89
+
90
+ <li><a href="./APIError.html">APIError</a>
91
+
92
+ <li><a href="./APIKeyNotSet.html">APIKeyNotSet</a>
93
+
94
+ <li><a href="./ResourceNotFound.html">ResourceNotFound</a>
95
+
96
+ </ul>
97
+ </nav>
98
+
99
99
  </div>
100
+ </nav>
100
101
 
101
- <div id="documentation">
102
-
103
- <h1>songkickr</h1>
102
+ <div id="documentation" class="description">
103
+
104
+ <h1 id="label-songkickr">songkickr</h1>
104
105
 
105
106
  <p>A Ruby wrapper around the Songkick API. Visit <a
106
107
  href="http://www.songkick.com/developer">www.songkick.com/developer</a> for
107
108
  documentation on the Songkick API.</p>
108
109
 
109
- <h1>Install Instructions</h1>
110
+ <h1 id="label-Install+Instructions">Install Instructions</h1>
110
111
 
111
112
  <pre>gem install songkickr</pre>
112
113
 
@@ -114,29 +115,31 @@ documentation on the Songkick API.</p>
114
115
 
115
116
  <pre>sudo gem install songkickr</pre>
116
117
 
117
- <h1>Usage Instructions</h1>
118
+ <h1 id="label-Usage+Instructions">Usage Instructions</h1>
118
119
 
119
- <pre>require 'songkickr'
120
- remote = Songkickr::Remote.new API_KEY</pre>
120
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'songkickr'</span>
121
+ <span class="ruby-identifier">remote</span> = <span class="ruby-constant">Songkickr</span><span class="ruby-operator">::</span><span class="ruby-constant">Remote</span>.<span class="ruby-identifier">new</span> <span class="ruby-constant">API_KEY</span>
122
+ </pre>
121
123
 
122
124
  <p>Then call events, users_events(username), or concert_setlists(event_id)</p>
123
125
 
124
- <pre>results = remote.events(:artist_name =&gt; 'Iron Maiden')
125
- results = remote.events(:artist_name =&gt; 'As I Lay Dying')
126
+ <pre class="ruby"><span class="ruby-identifier">results</span> = <span class="ruby-identifier">remote</span>.<span class="ruby-identifier">events</span>(:<span class="ruby-identifier">query</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'Iron Maiden'</span>)
127
+ <span class="ruby-identifier">results</span> = <span class="ruby-identifier">remote</span>.<span class="ruby-identifier">events</span>(:<span class="ruby-identifier">query</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'As I Lay Dying'</span>)
126
128
 
127
- results = remote.users_events('jrmehle')
129
+ <span class="ruby-identifier">results</span> = <span class="ruby-identifier">remote</span>.<span class="ruby-identifier">users_events</span>(<span class="ruby-string">'jrmehle'</span>)
128
130
 
129
- results = remote.concert_setlists(2680726)
130
- results = remote.concert_setlists(2894471)</pre>
131
+ <span class="ruby-identifier">results</span> = <span class="ruby-identifier">remote</span>.<span class="ruby-identifier">concert_setlists</span>(<span class="ruby-value">2680726</span>)
132
+ <span class="ruby-identifier">results</span> = <span class="ruby-identifier">remote</span>.<span class="ruby-identifier">concert_setlists</span>(<span class="ruby-value">2894471</span>)
133
+ </pre>
131
134
 
132
- <h2>Note on Patches/Pull Requests</h2>
135
+ <h2 id="label-Note+on+Patches%2FPull+Requests">Note on Patches/Pull Requests</h2>
133
136
  <ul><li>
134
137
  <p>Fork the project.</p>
135
138
  </li><li>
136
139
  <p>Make your feature addition or bug fix.</p>
137
140
  </li><li>
138
- <p>Add tests for it. This is important so I don’t break it in a future
139
- version unintentionally.</p>
141
+ <p>Add tests for it. This is important so I don’t break it in a future version
142
+ unintentionally.</p>
140
143
  </li><li>
141
144
  <p>Commit, do not mess with rakefile, version, or history. (if you want to
142
145
  have your own version, that is fine but bump version in a commit by itself
@@ -145,26 +148,26 @@ I can ignore when I pull)</p>
145
148
  <p>Send me a pull request. Bonus points for topic branches.</p>
146
149
  </li></ul>
147
150
 
148
- <h2>Copyright</h2>
151
+ <h2 id="label-Copyright">Copyright</h2>
149
152
 
150
153
  <p>Copyright © 2010-2011 Jared Mehle. See <a href="LICENSE.html">LICENSE</a>
151
154
  for details.</p>
152
155
 
153
- <h2>Thanks</h2>
156
+ <h2 id="label-Thanks">Thanks</h2>
154
157
 
155
158
  <p>Thanks to Akshay Dodeja and Tomasz Stachewicz for submitting code and pull
156
159
  requests.</p>
157
160
 
158
161
  <p>A special thank you to Jon Nunemaker for the httparty which is used
159
- extensively within this gem and for the twitter gem as inspiration.</p>
162
+ extensively within this gem and for the twitter gem as inspiration.</p>
160
163
 
161
- </div>
164
+ </div>
162
165
 
163
- <div id="validator-badges">
164
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
165
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
166
- Rdoc Generator</a> 2</small>.</p>
167
- </div>
168
- </body>
169
- </html>
166
+
167
+
168
+ <footer id="validator-badges">
169
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
170
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
171
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
172
+ </footer>
170
173
 
@@ -0,0 +1,203 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class ResourceNotFound - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
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>
21
+
22
+
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.rb
51
+ </ul>
52
+ </nav>
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"><a href="APIError.html">APIError</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-i-to_s">#to_s</a>
74
+
75
+ </ul>
76
+ </nav>
77
+
78
+ </div>
79
+
80
+ <div id="project-metadata">
81
+ <nav id="fileindex-section" class="section project-section">
82
+ <h3 class="section-header">Pages</h3>
83
+
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>
92
+
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>
132
+
133
+ </div>
134
+ </nav>
135
+
136
+ <div id="documentation">
137
+ <h1 class="class">class ResourceNotFound</h1>
138
+
139
+ <div id="description" class="description">
140
+
141
+ </div><!-- description -->
142
+
143
+
144
+
145
+
146
+ <section id="5Buntitled-5D" class="documentation-section">
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ <!-- Methods -->
156
+
157
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
158
+ <h3 class="section-header">Public Instance Methods</h3>
159
+
160
+
161
+ <div id="method-i-to_s" class="method-detail ">
162
+
163
+ <div class="method-heading">
164
+ <span class="method-name">to_s</span><span
165
+ class="method-args">()</span>
166
+ <span class="method-click-advice">click to toggle source</span>
167
+ </div>
168
+
169
+
170
+ <div class="method-description">
171
+
172
+
173
+
174
+
175
+
176
+ <div class="method-source-code" id="to_s-source">
177
+ <pre><span class="ruby-comment"># File lib/songkickr.rb, line 38</span>
178
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
179
+ <span class="ruby-string">&quot;Resource not found&quot;</span>
180
+ <span class="ruby-keyword">end</span></pre>
181
+ </div><!-- to_s-source -->
182
+
183
+ </div>
184
+
185
+
186
+
187
+
188
+ </div><!-- to_s-method -->
189
+
190
+
191
+ </section><!-- public-instance-method-details -->
192
+
193
+ </section><!-- 5Buntitled-5D -->
194
+
195
+ </div><!-- documentation -->
196
+
197
+
198
+ <footer id="validator-badges">
199
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
200
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
201
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
202
+ </footer>
203
+