rspotify 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rspotify/album.rb +25 -4
  3. data/lib/rspotify/artist.rb +3 -3
  4. data/lib/rspotify/base.rb +2 -13
  5. data/lib/rspotify/playlist.rb +40 -12
  6. data/lib/rspotify/track.rb +1 -1
  7. data/lib/rspotify/user.rb +3 -3
  8. data/lib/rspotify/version.rb +1 -1
  9. data/rspotify.gemspec +1 -0
  10. data/spec/lib/rspotify/album_spec.rb +21 -7
  11. data/spec/lib/rspotify/artist_spec.rb +32 -12
  12. data/spec/lib/rspotify/playlist_spec.rb +7 -2
  13. data/spec/lib/rspotify/track_spec.rb +21 -7
  14. data/spec/lib/rspotify/user_spec.rb +12 -5
  15. data/spec/spec_helper.rb +6 -0
  16. data/spec/vcr_cassettes/album_find_2agWNCZl5Ts9W05mij8EPh.yml +138 -0
  17. data/spec/vcr_cassettes/album_find_3JquYMWj5wrzuZCNAvOYN9.yml +267 -0
  18. data/spec/vcr_cassettes/album_find_5bU1XKYxHhEwukllT20xtk.yml +107 -0
  19. data/spec/vcr_cassettes/album_search_AM.yml +145 -0
  20. data/spec/vcr_cassettes/album_search_AM_limit_10.yml +109 -0
  21. data/spec/vcr_cassettes/album_search_AM_offset_10.yml +145 -0
  22. data/spec/vcr_cassettes/album_search_AM_offset_10_limit_10.yml +108 -0
  23. data/spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_albums.yml +133 -0
  24. data/spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_related_artists.yml +153 -0
  25. data/spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_top_tracks_US.yml +102 -0
  26. data/spec/vcr_cassettes/artist_find_0oSGxfWSnnOXhD2fKuz2Gy.yml +74 -0
  27. data/spec/vcr_cassettes/artist_find_3dBVyJ7JuOMt4GE9607Qin.yml +80 -0
  28. data/spec/vcr_cassettes/artist_find_7Ln80lUS6He07XvHI8qqHH.yml +68 -0
  29. data/spec/vcr_cassettes/artist_search_Arctic.yml +122 -0
  30. data/spec/vcr_cassettes/artist_search_Arctic_limit_10.yml +96 -0
  31. data/spec/vcr_cassettes/artist_search_Arctic_offset_10.yml +119 -0
  32. data/spec/vcr_cassettes/artist_search_Arctic_offset_10_limit_10.yml +92 -0
  33. data/spec/vcr_cassettes/authenticate_5ac1cda2ad354aeaa1ad2693d33bb98c.yml +71 -0
  34. data/spec/vcr_cassettes/playlist_find_wizzler_00wHcTN0zQiun4xri9pmvX.yml +507 -0
  35. data/spec/vcr_cassettes/track_find_3jfr0TF6DQcOLat8gGn7E2.yml +76 -0
  36. data/spec/vcr_cassettes/track_find_4oI9kesyxHUr8fqiLd6uO9.yml +77 -0
  37. data/spec/vcr_cassettes/track_find_7D8BAYkrR9peCB9XSKCADc.yml +85 -0
  38. data/spec/vcr_cassettes/track_search_Wanna_Know.yml +234 -0
  39. data/spec/vcr_cassettes/track_search_Wanna_Know_limit_10.yml +154 -0
  40. data/spec/vcr_cassettes/track_search_Wanna_Know_limit_10_offset_10.yml +154 -0
  41. data/spec/vcr_cassettes/track_search_Wanna_Know_offset_10.yml +236 -0
  42. data/spec/vcr_cassettes/user_find_wizzler.yml +62 -0
  43. data/spec/vcr_cassettes/user_wizzler_playlists.yml +77 -0
  44. metadata +72 -2
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.spotify.com/v1/users/wizzler
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ accept:
11
+ - '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ user-agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ server:
22
+ - nginx
23
+ date:
24
+ - Fri, 15 Aug 2014 19:59:35 GMT
25
+ content-type:
26
+ - application/json; charset=utf-8
27
+ transfer-encoding:
28
+ - chunked
29
+ connection:
30
+ - keep-alive
31
+ keep-alive:
32
+ - timeout=600
33
+ vary:
34
+ - Accept-Encoding
35
+ cache-control:
36
+ - public, max-age=14400
37
+ access-control-allow-headers:
38
+ - Accept, Authorization, Origin, Content-Type
39
+ access-control-allow-origin:
40
+ - '*'
41
+ access-control-max-age:
42
+ - '604800'
43
+ access-control-allow-methods:
44
+ - GET, POST, OPTIONS, PUT, DELETE
45
+ access-control-allow-credentials:
46
+ - 'true'
47
+ x-content-type-options:
48
+ - nosniff
49
+ strict-transport-security:
50
+ - max-age=31536000;
51
+ content-encoding:
52
+ - gzip
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: !binary |-
56
+ H4sIAAAAAAAAA1WOQQrDMAwE732F0bnE9OrPlNAqxODGQpLbJiF/ry3SQK6z
57
+ O8uuF+cAv4o89eleOAm44NZKKxfKGoe5ERhVSYL3mXDq9qB75Jcvguw/cVkS
58
+ MlRvu7bJkXE4eT3Fk/a+mSmHalp8mvSfM6YzodHWB0OFo5H9R2hJOD5sP++v
59
+ a1jVAAAA
60
+ http_version: '1.1'
61
+ recorded_at: Fri, 15 Aug 2014 19:59:35 GMT
62
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,77 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.spotify.com/v1/users/wizzler/playlists
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ accept:
11
+ - '*/*; q=0.5, application/xml'
12
+ accept-encoding:
13
+ - gzip, deflate
14
+ authorization:
15
+ - Bearer BQA4v89WZOKQ59TJB3490GoxDHNhXxloi4UPixqeLrVeWNn3EwMCGd_QFVfCUQL2xZiuxayS-bEVvWNcUnbMoA
16
+ user-agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - nginx
25
+ date:
26
+ - Fri, 15 Aug 2014 19:59:36 GMT
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ transfer-encoding:
30
+ - chunked
31
+ connection:
32
+ - keep-alive
33
+ keep-alive:
34
+ - timeout=600
35
+ vary:
36
+ - Accept-Encoding
37
+ cache-control:
38
+ - public, max-age=0
39
+ access-control-allow-headers:
40
+ - Accept, Authorization, Origin, Content-Type
41
+ access-control-allow-origin:
42
+ - '*'
43
+ access-control-max-age:
44
+ - '604800'
45
+ access-control-allow-methods:
46
+ - GET, POST, OPTIONS, PUT, DELETE
47
+ access-control-allow-credentials:
48
+ - 'true'
49
+ x-content-type-options:
50
+ - nosniff
51
+ strict-transport-security:
52
+ - max-age=31536000;
53
+ content-encoding:
54
+ - gzip
55
+ body:
56
+ encoding: ASCII-8BIT
57
+ string: !binary |-
58
+ H4sIAAAAAAAAA+2YW2/aMBSA3/srrLzspWrCZbTjbbSCjpZ1HS10nabJJI4w
59
+ c+zMccKl4r/PDiEoaYw0msILb7F9cq7+cqLzcgKAMebINUBTPgjhB03ThD4+
60
+ C3wmsDs/s5lnRhUzDBAPzCleLAjipk/gnOBABMapUoAF8gKl4Sd4kWu5YzNC
61
+ 4IhxKHCE1IkLSYCUsDxEM4E4heR3yEn82uoleZIYTZ2RvjAf0YwzypNXjpi1
62
+ dtepVibD6HLSubydnaMbLs0YscFlYvcNcer0J5qxE7uscSIRotCLU2EMsIMY
63
+ 6Mgl6MFA5sLHyEarXMoksClFPJMWbcJ2SNkqJWlSdil/XPS4kkncybXY7Iu5
64
+ vwpVFWuzHXIcJyApc1OdNtcvZ0rlhyOCbSUseLi+N4JD+0/2wpRfUjOxksYo
65
+ mIBEeVKrZ1xMY1zDkMRpbIuyuRZuau6KNLE8PRhFDXtoTybPZDC6eOwMK8+4
66
+ d+PWSHkUafRnKdoulFL0HQnOJECOpIg58oOyzv+RH2Dsg5/iOun5qVtl8lNs
67
+ XV3VA/JjWdNr++GrtbjHIa3POP7ke9FTefxo9Gf52S6U8tNjEUagz0LqxJ+8
68
+ Yy86YC8qrpmepY+lslRs/cAsNbpd6uDudfvhtsXE+Bw+8uihxD86jf5cLyp2
69
+ Iv9H1yKh6kIhFRBT0BdQoGM32vx476UbFVZKT1DjvNRuVGj9wARVb59/fFm0
70
+ 2OXTZ2d2MQqH3uP0HpXXjTT6swRtF0q7UQtyiuYfAtBBAnwL5vYYOaCHZ0eM
71
+ 9otRcbn0GFUqZWJUbH2/GHmQC0zPHEgxIgGj6bDDrF7j9l/n6ap2M3Db/XoH
72
+ 3XX6VmNXnrR2Ap2hHFjF3uRb0xWCYgwGkBA0B1WrUntnovJhrdKz27zhla5V
73
+ cJvBg17gfyYQr7S88ygib28zTtNUXo9f9S1dLO/HZjihv+lL8EsVwSDYw0JN
74
+ RRrxkqphm1zRkJB4g7lugOItK177HEWYhfH0JhVKRyuNk+U/oZjeC4oUAAA=
75
+ http_version: '1.1'
76
+ recorded_at: Fri, 15 Aug 2014 19:59:36 GMT
77
+ recorded_with: VCR 2.8.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Sad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-27 00:00:00.000000000 Z
11
+ date: 2014-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: vcr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.9'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '2.9'
111
125
  description:
112
126
  email:
113
127
  - gorgulhoguilherme@gmail.com
@@ -140,6 +154,34 @@ files:
140
154
  - spec/lib/rspotify/user_spec.rb
141
155
  - spec/lib/rspotify_spec.rb
142
156
  - spec/spec_helper.rb
157
+ - spec/vcr_cassettes/album_find_2agWNCZl5Ts9W05mij8EPh.yml
158
+ - spec/vcr_cassettes/album_find_3JquYMWj5wrzuZCNAvOYN9.yml
159
+ - spec/vcr_cassettes/album_find_5bU1XKYxHhEwukllT20xtk.yml
160
+ - spec/vcr_cassettes/album_search_AM.yml
161
+ - spec/vcr_cassettes/album_search_AM_limit_10.yml
162
+ - spec/vcr_cassettes/album_search_AM_offset_10.yml
163
+ - spec/vcr_cassettes/album_search_AM_offset_10_limit_10.yml
164
+ - spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_albums.yml
165
+ - spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_related_artists.yml
166
+ - spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_top_tracks_US.yml
167
+ - spec/vcr_cassettes/artist_find_0oSGxfWSnnOXhD2fKuz2Gy.yml
168
+ - spec/vcr_cassettes/artist_find_3dBVyJ7JuOMt4GE9607Qin.yml
169
+ - spec/vcr_cassettes/artist_find_7Ln80lUS6He07XvHI8qqHH.yml
170
+ - spec/vcr_cassettes/artist_search_Arctic.yml
171
+ - spec/vcr_cassettes/artist_search_Arctic_limit_10.yml
172
+ - spec/vcr_cassettes/artist_search_Arctic_offset_10.yml
173
+ - spec/vcr_cassettes/artist_search_Arctic_offset_10_limit_10.yml
174
+ - spec/vcr_cassettes/authenticate_5ac1cda2ad354aeaa1ad2693d33bb98c.yml
175
+ - spec/vcr_cassettes/playlist_find_wizzler_00wHcTN0zQiun4xri9pmvX.yml
176
+ - spec/vcr_cassettes/track_find_3jfr0TF6DQcOLat8gGn7E2.yml
177
+ - spec/vcr_cassettes/track_find_4oI9kesyxHUr8fqiLd6uO9.yml
178
+ - spec/vcr_cassettes/track_find_7D8BAYkrR9peCB9XSKCADc.yml
179
+ - spec/vcr_cassettes/track_search_Wanna_Know.yml
180
+ - spec/vcr_cassettes/track_search_Wanna_Know_limit_10.yml
181
+ - spec/vcr_cassettes/track_search_Wanna_Know_limit_10_offset_10.yml
182
+ - spec/vcr_cassettes/track_search_Wanna_Know_offset_10.yml
183
+ - spec/vcr_cassettes/user_find_wizzler.yml
184
+ - spec/vcr_cassettes/user_wizzler_playlists.yml
143
185
  homepage: http://rubygems.org/gems/rspotify
144
186
  licenses:
145
187
  - MIT
@@ -172,4 +214,32 @@ test_files:
172
214
  - spec/lib/rspotify/user_spec.rb
173
215
  - spec/lib/rspotify_spec.rb
174
216
  - spec/spec_helper.rb
217
+ - spec/vcr_cassettes/album_find_2agWNCZl5Ts9W05mij8EPh.yml
218
+ - spec/vcr_cassettes/album_find_3JquYMWj5wrzuZCNAvOYN9.yml
219
+ - spec/vcr_cassettes/album_find_5bU1XKYxHhEwukllT20xtk.yml
220
+ - spec/vcr_cassettes/album_search_AM.yml
221
+ - spec/vcr_cassettes/album_search_AM_limit_10.yml
222
+ - spec/vcr_cassettes/album_search_AM_offset_10.yml
223
+ - spec/vcr_cassettes/album_search_AM_offset_10_limit_10.yml
224
+ - spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_albums.yml
225
+ - spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_related_artists.yml
226
+ - spec/vcr_cassettes/artist_7Ln80lUS6He07XvHI8qqHH_top_tracks_US.yml
227
+ - spec/vcr_cassettes/artist_find_0oSGxfWSnnOXhD2fKuz2Gy.yml
228
+ - spec/vcr_cassettes/artist_find_3dBVyJ7JuOMt4GE9607Qin.yml
229
+ - spec/vcr_cassettes/artist_find_7Ln80lUS6He07XvHI8qqHH.yml
230
+ - spec/vcr_cassettes/artist_search_Arctic.yml
231
+ - spec/vcr_cassettes/artist_search_Arctic_limit_10.yml
232
+ - spec/vcr_cassettes/artist_search_Arctic_offset_10.yml
233
+ - spec/vcr_cassettes/artist_search_Arctic_offset_10_limit_10.yml
234
+ - spec/vcr_cassettes/authenticate_5ac1cda2ad354aeaa1ad2693d33bb98c.yml
235
+ - spec/vcr_cassettes/playlist_find_wizzler_00wHcTN0zQiun4xri9pmvX.yml
236
+ - spec/vcr_cassettes/track_find_3jfr0TF6DQcOLat8gGn7E2.yml
237
+ - spec/vcr_cassettes/track_find_4oI9kesyxHUr8fqiLd6uO9.yml
238
+ - spec/vcr_cassettes/track_find_7D8BAYkrR9peCB9XSKCADc.yml
239
+ - spec/vcr_cassettes/track_search_Wanna_Know.yml
240
+ - spec/vcr_cassettes/track_search_Wanna_Know_limit_10.yml
241
+ - spec/vcr_cassettes/track_search_Wanna_Know_limit_10_offset_10.yml
242
+ - spec/vcr_cassettes/track_search_Wanna_Know_offset_10.yml
243
+ - spec/vcr_cassettes/user_find_wizzler.yml
244
+ - spec/vcr_cassettes/user_wizzler_playlists.yml
175
245
  has_rdoc: