rdio_api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. data/.gitignore +11 -0
  2. data/Gemfile +4 -0
  3. data/Guardfile +20 -0
  4. data/README.md +115 -0
  5. data/Rakefile +10 -0
  6. data/lib/rdio_api/api.rb +81 -0
  7. data/lib/rdio_api/client.rb +48 -0
  8. data/lib/rdio_api/version.rb +3 -0
  9. data/lib/rdio_api.rb +14 -0
  10. data/rdio_api.gemspec +30 -0
  11. data/spec/fixtures/addFriend.json +4 -0
  12. data/spec/fixtures/addToCollection.json +4 -0
  13. data/spec/fixtures/addToPlaylist.json +4 -0
  14. data/spec/fixtures/createPlaylist.json +19 -0
  15. data/spec/fixtures/currentUser.json +14 -0
  16. data/spec/fixtures/deletePlaylist.json +4 -0
  17. data/spec/fixtures/findUser.json +14 -0
  18. data/spec/fixtures/get.json +16 -0
  19. data/spec/fixtures/getActivityStream.json +18 -0
  20. data/spec/fixtures/getAlbumsForArtist.json +917 -0
  21. data/spec/fixtures/getAlbumsForArtistInCollection.json +82 -0
  22. data/spec/fixtures/getAlbumsInCollection.json +1184 -0
  23. data/spec/fixtures/getArtistsInCollection.json +37 -0
  24. data/spec/fixtures/getHeavyRotation.json +394 -0
  25. data/spec/fixtures/getNewReleases.json +796 -0
  26. data/spec/fixtures/getObjectFromShortCode.json +33 -0
  27. data/spec/fixtures/getObjectFromUrl.json +16 -0
  28. data/spec/fixtures/getPlaybackToken.json +4 -0
  29. data/spec/fixtures/getPlaylists.json +25 -0
  30. data/spec/fixtures/getTopCharts.json +181 -0
  31. data/spec/fixtures/getTracksForAlbumInCollection.json +440 -0
  32. data/spec/fixtures/getTracksForArtist.json +295 -0
  33. data/spec/fixtures/getTracksForArtistInCollection.json +34 -0
  34. data/spec/fixtures/getTracksInCollection.json +121 -0
  35. data/spec/fixtures/removeFriend.json +4 -0
  36. data/spec/fixtures/removeFromCollection.json +4 -0
  37. data/spec/fixtures/removeFromPlaylist.json +4 -0
  38. data/spec/fixtures/search.json +523 -0
  39. data/spec/fixtures/searchSuggestions.json +117 -0
  40. data/spec/fixtures/setAvailableOffline.json +4 -0
  41. data/spec/fixtures/setPlaylistCollaborating.json +4 -0
  42. data/spec/fixtures/setPlaylistCollaborationMode.json +4 -0
  43. data/spec/fixtures/setPlaylistFields.json +4 -0
  44. data/spec/fixtures/setPlaylistOrder.json +4 -0
  45. data/spec/fixtures/userFollowers.json +27 -0
  46. data/spec/fixtures/userFollowing.json +27 -0
  47. data/spec/helper.rb +26 -0
  48. data/spec/rdio_api/activity_spec.rb +59 -0
  49. data/spec/rdio_api/catalog_spec.rb +77 -0
  50. data/spec/rdio_api/client_spec.rb +18 -0
  51. data/spec/rdio_api/collection_spec.rb +127 -0
  52. data/spec/rdio_api/core_spec.rb +59 -0
  53. data/spec/rdio_api/playback_spec.rb +22 -0
  54. data/spec/rdio_api/playlists_spec.rb +122 -0
  55. data/spec/rdio_api/social_spec.rb +92 -0
  56. metadata +273 -0
metadata ADDED
@@ -0,0 +1,273 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rdio_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Anil
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-08-04 00:00:00.000000000 -04:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rake
17
+ requirement: &70151873674120 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: '0.9'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: *70151873674120
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &70151873672860 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '2.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *70151873672860
37
+ - !ruby/object:Gem::Dependency
38
+ name: webmock
39
+ requirement: &70151873671560 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: '1.6'
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *70151873671560
48
+ - !ruby/object:Gem::Dependency
49
+ name: oauth
50
+ requirement: &70151873670500 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 0.4.5
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *70151873670500
59
+ - !ruby/object:Gem::Dependency
60
+ name: rb-fsevent
61
+ requirement: &70151873669500 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: *70151873669500
70
+ - !ruby/object:Gem::Dependency
71
+ name: guard-rspec
72
+ requirement: &70151873668560 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: *70151873668560
81
+ - !ruby/object:Gem::Dependency
82
+ name: faraday
83
+ requirement: &70151873667340 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: 0.6.1
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: *70151873667340
92
+ - !ruby/object:Gem::Dependency
93
+ name: faraday_middleware
94
+ requirement: &70151873666460 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ~>
98
+ - !ruby/object:Gem::Version
99
+ version: 0.6.5
100
+ type: :runtime
101
+ prerelease: false
102
+ version_requirements: *70151873666460
103
+ - !ruby/object:Gem::Dependency
104
+ name: hashie
105
+ requirement: &70151873665360 !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.0
111
+ type: :runtime
112
+ prerelease: false
113
+ version_requirements: *70151873665360
114
+ - !ruby/object:Gem::Dependency
115
+ name: multi_json
116
+ requirement: &70151873664200 !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ~>
120
+ - !ruby/object:Gem::Version
121
+ version: 1.0.3
122
+ type: :runtime
123
+ prerelease: false
124
+ version_requirements: *70151873664200
125
+ - !ruby/object:Gem::Dependency
126
+ name: simple_oauth
127
+ requirement: &70151873662300 !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ~>
131
+ - !ruby/object:Gem::Version
132
+ version: 0.1.5
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: *70151873662300
136
+ description: A Ruby wrapper for the Rdio API
137
+ email:
138
+ executables: []
139
+ extensions: []
140
+ extra_rdoc_files: []
141
+ files:
142
+ - .gitignore
143
+ - Gemfile
144
+ - Guardfile
145
+ - README.md
146
+ - Rakefile
147
+ - lib/rdio_api.rb
148
+ - lib/rdio_api/api.rb
149
+ - lib/rdio_api/client.rb
150
+ - lib/rdio_api/version.rb
151
+ - rdio_api.gemspec
152
+ - spec/fixtures/addFriend.json
153
+ - spec/fixtures/addToCollection.json
154
+ - spec/fixtures/addToPlaylist.json
155
+ - spec/fixtures/createPlaylist.json
156
+ - spec/fixtures/currentUser.json
157
+ - spec/fixtures/deletePlaylist.json
158
+ - spec/fixtures/findUser.json
159
+ - spec/fixtures/get.json
160
+ - spec/fixtures/getActivityStream.json
161
+ - spec/fixtures/getAlbumsForArtist.json
162
+ - spec/fixtures/getAlbumsForArtistInCollection.json
163
+ - spec/fixtures/getAlbumsInCollection.json
164
+ - spec/fixtures/getArtistsInCollection.json
165
+ - spec/fixtures/getHeavyRotation.json
166
+ - spec/fixtures/getNewReleases.json
167
+ - spec/fixtures/getObjectFromShortCode.json
168
+ - spec/fixtures/getObjectFromUrl.json
169
+ - spec/fixtures/getPlaybackToken.json
170
+ - spec/fixtures/getPlaylists.json
171
+ - spec/fixtures/getTopCharts.json
172
+ - spec/fixtures/getTracksForAlbumInCollection.json
173
+ - spec/fixtures/getTracksForArtist.json
174
+ - spec/fixtures/getTracksForArtistInCollection.json
175
+ - spec/fixtures/getTracksInCollection.json
176
+ - spec/fixtures/removeFriend.json
177
+ - spec/fixtures/removeFromCollection.json
178
+ - spec/fixtures/removeFromPlaylist.json
179
+ - spec/fixtures/search.json
180
+ - spec/fixtures/searchSuggestions.json
181
+ - spec/fixtures/setAvailableOffline.json
182
+ - spec/fixtures/setPlaylistCollaborating.json
183
+ - spec/fixtures/setPlaylistCollaborationMode.json
184
+ - spec/fixtures/setPlaylistFields.json
185
+ - spec/fixtures/setPlaylistOrder.json
186
+ - spec/fixtures/userFollowers.json
187
+ - spec/fixtures/userFollowing.json
188
+ - spec/helper.rb
189
+ - spec/rdio_api/activity_spec.rb
190
+ - spec/rdio_api/catalog_spec.rb
191
+ - spec/rdio_api/client_spec.rb
192
+ - spec/rdio_api/collection_spec.rb
193
+ - spec/rdio_api/core_spec.rb
194
+ - spec/rdio_api/playback_spec.rb
195
+ - spec/rdio_api/playlists_spec.rb
196
+ - spec/rdio_api/social_spec.rb
197
+ has_rdoc: true
198
+ homepage: http://github.com/anilv/rdio_api
199
+ licenses: []
200
+ post_install_message:
201
+ rdoc_options: []
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ segments:
211
+ - 0
212
+ hash: -3758542136282764443
213
+ required_rubygems_version: !ruby/object:Gem::Requirement
214
+ none: false
215
+ requirements:
216
+ - - ! '>='
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ segments:
220
+ - 0
221
+ hash: -3758542136282764443
222
+ requirements: []
223
+ rubyforge_project:
224
+ rubygems_version: 1.6.2
225
+ signing_key:
226
+ specification_version: 3
227
+ summary: A Ruby wrapper for the Rdio API
228
+ test_files:
229
+ - spec/fixtures/addFriend.json
230
+ - spec/fixtures/addToCollection.json
231
+ - spec/fixtures/addToPlaylist.json
232
+ - spec/fixtures/createPlaylist.json
233
+ - spec/fixtures/currentUser.json
234
+ - spec/fixtures/deletePlaylist.json
235
+ - spec/fixtures/findUser.json
236
+ - spec/fixtures/get.json
237
+ - spec/fixtures/getActivityStream.json
238
+ - spec/fixtures/getAlbumsForArtist.json
239
+ - spec/fixtures/getAlbumsForArtistInCollection.json
240
+ - spec/fixtures/getAlbumsInCollection.json
241
+ - spec/fixtures/getArtistsInCollection.json
242
+ - spec/fixtures/getHeavyRotation.json
243
+ - spec/fixtures/getNewReleases.json
244
+ - spec/fixtures/getObjectFromShortCode.json
245
+ - spec/fixtures/getObjectFromUrl.json
246
+ - spec/fixtures/getPlaybackToken.json
247
+ - spec/fixtures/getPlaylists.json
248
+ - spec/fixtures/getTopCharts.json
249
+ - spec/fixtures/getTracksForAlbumInCollection.json
250
+ - spec/fixtures/getTracksForArtist.json
251
+ - spec/fixtures/getTracksForArtistInCollection.json
252
+ - spec/fixtures/getTracksInCollection.json
253
+ - spec/fixtures/removeFriend.json
254
+ - spec/fixtures/removeFromCollection.json
255
+ - spec/fixtures/removeFromPlaylist.json
256
+ - spec/fixtures/search.json
257
+ - spec/fixtures/searchSuggestions.json
258
+ - spec/fixtures/setAvailableOffline.json
259
+ - spec/fixtures/setPlaylistCollaborating.json
260
+ - spec/fixtures/setPlaylistCollaborationMode.json
261
+ - spec/fixtures/setPlaylistFields.json
262
+ - spec/fixtures/setPlaylistOrder.json
263
+ - spec/fixtures/userFollowers.json
264
+ - spec/fixtures/userFollowing.json
265
+ - spec/helper.rb
266
+ - spec/rdio_api/activity_spec.rb
267
+ - spec/rdio_api/catalog_spec.rb
268
+ - spec/rdio_api/client_spec.rb
269
+ - spec/rdio_api/collection_spec.rb
270
+ - spec/rdio_api/core_spec.rb
271
+ - spec/rdio_api/playback_spec.rb
272
+ - spec/rdio_api/playlists_spec.rb
273
+ - spec/rdio_api/social_spec.rb