echonest-ruby-api 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f288056fa5a3353428271b37081c449ec7032f7c
4
- data.tar.gz: e12695b8c5b341a27135ee642f9f2529cbbfc33f
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OThiZmUzNjAyMGYwYTYwMjdiZTBlYTQ3ZGYzMGIzMjIwOTU0N2ZiZQ==
5
+ data.tar.gz: !binary |-
6
+ OTBkNDE4MTEzM2M4NTI2ODM1MWQyOTQ2ZTdkMjNmOTRmZTQyNTNmYw==
5
7
  SHA512:
6
- metadata.gz: 09b2ba497b597325561b85270b01be58df358ae6d34d72ad7e4d87f5470141431134b6b9213e78fabf64280a4aff1bdc49247de91462a8c887a58d1e551af0e2
7
- data.tar.gz: 10bcb241f1e2cba792063962ef04043f97b494ec1a44cda8008861f98ddc3a94c47f27995b923c27286fb8c08eae96f834e6e0d44dc2ecd626c192d629d86400
8
+ metadata.gz: !binary |-
9
+ ODcxMGI0NmFjZTZjNjVmYWY2MjI2OWM0ZDhhOTEyZjVlODM1NmQ1MjgyOWQ3
10
+ ZTZjOTJiMzNlYjY5MThlZWY5Yjg0MzhkM2IxNDkwNjU2ZjZmOTM2YjBkY2Iy
11
+ YTVlZWNmODJmYmU2M2ZmOGY5ZDQ1MzBiYzQ1MmUxNTVmNzA3M2I=
12
+ data.tar.gz: !binary |-
13
+ ZGYwZjgyOGY0N2VhMTQ4Y2E2NzZmZWYwMDZiYzdlNTc0MzIzZDY0ZDE2NzU0
14
+ Y2VmYmM5MGUxYWE1ZjRlN2M0YzYzYjRkZDlhYTdjZjUyN2NkOTYzZWRjZjMx
15
+ ODk1OWY4MThhMTlmZWZmM2FkMTM5OTAyNzBhZDA0YjRlNTEzYjc=
Binary file
Binary file
data/Gemfile CHANGED
@@ -4,4 +4,7 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'rake'
7
- gem 'simplecov', :require => false, :group => :test
7
+ group :test do
8
+ gem 'mocha', :require => 'mocha/api'
9
+ gem 'simplecov', :require => false
10
+ end
@@ -0,0 +1,21 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIDaDCCAlCgAwIBAgIBATANBgkqhkiG9w0BAQUFADA9MRIwEAYDVQQDDAltYXhf
3
+ d29vbGYxEjAQBgoJkiaJk/IsZAEZFgJtZTETMBEGCgmSJomT8ixkARkWA2NvbTAe
4
+ Fw0xNDAyMTQxMjA0NDlaFw0xNTAyMTQxMjA0NDlaMD0xEjAQBgNVBAMMCW1heF93
5
+ b29sZjESMBAGCgmSJomT8ixkARkWAm1lMRMwEQYKCZImiZPyLGQBGRYDY29tMIIB
6
+ IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAueyZF4r6lEJdzPlF2ZXXJIsU
7
+ 7v8/zsvXCBUaBKBw16tSzafG5cxIUoSdgAlR1H0uJZpVPYm8cQLmfReuoD/gnwqd
8
+ vlhLBDvE0S/Smio+zqjySFgDbR8i2DOtKSm4CYuAScBIrFB9katM9S3/ye1Egwy4
9
+ wgKsOth8LLaFGGturrngV3uczDkDFdtwHW0VqnfWVsHXWFLkQA9q8kX85cg5YAlx
10
+ RnZumqXo7mRMUGhXYYu3xl24vwMiamZJhc4nLbOcjz8I7CI2HV++EAaGi9iqcgNl
11
+ GqfJfBa8T6SttAcYf0t0x9TXUqCzW2/GTXQcOosXQEqeM4NPfZ80hcGzJPVrhQID
12
+ AQABo3MwcTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUU9TCNdFX
13
+ uvhlfeGJJECbZaRnq1EwGwYDVR0RBBQwEoEQbWF4X3dvb2xmQG1lLmNvbTAbBgNV
14
+ HRIEFDASgRBtYXhfd29vbGZAbWUuY29tMA0GCSqGSIb3DQEBBQUAA4IBAQBoZyM5
15
+ tjuuYYQUXJTqk35PobgGjIo1f7sK8yCS0j0a/WKJDYF0hgCM42wQc2gBGV0RpczJ
16
+ 2oRZ0r2n3H0fxlaBvG5NtneDgoBoEMLsZ1cLiHRKfEjMpzMYSgwVQbEMCXYwBeWa
17
+ fJfzivI4TToI8Zg6fQeN0jjlh5GkXYbytukp8CCXpJT+AZthpwBjRwy7R5+C3iwu
18
+ k0KhZvZZZL2knoPdirOfk3YhOhyHAgCstIHggftn2gIEIgn6UnN852wr6g/A/jqq
19
+ DX2TPlo9TZszjP1IUrNTO7BR4IPUOzSA5NHCn5SJ1e6tfZAIu4c+hrykqFrDYGCm
20
+ 7rz3OMlItHVQfDX+
21
+ -----END CERTIFICATE-----
@@ -11,6 +11,8 @@ Gem::Specification.new do |gem|
11
11
  gem.description = "A simple ruby wrapper around the Echonest API"
12
12
  gem.summary = "A gem to get hold of some echonest stuff!"
13
13
  gem.homepage = "https://github.com/maxehmookau/echonest-ruby-api"
14
+ gem.cert_chain = ['certs/maxehmookau.pem']
15
+ gem.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
14
16
 
15
17
  gem.files = `git ls-files`.split($/)
16
18
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -22,7 +24,6 @@ Gem::Specification.new do |gem|
22
24
  gem.add_development_dependency "rspec", "~> 2.6"
23
25
  gem.add_development_dependency 'guard-rspec'
24
26
  gem.add_development_dependency 'rb-fsevent', '~> 0.9.1'
25
- gem.add_development_dependency 'mocha'
26
27
  gem.add_development_dependency 'vcr'
27
28
  gem.add_development_dependency 'webmock'
28
29
  gem.add_development_dependency 'coveralls'
@@ -0,0 +1,423 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://developer.echonest.com/api/v4/artist/genres?api_key=BNOAEBT3IZYZI6WXI&format=json&name=Weezer
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Sun, 26 Jan 2014 03:58:58 GMT
17
+ Content-Type:
18
+ - application/json; charset=utf-8
19
+ Content-Length:
20
+ - '184'
21
+ Vary:
22
+ - Accept-Encoding
23
+ X-Request-Id:
24
+ - hdkk+7A9SfWbGW7yQs22Zw
25
+ Etag:
26
+ - ! '"9dc0104ab3feb99dd9455dec2fa517050584d5fc"'
27
+ X-Worker-Node:
28
+ - d2362:29543
29
+ X-Ratelimit-Remaining:
30
+ - '19'
31
+ Server:
32
+ - TornadoServer/3.1
33
+ X-Ratelimit-Limit:
34
+ - '20'
35
+ X-Api-Key:
36
+ - BNOAEBT3IZYZI6WXI
37
+ Cache-Control:
38
+ - max-age=86400
39
+ Access-Control-Allow-Origin:
40
+ - ! '*'
41
+ X-Ratelimit-Used:
42
+ - '1'
43
+ Connection:
44
+ - Keep-alive
45
+ Keep-Alive:
46
+ - timeout=15, max=100
47
+ Via:
48
+ - 1.1 ID-0000627501223746 uproxy-2
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
52
+ "Success"}, "terms": {"genre": "rock", "sub_genre": "alternative rock"}, "id":
53
+ "AR633SY1187B9AC3B9", "name": "Weezer"}}'
54
+ http_version:
55
+ recorded_at: Sun, 26 Jan 2014 03:58:58 GMT
56
+ - request:
57
+ method: get
58
+ uri: http://developer.echonest.com/api/v4/artist/genres?api_key=BNOAEBT3IZYZI6WXI&format=json&name=Weezer
59
+ body:
60
+ encoding: US-ASCII
61
+ string: ''
62
+ headers: {}
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Date:
69
+ - Sun, 26 Jan 2014 04:06:03 GMT
70
+ Content-Type:
71
+ - application/json; charset=utf-8
72
+ Content-Length:
73
+ - '184'
74
+ Vary:
75
+ - Accept-Encoding
76
+ X-Request-Id:
77
+ - cVqH5Kn4RtyaJIlf0WV6gw
78
+ Etag:
79
+ - ! '"9dc0104ab3feb99dd9455dec2fa517050584d5fc"'
80
+ X-Worker-Node:
81
+ - 62c18:30282
82
+ X-Ratelimit-Remaining:
83
+ - '19'
84
+ Server:
85
+ - TornadoServer/3.1
86
+ X-Ratelimit-Limit:
87
+ - '20'
88
+ X-Api-Key:
89
+ - BNOAEBT3IZYZI6WXI
90
+ Cache-Control:
91
+ - max-age=86400
92
+ Access-Control-Allow-Origin:
93
+ - ! '*'
94
+ X-Ratelimit-Used:
95
+ - '1'
96
+ Connection:
97
+ - Keep-alive
98
+ Keep-Alive:
99
+ - timeout=15, max=100
100
+ Via:
101
+ - 1.1 ID-0000627501223746 uproxy-3
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
105
+ "Success"}, "terms": {"genre": "rock", "sub_genre": "alternative rock"}, "id":
106
+ "AR633SY1187B9AC3B9", "name": "Weezer"}}'
107
+ http_version:
108
+ recorded_at: Sun, 26 Jan 2014 04:06:03 GMT
109
+ - request:
110
+ method: get
111
+ uri: http://developer.echonest.com/api/v4/artist/genres?api_key=BNOAEBT3IZYZI6WXI&format=json&name=Weezer
112
+ body:
113
+ encoding: US-ASCII
114
+ string: ''
115
+ headers: {}
116
+ response:
117
+ status:
118
+ code: 200
119
+ message: OK
120
+ headers:
121
+ Date:
122
+ - Sun, 26 Jan 2014 04:06:03 GMT
123
+ Content-Type:
124
+ - application/json; charset=utf-8
125
+ Content-Length:
126
+ - '184'
127
+ Vary:
128
+ - Accept-Encoding
129
+ X-Request-Id:
130
+ - Rd7NUWM+Q1qXAVGhNsoCyA
131
+ Etag:
132
+ - ! '"9dc0104ab3feb99dd9455dec2fa517050584d5fc"'
133
+ X-Worker-Node:
134
+ - 962d4:11003
135
+ X-Ratelimit-Remaining:
136
+ - '18'
137
+ Server:
138
+ - TornadoServer/3.1
139
+ X-Ratelimit-Limit:
140
+ - '20'
141
+ X-Api-Key:
142
+ - BNOAEBT3IZYZI6WXI
143
+ Cache-Control:
144
+ - max-age=86400
145
+ Access-Control-Allow-Origin:
146
+ - ! '*'
147
+ X-Ratelimit-Used:
148
+ - '2'
149
+ Connection:
150
+ - Keep-alive
151
+ Keep-Alive:
152
+ - timeout=15, max=100
153
+ Via:
154
+ - 1.1 ID-0000627501223746 uproxy-2
155
+ body:
156
+ encoding: US-ASCII
157
+ string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
158
+ "Success"}, "terms": {"genre": "rock", "sub_genre": "alternative rock"}, "id":
159
+ "AR633SY1187B9AC3B9", "name": "Weezer"}}'
160
+ http_version:
161
+ recorded_at: Sun, 26 Jan 2014 04:06:03 GMT
162
+ - request:
163
+ method: get
164
+ uri: http://developer.echonest.com/api/v4/profile?api_key=BNOAEBT3IZYZI6WXI&bucket=genre&format=json&name=Weezer
165
+ body:
166
+ encoding: US-ASCII
167
+ string: ''
168
+ headers: {}
169
+ response:
170
+ status:
171
+ code: 404
172
+ message: Not Found
173
+ headers:
174
+ Date:
175
+ - Sun, 26 Jan 2014 23:26:27 GMT
176
+ Content-Type:
177
+ - text/html; charset=UTF-8
178
+ Content-Length:
179
+ - '69'
180
+ Vary:
181
+ - Accept-Encoding
182
+ Server:
183
+ - TornadoServer/3.1
184
+ Connection:
185
+ - Keep-alive
186
+ Keep-Alive:
187
+ - timeout=15, max=100
188
+ Via:
189
+ - 1.1 ID-0000627501223746 uproxy-2
190
+ body:
191
+ encoding: US-ASCII
192
+ string: ! '<html><title>404: Not Found</title><body>404: Not Found</body></html>'
193
+ http_version:
194
+ recorded_at: Sun, 26 Jan 2014 23:26:27 GMT
195
+ - request:
196
+ method: get
197
+ uri: http://developer.echonest.com/api/v4/artist/profile?api_key=BNOAEBT3IZYZI6WXI&bucket=genre&format=json&name=Weezer
198
+ body:
199
+ encoding: US-ASCII
200
+ string: ''
201
+ headers: {}
202
+ response:
203
+ status:
204
+ code: 200
205
+ message: OK
206
+ headers:
207
+ Date:
208
+ - Sun, 26 Jan 2014 23:58:56 GMT
209
+ Content-Type:
210
+ - application/json; charset=utf-8
211
+ Content-Length:
212
+ - '471'
213
+ Vary:
214
+ - Accept-Encoding
215
+ X-Request-Id:
216
+ - 1tzjORt/QN2f0t1gu8AWCg
217
+ Etag:
218
+ - ! '"3a947d2bd34bbca959ebbcbe4447e410165537c2"'
219
+ X-Worker-Node:
220
+ - 7cbef:17202
221
+ X-Ratelimit-Remaining:
222
+ - '19'
223
+ Server:
224
+ - TornadoServer/3.1
225
+ X-Ratelimit-Limit:
226
+ - '20'
227
+ X-Api-Key:
228
+ - BNOAEBT3IZYZI6WXI
229
+ Cache-Control:
230
+ - max-age=86400
231
+ Access-Control-Allow-Origin:
232
+ - ! '*'
233
+ X-Ratelimit-Used:
234
+ - '1'
235
+ Connection:
236
+ - Keep-alive
237
+ Keep-Alive:
238
+ - timeout=15, max=100
239
+ Via:
240
+ - 1.1 ID-0000627501223746 uproxy-3
241
+ body:
242
+ encoding: US-ASCII
243
+ string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
244
+ "Success"}, "artist": {"genres": [{"name": "alternative rock"}, {"name": "punk
245
+ christmas"}, {"name": "indie christmas"}, {"name": "power pop"}, {"name":
246
+ "pop punk"}, {"name": "pop rock"}, {"name": "hot adult contemporary"}, {"name":
247
+ "pop christmas"}, {"name": "post-grunge"}, {"name": "indie rock"}, {"name":
248
+ "funk rock"}, {"name": "chr"}, {"name": "rock"}], "id": "AR633SY1187B9AC3B9",
249
+ "name": "Weezer"}}}'
250
+ http_version:
251
+ recorded_at: Sun, 26 Jan 2014 23:58:56 GMT
252
+ - request:
253
+ method: get
254
+ uri: http://developer.echonest.com/api/v4/artist/profile?api_key=BNOAEBT3IZYZI6WXI&bucket=genre&format=json&name=Weezer
255
+ body:
256
+ encoding: US-ASCII
257
+ string: ''
258
+ headers: {}
259
+ response:
260
+ status:
261
+ code: 200
262
+ message: OK
263
+ headers:
264
+ Date:
265
+ - Sun, 26 Jan 2014 23:58:57 GMT
266
+ Content-Type:
267
+ - application/json; charset=utf-8
268
+ Content-Length:
269
+ - '471'
270
+ Vary:
271
+ - Accept-Encoding
272
+ X-Request-Id:
273
+ - yfsrq/4uRjOFKtHbICSOBw
274
+ Etag:
275
+ - ! '"3a947d2bd34bbca959ebbcbe4447e410165537c2"'
276
+ X-Worker-Node:
277
+ - 14f18:14623
278
+ X-Ratelimit-Remaining:
279
+ - '18'
280
+ Server:
281
+ - TornadoServer/3.1
282
+ X-Ratelimit-Limit:
283
+ - '20'
284
+ X-Api-Key:
285
+ - BNOAEBT3IZYZI6WXI
286
+ Cache-Control:
287
+ - max-age=86400
288
+ Access-Control-Allow-Origin:
289
+ - ! '*'
290
+ X-Ratelimit-Used:
291
+ - '2'
292
+ Connection:
293
+ - Keep-alive
294
+ Keep-Alive:
295
+ - timeout=15, max=100
296
+ Via:
297
+ - 1.1 ID-0000627501223746 uproxy-2
298
+ body:
299
+ encoding: US-ASCII
300
+ string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
301
+ "Success"}, "artist": {"genres": [{"name": "alternative rock"}, {"name": "punk
302
+ christmas"}, {"name": "indie christmas"}, {"name": "power pop"}, {"name":
303
+ "pop punk"}, {"name": "pop rock"}, {"name": "hot adult contemporary"}, {"name":
304
+ "pop christmas"}, {"name": "post-grunge"}, {"name": "indie rock"}, {"name":
305
+ "funk rock"}, {"name": "chr"}, {"name": "rock"}], "id": "AR633SY1187B9AC3B9",
306
+ "name": "Weezer"}}}'
307
+ http_version:
308
+ recorded_at: Sun, 26 Jan 2014 23:58:56 GMT
309
+ - request:
310
+ method: get
311
+ uri: http://developer.echonest.com/api/v4/artist/profile?api_key=BNOAEBT3IZYZI6WXI&bucket=genre&format=json&name=Weezer
312
+ body:
313
+ encoding: US-ASCII
314
+ string: ''
315
+ headers: {}
316
+ response:
317
+ status:
318
+ code: 200
319
+ message: OK
320
+ headers:
321
+ Date:
322
+ - Mon, 27 Jan 2014 00:02:56 GMT
323
+ Content-Type:
324
+ - application/json; charset=utf-8
325
+ Content-Length:
326
+ - '471'
327
+ Vary:
328
+ - Accept-Encoding
329
+ X-Request-Id:
330
+ - eRNOTf++SN2HKheFotdIuA
331
+ Etag:
332
+ - ! '"3a947d2bd34bbca959ebbcbe4447e410165537c2"'
333
+ X-Worker-Node:
334
+ - 20284:21431
335
+ X-Ratelimit-Remaining:
336
+ - '19'
337
+ Server:
338
+ - TornadoServer/3.1
339
+ X-Ratelimit-Limit:
340
+ - '20'
341
+ X-Api-Key:
342
+ - BNOAEBT3IZYZI6WXI
343
+ Cache-Control:
344
+ - max-age=86400
345
+ Access-Control-Allow-Origin:
346
+ - ! '*'
347
+ X-Ratelimit-Used:
348
+ - '1'
349
+ Connection:
350
+ - Keep-alive
351
+ Keep-Alive:
352
+ - timeout=15, max=100
353
+ Via:
354
+ - 1.1 ID-0000627501223746 uproxy-3
355
+ body:
356
+ encoding: US-ASCII
357
+ string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
358
+ "Success"}, "artist": {"genres": [{"name": "alternative rock"}, {"name": "punk
359
+ christmas"}, {"name": "indie christmas"}, {"name": "power pop"}, {"name":
360
+ "pop punk"}, {"name": "pop rock"}, {"name": "hot adult contemporary"}, {"name":
361
+ "pop christmas"}, {"name": "post-grunge"}, {"name": "indie rock"}, {"name":
362
+ "funk rock"}, {"name": "chr"}, {"name": "rock"}], "id": "AR633SY1187B9AC3B9",
363
+ "name": "Weezer"}}}'
364
+ http_version:
365
+ recorded_at: Mon, 27 Jan 2014 00:02:55 GMT
366
+ - request:
367
+ method: get
368
+ uri: http://developer.echonest.com/api/v4/artist/profile?api_key=BNOAEBT3IZYZI6WXI&bucket=genre&format=json&name=Weezer
369
+ body:
370
+ encoding: US-ASCII
371
+ string: ''
372
+ headers: {}
373
+ response:
374
+ status:
375
+ code: 200
376
+ message: OK
377
+ headers:
378
+ Date:
379
+ - Mon, 27 Jan 2014 00:02:56 GMT
380
+ Content-Type:
381
+ - application/json; charset=utf-8
382
+ Content-Length:
383
+ - '471'
384
+ Vary:
385
+ - Accept-Encoding
386
+ X-Request-Id:
387
+ - iWUed2F5RBu2svsQqunvCw
388
+ Etag:
389
+ - ! '"3a947d2bd34bbca959ebbcbe4447e410165537c2"'
390
+ X-Worker-Node:
391
+ - 7cbef:17202
392
+ X-Ratelimit-Remaining:
393
+ - '18'
394
+ Server:
395
+ - TornadoServer/3.1
396
+ X-Ratelimit-Limit:
397
+ - '20'
398
+ X-Api-Key:
399
+ - BNOAEBT3IZYZI6WXI
400
+ Cache-Control:
401
+ - max-age=86400
402
+ Access-Control-Allow-Origin:
403
+ - ! '*'
404
+ X-Ratelimit-Used:
405
+ - '2'
406
+ Connection:
407
+ - Keep-alive
408
+ Keep-Alive:
409
+ - timeout=15, max=100
410
+ Via:
411
+ - 1.1 ID-0000627501223746 uproxy-2
412
+ body:
413
+ encoding: US-ASCII
414
+ string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
415
+ "Success"}, "artist": {"genres": [{"name": "alternative rock"}, {"name": "punk
416
+ christmas"}, {"name": "indie christmas"}, {"name": "power pop"}, {"name":
417
+ "pop punk"}, {"name": "pop rock"}, {"name": "hot adult contemporary"}, {"name":
418
+ "pop christmas"}, {"name": "post-grunge"}, {"name": "indie rock"}, {"name":
419
+ "funk rock"}, {"name": "chr"}, {"name": "rock"}], "id": "AR633SY1187B9AC3B9",
420
+ "name": "Weezer"}}}'
421
+ http_version:
422
+ recorded_at: Mon, 27 Jan 2014 00:02:55 GMT
423
+ recorded_with: VCR 2.8.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://developer.echonest.com/api/v4/artist/images?api_key=BNOAEBT3IZYZI6WXI&format=json&name=Weezer
5
+ uri: http://developer.echonest.com/api/v4/artist/images?api_key=BNOAEBT3IZYZI6WXI&format=json&name=Weezer&results=15
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -13,66 +13,78 @@ http_interactions:
13
13
  message: OK
14
14
  headers:
15
15
  Date:
16
- - Sat, 23 Feb 2013 13:06:16 GMT
16
+ - Mon, 06 Jan 2014 21:26:25 GMT
17
17
  Content-Type:
18
18
  - application/json; charset=utf-8
19
- Connection:
20
- - keep-alive
19
+ Content-Length:
20
+ - '3529'
21
21
  Vary:
22
22
  - Accept-Encoding
23
23
  X-Request-Id:
24
- - JqnS9DQcTTStsd0ISZ32oQ
24
+ - Poy5IAtkQgeNmqFgKzrx6w
25
25
  Etag:
26
- - ! '"5a8042a15d413c7f6a6f7b3c62e14a4508e93f63"'
26
+ - ! '"6597e75a1cce28f2f827afc4ca3e6eca018f9469"'
27
27
  X-Worker-Node:
28
- - 4dfa3:20562
29
- Content-Length:
30
- - '2868'
28
+ - 96cdc:21874
31
29
  X-Ratelimit-Remaining:
32
- - '20'
30
+ - '19'
33
31
  Server:
34
- - TornadoServer/2.4.1
32
+ - TornadoServer/3.1
35
33
  X-Ratelimit-Limit:
36
34
  - '20'
35
+ X-Api-Key:
36
+ - BNOAEBT3IZYZI6WXI
37
37
  Cache-Control:
38
38
  - max-age=86400
39
39
  Access-Control-Allow-Origin:
40
40
  - ! '*'
41
41
  X-Ratelimit-Used:
42
42
  - '1'
43
+ Connection:
44
+ - Keep-alive
45
+ Keep-Alive:
46
+ - timeout=15, max=100
47
+ Via:
48
+ - 1.1 ID-0000627501223746 uproxy-2
43
49
  body:
44
50
  encoding: US-ASCII
45
51
  string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
46
- "Success"}, "start": 0, "total": 257, "images": [{"url": "http://upload.wikimedia.org/wikipedia/commons/2/2b/Weezer.jpg",
47
- "license": {"type": "cc-by-sa", "attribution": "ryanwh / ryan", "url": "http://en.wikipedia.org/wiki/File:Weezer.jpg"}},
48
- {"url": "http://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/Weezer_2005.jpg/800px-Weezer_2005.jpg",
49
- "license": {"type": "cc-by", "attribution": "James from Somerville, USA",
50
- "url": "http://en.wikipedia.org/wiki/File:Weezer_2005.jpg"}}, {"url": "http://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Weezer_2009.jpg/399px-Weezer_2009.jpg",
51
- "license": {"type": "cc-by-sa", "attribution": "Green Up Music", "url": "http://en.wikipedia.org/wiki/File:Weezer_2009.jpg"}},
52
- {"url": "http://userserve-ak.last.fm/serve/_/279528.jpg", "license": {"type":
53
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/279528.jpg"}},
54
- {"url": "http://userserve-ak.last.fm/serve/_/431014.jpg", "license": {"type":
55
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/431014.jpg"}},
56
- {"url": "http://userserve-ak.last.fm/serve/_/93147.jpg", "license": {"type":
57
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/93147.jpg"}},
58
- {"url": "http://userserve-ak.last.fm/serve/_/131510.jpg", "license": {"type":
59
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/131510.jpg"}},
60
- {"url": "http://userserve-ak.last.fm/serve/_/277801.jpg", "license": {"type":
61
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/277801.jpg"}},
62
- {"url": "http://userserve-ak.last.fm/serve/_/252260.jpg", "license": {"type":
63
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/252260.jpg"}},
64
- {"url": "http://userserve-ak.last.fm/serve/_/268073.jpg", "license": {"type":
65
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/268073.jpg"}},
66
- {"url": "http://userserve-ak.last.fm/serve/_/268537.png", "license": {"type":
67
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/268537.png"}},
68
- {"url": "http://userserve-ak.last.fm/serve/_/73183.jpg", "license": {"type":
69
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/73183.jpg"}},
70
- {"url": "http://userserve-ak.last.fm/serve/_/278070.jpg", "license": {"type":
71
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/278070.jpg"}},
72
- {"url": "http://userserve-ak.last.fm/serve/_/150394.jpg", "license": {"type":
73
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/150394.jpg"}},
74
- {"url": "http://userserve-ak.last.fm/serve/_/268537.jpg", "license": {"type":
75
- "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/268537.jpg"}}]}}'
52
+ "Success"}, "start": 0, "total": 175, "images": [{"url": "http://upload.wikimedia.org/wikipedia/commons/2/2b/Weezer.jpg",
53
+ "tags": [], "width": 640, "height": 480, "aspect_ratio": 1.3333333333333333,
54
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "ryanwh
55
+ / ryan", "url": "http://en.wikipedia.org/wiki/File:Weezer.jpg"}}, {"url":
56
+ "http://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/Weezer_2005.jpg/800px-Weezer_2005.jpg",
57
+ "tags": [], "width": 800, "height": 600, "aspect_ratio": 1.3333333333333333,
58
+ "verified": false, "license": {"type": "cc-by", "attribution": "James from
59
+ Somerville, USA", "url": "http://en.wikipedia.org/wiki/File:Weezer_2005.jpg"}},
60
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Weezer_2009.jpg/399px-Weezer_2009.jpg",
61
+ "tags": [], "width": 399, "height": 600, "aspect_ratio": 0.66500000000000004,
62
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Green Up
63
+ Music", "url": "http://en.wikipedia.org/wiki/File:Weezer_2009.jpg"}}, {"url":
64
+ "http://userserve-ak.last.fm/serve/_/279528.jpg", "tags": [], "verified":
65
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/279528.jpg"}},
66
+ {"url": "http://userserve-ak.last.fm/serve/_/431014.jpg", "tags": [], "verified":
67
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/431014.jpg"}},
68
+ {"url": "http://userserve-ak.last.fm/serve/_/93147.jpg", "tags": [], "verified":
69
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/93147.jpg"}},
70
+ {"url": "http://userserve-ak.last.fm/serve/_/131510.jpg", "tags": [], "verified":
71
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/131510.jpg"}},
72
+ {"url": "http://userserve-ak.last.fm/serve/_/277801.jpg", "tags": [], "verified":
73
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/277801.jpg"}},
74
+ {"url": "http://userserve-ak.last.fm/serve/_/252260.jpg", "tags": [], "verified":
75
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/252260.jpg"}},
76
+ {"url": "http://userserve-ak.last.fm/serve/_/268073.jpg", "tags": [], "verified":
77
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/268073.jpg"}},
78
+ {"url": "http://userserve-ak.last.fm/serve/_/268537.png", "tags": [], "verified":
79
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/268537.png"}},
80
+ {"url": "http://userserve-ak.last.fm/serve/_/73183.jpg", "tags": [], "verified":
81
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/73183.jpg"}},
82
+ {"url": "http://userserve-ak.last.fm/serve/_/278070.jpg", "tags": [], "verified":
83
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/278070.jpg"}},
84
+ {"url": "http://userserve-ak.last.fm/serve/_/150394.jpg", "tags": [], "verified":
85
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/150394.jpg"}},
86
+ {"url": "http://userserve-ak.last.fm/serve/_/268537.jpg", "tags": [], "verified":
87
+ false, "license": {"type": "unknown", "attribution": "last.fm", "url": "http://userserve-ak.last.fm/serve/_/268537.jpg"}}]}}'
76
88
  http_version:
77
- recorded_at: Sat, 23 Feb 2013 13:06:23 GMT
78
- recorded_with: VCR 2.4.0
89
+ recorded_at: Mon, 06 Jan 2014 21:26:25 GMT
90
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,119 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://developer.echonest.com/api/v4/artist/images?api_key=BNOAEBT3IZYZI6WXI&format=json&name=Bob%20Marley&results=20
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Mon, 06 Jan 2014 21:26:26 GMT
17
+ Content-Type:
18
+ - application/json; charset=utf-8
19
+ Content-Length:
20
+ - '5698'
21
+ Vary:
22
+ - Accept-Encoding
23
+ X-Request-Id:
24
+ - OF7F2++gSUSNP2Ga6GwXmw
25
+ Etag:
26
+ - ! '"638849d6f3120cbf26f0c20748597ce948d1ef9c"'
27
+ X-Worker-Node:
28
+ - 89619:18333
29
+ X-Ratelimit-Remaining:
30
+ - '17'
31
+ Server:
32
+ - TornadoServer/3.1
33
+ X-Ratelimit-Limit:
34
+ - '20'
35
+ X-Api-Key:
36
+ - BNOAEBT3IZYZI6WXI
37
+ Cache-Control:
38
+ - max-age=86400
39
+ Access-Control-Allow-Origin:
40
+ - ! '*'
41
+ X-Ratelimit-Used:
42
+ - '3'
43
+ Connection:
44
+ - Keep-alive
45
+ Keep-Alive:
46
+ - timeout=15, max=100
47
+ Via:
48
+ - 1.1 ID-0000627501223746 uproxy-2
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
52
+ "Success"}, "start": 0, "total": 143, "images": [{"url": "http://upload.wikimedia.org/wikipedia/commons/3/3a/Bob-Marley-in-Concert_Zurich_05-30-80.jpg",
53
+ "tags": [], "width": 600, "height": 497, "aspect_ratio": 1.2072434607645874,
54
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "CdaMVvWgS",
55
+ "url": "http://upload.wikimedia.org/wikipedia/commons/3/3a/Bob-Marley-in-Concert_Zurich_05-30-80.jpg"}},
56
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/thumb/6/61/Bob-marley-wailers-crystal-palace.jpg/800px-Bob-marley-wailers-crystal-palace.jpg",
57
+ "tags": [], "width": 800, "height": 537, "aspect_ratio": 1.4897579143389199,
58
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Tankfield",
59
+ "url": "http://en.wikipedia.org/wiki/File:Bob-marley-wailers-crystal-palace.jpg"}},
60
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/6/68/Bob-Marley_3.jpg",
61
+ "tags": [], "width": 600, "height": 424, "aspect_ratio": 1.4150943396226414,
62
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Leahtwosaints",
63
+ "url": "http://upload.wikimedia.org/wikipedia/commons/6/68/Bob-Marley_3.jpg"}},
64
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/6/61/Bob-marley-wailers-crystal-palace.jpg",
65
+ "tags": [], "width": 1008, "height": 677, "aspect_ratio": 1.4889217134416544,
66
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Fountain
67
+ Posters", "url": "http://upload.wikimedia.org/wikipedia/commons/6/61/Bob-marley-wailers-crystal-palace.jpg"}},
68
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/8/84/Bob_Marley_house_in_Nine_Mile.jpg",
69
+ "tags": [], "width": 2048, "height": 1536, "aspect_ratio": 1.3333333333333333,
70
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "File Upload
71
+ Bot (Magnus Manske)", "url": "http://upload.wikimedia.org/wikipedia/commons/8/84/Bob_Marley_house_in_Nine_Mile.jpg"}},
72
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/1/1e/Bob_Marley_Wax.jpg",
73
+ "tags": [], "width": 1728, "height": 2304, "aspect_ratio": 0.75, "verified":
74
+ false, "license": {"type": "cc-by-sa", "attribution": "Sub-Zero 88", "url":
75
+ "http://upload.wikimedia.org/wikipedia/commons/1/1e/Bob_Marley_Wax.jpg"}},
76
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/4/44/Bob-Star.jpg",
77
+ "tags": [], "width": 567, "height": 850, "aspect_ratio": 0.66705882352941182,
78
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Dioz",
79
+ "url": "http://upload.wikimedia.org/wikipedia/commons/4/44/Bob-Star.jpg"}},
80
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Bob-Marley.jpg",
81
+ "tags": [], "width": 424, "height": 600, "aspect_ratio": 0.70666666666666667,
82
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "LobStoR",
83
+ "url": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Bob-Marley.jpg"}},
84
+ {"url": "http://upload.wikimedia.org/wikipedia/commons/0/03/Bob_Marley_apartment_in_London.jpg",
85
+ "tags": [], "width": 1024, "height": 768, "aspect_ratio": 1.3333333333333333,
86
+ "verified": false, "license": {"type": "cc-by", "attribution": "Fountain Posters",
87
+ "url": "http://upload.wikimedia.org/wikipedia/commons/0/03/Bob_Marley_apartment_in_London.jpg"}},
88
+ {"url": "http://userserve-ak.last.fm/serve/_/3604577/Bob+Marley+Esther+Anderson.jpg",
89
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
90
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url":
91
+ "http://userserve-ak.last.fm/serve/_/3154905/Bob+Marley+BobMarley.jpg", "tags":
92
+ [], "verified": false, "license": {"type": "unknown", "attribution": "last.fm",
93
+ "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url": "http://userserve-ak.last.fm/serve/_/46289809/Bob+Marley+bob_marley_80.jpg",
94
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
95
+ "n/a", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url": "http://userserve-ak.last.fm/serve/_/24579307/Bob+Marley+0000173918002.jpg",
96
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
97
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url":
98
+ "http://userserve-ak.last.fm/serve/_/23882297/Bob+Marley+bob.jpg", "tags":
99
+ [], "verified": false, "license": {"type": "unknown", "attribution": "n/a",
100
+ "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url": "http://userserve-ak.last.fm/serve/500/8733225/Bob+Marley+108681826668.jpg",
101
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
102
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url":
103
+ "http://userserve-ak.last.fm/serve/500/3604551/Bob+Marley+Esther+Anderson.jpg",
104
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
105
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url":
106
+ "http://userserve-ak.last.fm/serve/500/48180067/Bob+Marley+000BobMarley.jpg",
107
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
108
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url":
109
+ "http://userserve-ak.last.fm/serve/_/19857863/Bob+Marley+marley_weed.jpg",
110
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
111
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url":
112
+ "http://userserve-ak.last.fm/serve/_/8456759/Bob+Marley+14707b.jpg", "tags":
113
+ [], "verified": false, "license": {"type": "unknown", "attribution": "last.fm",
114
+ "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url": "http://userserve-ak.last.fm/serve/500/8209257/Bob+Marley+9_tossing_ball.jpg",
115
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
116
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}]}}'
117
+ http_version:
118
+ recorded_at: Mon, 06 Jan 2014 21:26:26 GMT
119
+ recorded_with: VCR 2.8.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://developer.echonest.com/api/v4/artist/images?api_key=BNOAEBT3IZYZI6WXI&format=json&name=Bob%20Marley
5
+ uri: http://developer.echonest.com/api/v4/artist/images?api_key=BNOAEBT3IZYZI6WXI&format=json&name=Bob%20Marley&results=15
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -13,72 +13,93 @@ http_interactions:
13
13
  message: OK
14
14
  headers:
15
15
  Date:
16
- - Mon, 17 Jun 2013 18:39:13 GMT
16
+ - Mon, 06 Jan 2014 21:26:25 GMT
17
17
  Content-Type:
18
18
  - application/json; charset=utf-8
19
19
  Content-Length:
20
- - '3514'
20
+ - '4557'
21
21
  Vary:
22
22
  - Accept-Encoding
23
23
  X-Request-Id:
24
- - G7d6WfNxRmKnS6a4UP6Djg
24
+ - 3oVtc1GbRz6u7/4XH/1Htg
25
25
  Etag:
26
- - ! '"b9b9cfa02c362649b53e832a81ed6e2112b2c01e"'
26
+ - ! '"e1f92aa229894bc8b218ec1aecfeb3bece54421d"'
27
27
  X-Worker-Node:
28
- - 2d6ca:15157
28
+ - d1c7d:12847
29
29
  X-Ratelimit-Remaining:
30
- - '19'
30
+ - '18'
31
31
  Server:
32
- - TornadoServer/3.0.1
32
+ - TornadoServer/3.1
33
33
  X-Ratelimit-Limit:
34
34
  - '20'
35
+ X-Api-Key:
36
+ - BNOAEBT3IZYZI6WXI
35
37
  Cache-Control:
36
38
  - max-age=86400
37
39
  Access-Control-Allow-Origin:
38
40
  - ! '*'
39
41
  X-Ratelimit-Used:
40
- - '1'
42
+ - '2'
41
43
  Connection:
42
44
  - Keep-alive
43
45
  Keep-Alive:
44
46
  - timeout=15, max=100
45
47
  Via:
46
- - 1.1 ID-0000627501223666 uproxy-3
48
+ - 1.1 ID-0000627501223746 uproxy-2
47
49
  body:
48
50
  encoding: US-ASCII
49
51
  string: ! '{"response": {"status": {"version": "4.2", "code": 0, "message":
50
- "Success"}, "start": 0, "total": 141, "images": [{"url": "http://upload.wikimedia.org/wikipedia/commons/0/0f/LocationAfrica.png",
51
- "license": {"type": "unknown", "attribution": "n/a", "url": "http://en.wikipedia.org/wiki/File:LocationAfrica.png"}},
52
- {"url": "http://upload.wikimedia.org/wikipedia/commons/3/3a/Bob-Marley-in-Concert_Zurich_05-30-80.jpg",
53
- "license": {"type": "cc-by-sa", "attribution": "CdaMVvWgS", "url": "http://upload.wikimedia.org/wikipedia/commons/3/3a/Bob-Marley-in-Concert_Zurich_05-30-80.jpg"}},
52
+ "Success"}, "start": 0, "total": 143, "images": [{"url": "http://upload.wikimedia.org/wikipedia/commons/3/3a/Bob-Marley-in-Concert_Zurich_05-30-80.jpg",
53
+ "tags": [], "width": 600, "height": 497, "aspect_ratio": 1.2072434607645874,
54
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "CdaMVvWgS",
55
+ "url": "http://upload.wikimedia.org/wikipedia/commons/3/3a/Bob-Marley-in-Concert_Zurich_05-30-80.jpg"}},
54
56
  {"url": "http://upload.wikimedia.org/wikipedia/commons/thumb/6/61/Bob-marley-wailers-crystal-palace.jpg/800px-Bob-marley-wailers-crystal-palace.jpg",
55
- "license": {"type": "cc-by-sa", "attribution": "Tankfield", "url": "http://en.wikipedia.org/wiki/File:Bob-marley-wailers-crystal-palace.jpg"}},
57
+ "tags": [], "width": 800, "height": 537, "aspect_ratio": 1.4897579143389199,
58
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Tankfield",
59
+ "url": "http://en.wikipedia.org/wiki/File:Bob-marley-wailers-crystal-palace.jpg"}},
56
60
  {"url": "http://upload.wikimedia.org/wikipedia/commons/6/68/Bob-Marley_3.jpg",
57
- "license": {"type": "cc-by-sa", "attribution": "Leahtwosaints", "url": "http://upload.wikimedia.org/wikipedia/commons/6/68/Bob-Marley_3.jpg"}},
61
+ "tags": [], "width": 600, "height": 424, "aspect_ratio": 1.4150943396226414,
62
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Leahtwosaints",
63
+ "url": "http://upload.wikimedia.org/wikipedia/commons/6/68/Bob-Marley_3.jpg"}},
58
64
  {"url": "http://upload.wikimedia.org/wikipedia/commons/6/61/Bob-marley-wailers-crystal-palace.jpg",
59
- "license": {"type": "cc-by-sa", "attribution": "Fountain Posters", "url":
60
- "http://upload.wikimedia.org/wikipedia/commons/6/61/Bob-marley-wailers-crystal-palace.jpg"}},
65
+ "tags": [], "width": 1008, "height": 677, "aspect_ratio": 1.4889217134416544,
66
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Fountain
67
+ Posters", "url": "http://upload.wikimedia.org/wikipedia/commons/6/61/Bob-marley-wailers-crystal-palace.jpg"}},
61
68
  {"url": "http://upload.wikimedia.org/wikipedia/commons/8/84/Bob_Marley_house_in_Nine_Mile.jpg",
62
- "license": {"type": "cc-by-sa", "attribution": "File Upload Bot (Magnus Manske)",
63
- "url": "http://upload.wikimedia.org/wikipedia/commons/8/84/Bob_Marley_house_in_Nine_Mile.jpg"}},
69
+ "tags": [], "width": 2048, "height": 1536, "aspect_ratio": 1.3333333333333333,
70
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "File Upload
71
+ Bot (Magnus Manske)", "url": "http://upload.wikimedia.org/wikipedia/commons/8/84/Bob_Marley_house_in_Nine_Mile.jpg"}},
64
72
  {"url": "http://upload.wikimedia.org/wikipedia/commons/1/1e/Bob_Marley_Wax.jpg",
65
- "license": {"type": "cc-by-sa", "attribution": "Sub-Zero 88", "url": "http://upload.wikimedia.org/wikipedia/commons/1/1e/Bob_Marley_Wax.jpg"}},
73
+ "tags": [], "width": 1728, "height": 2304, "aspect_ratio": 0.75, "verified":
74
+ false, "license": {"type": "cc-by-sa", "attribution": "Sub-Zero 88", "url":
75
+ "http://upload.wikimedia.org/wikipedia/commons/1/1e/Bob_Marley_Wax.jpg"}},
66
76
  {"url": "http://upload.wikimedia.org/wikipedia/commons/4/44/Bob-Star.jpg",
67
- "license": {"type": "cc-by-sa", "attribution": "Dioz", "url": "http://upload.wikimedia.org/wikipedia/commons/4/44/Bob-Star.jpg"}},
77
+ "tags": [], "width": 567, "height": 850, "aspect_ratio": 0.66705882352941182,
78
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "Dioz",
79
+ "url": "http://upload.wikimedia.org/wikipedia/commons/4/44/Bob-Star.jpg"}},
68
80
  {"url": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Bob-Marley.jpg",
69
- "license": {"type": "cc-by-sa", "attribution": "LobStoR", "url": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Bob-Marley.jpg"}},
81
+ "tags": [], "width": 424, "height": 600, "aspect_ratio": 0.70666666666666667,
82
+ "verified": false, "license": {"type": "cc-by-sa", "attribution": "LobStoR",
83
+ "url": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Bob-Marley.jpg"}},
70
84
  {"url": "http://upload.wikimedia.org/wikipedia/commons/0/03/Bob_Marley_apartment_in_London.jpg",
71
- "license": {"type": "cc-by", "attribution": "Fountain Posters", "url": "http://upload.wikimedia.org/wikipedia/commons/0/03/Bob_Marley_apartment_in_London.jpg"}},
85
+ "tags": [], "width": 1024, "height": 768, "aspect_ratio": 1.3333333333333333,
86
+ "verified": false, "license": {"type": "cc-by", "attribution": "Fountain Posters",
87
+ "url": "http://upload.wikimedia.org/wikipedia/commons/0/03/Bob_Marley_apartment_in_London.jpg"}},
72
88
  {"url": "http://userserve-ak.last.fm/serve/_/3604577/Bob+Marley+Esther+Anderson.jpg",
73
- "license": {"type": "unknown", "attribution": "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}},
74
- {"url": "http://userserve-ak.last.fm/serve/_/3154905/Bob+Marley+BobMarley.jpg",
75
- "license": {"type": "unknown", "attribution": "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}},
76
- {"url": "http://userserve-ak.last.fm/serve/_/46289809/Bob+Marley+bob_marley_80.jpg",
77
- "license": {"type": "unknown", "attribution": "n/a", "url": "http://www.last.fm/music/Bob+Marley/+images"}},
78
- {"url": "http://userserve-ak.last.fm/serve/_/24579307/Bob+Marley+0000173918002.jpg",
79
- "license": {"type": "unknown", "attribution": "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}},
80
- {"url": "http://userserve-ak.last.fm/serve/_/23882297/Bob+Marley+bob.jpg",
81
- "license": {"type": "unknown", "attribution": "n/a", "url": "http://www.last.fm/music/Bob+Marley/+images"}}]}}'
89
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
90
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url":
91
+ "http://userserve-ak.last.fm/serve/_/3154905/Bob+Marley+BobMarley.jpg", "tags":
92
+ [], "verified": false, "license": {"type": "unknown", "attribution": "last.fm",
93
+ "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url": "http://userserve-ak.last.fm/serve/_/46289809/Bob+Marley+bob_marley_80.jpg",
94
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
95
+ "n/a", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url": "http://userserve-ak.last.fm/serve/_/24579307/Bob+Marley+0000173918002.jpg",
96
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
97
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url":
98
+ "http://userserve-ak.last.fm/serve/_/23882297/Bob+Marley+bob.jpg", "tags":
99
+ [], "verified": false, "license": {"type": "unknown", "attribution": "n/a",
100
+ "url": "http://www.last.fm/music/Bob+Marley/+images"}}, {"url": "http://userserve-ak.last.fm/serve/500/8733225/Bob+Marley+108681826668.jpg",
101
+ "tags": [], "verified": false, "license": {"type": "unknown", "attribution":
102
+ "last.fm", "url": "http://www.last.fm/music/Bob+Marley/+images"}}]}}'
82
103
  http_version:
83
- recorded_at: Mon, 17 Jun 2013 18:39:13 GMT
84
- recorded_with: VCR 2.4.0
104
+ recorded_at: Mon, 06 Jan 2014 21:26:26 GMT
105
+ recorded_with: VCR 2.8.0
@@ -39,13 +39,19 @@ module Echonest
39
39
  response[entity_name.to_sym][__method__.to_sym]
40
40
  end
41
41
 
42
+ def genres
43
+ genres = []
44
+ response = get('artist/profile', {name: @name, bucket: 'genre'})
45
+ return response[:artist][:genres].collect {|g| g[:name]}
46
+ end
47
+
42
48
  def hotttnesss(options = {})
43
49
  response = get_response(name: @name, type: options.fetch(:type, 'overall'))
44
50
  response[entity_name.to_sym][__method__.to_sym]
45
51
  end
46
52
 
47
- def images
48
- response = get_response(name: @name)
53
+ def images(options = { results: 15 })
54
+ response = get_response(results: options[:results], name: @name)
49
55
  images = []
50
56
  response[:images].each do |i|
51
57
  images << i[:url]
@@ -1,3 +1,3 @@
1
1
  module Echonest
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -81,8 +81,19 @@ describe Echonest::Artist do
81
81
 
82
82
  end
83
83
 
84
- describe '#hotttnesss' do
84
+ describe '#genres' do
85
+ it 'should allow us to find what genre an artist is in' do
86
+ VCR.use_cassette('genres', record: :new_episodes) do
87
+ create_valid_artist
88
+ @a.genres.should be_an Array
89
+ @a.genres.size.should > 0
90
+ @a.genres.should include('rock')
91
+ @a.genres.should include('alternative rock')
92
+ end
93
+ end
94
+ end
85
95
 
96
+ describe '#hotttnesss' do
86
97
  it 'should allow us to find out how hotttt an artist is' do
87
98
  VCR.use_cassette('hotttnesss') do
88
99
  create_valid_artist
@@ -111,6 +122,14 @@ describe Echonest::Artist do
111
122
  end
112
123
  end
113
124
 
125
+ it 'should be able to fetch more than the default amount' do
126
+ VCR.use_cassette('images_more') do
127
+ @a = Echonest::Artist.new('BNOAEBT3IZYZI6WXI', 'Bob Marley')
128
+ images = @a.images(results: 20)
129
+ images.size.should be > 15
130
+ end
131
+ end
132
+
114
133
  it 'should only return urls in the array' do
115
134
  VCR.use_cassette('images') do
116
135
  create_valid_artist
@@ -11,7 +11,7 @@ require 'coveralls'
11
11
  Coveralls.wear!
12
12
 
13
13
  RSpec.configure do |config|
14
-
14
+ config.mock_with :mocha
15
15
  end
16
16
 
17
17
  VCR.configure do |c|
metadata CHANGED
@@ -1,41 +1,70 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: echonest-ruby-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Woolf
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2014-01-05 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - !binary |-
12
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURhRENDQWxDZ0F3SUJB
13
+ Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREE5TVJJd0VBWURWUVFEREFsdFlY
14
+ aGYKZDI5dmJHWXhFakFRQmdvSmtpYUprL0lzWkFFWkZnSnRaVEVUTUJFR0Nn
15
+ bVNKb21UOGl4a0FSa1dBMk52YlRBZQpGdzB4TkRBeU1UUXhNakEwTkRsYUZ3
16
+ MHhOVEF5TVRReE1qQTBORGxhTUQweEVqQVFCZ05WQkFNTUNXMWhlRjkzCmIy
17
+ OXNaakVTTUJBR0NnbVNKb21UOGl4a0FSa1dBbTFsTVJNd0VRWUtDWkltaVpQ
18
+ eUxHUUJHUllEWTI5dE1JSUIKSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4
19
+ QU1JSUJDZ0tDQVFFQXVleVpGNHI2bEVKZHpQbEYyWlhYSklzVQo3djgvenN2
20
+ WENCVWFCS0J3MTZ0U3phZkc1Y3hJVW9TZGdBbFIxSDB1SlpwVlBZbThjUUxt
21
+ ZlJldW9EL2dud3FkCnZsaExCRHZFMFMvU21pbyt6cWp5U0ZnRGJSOGkyRE90
22
+ S1NtNENZdUFTY0JJckZCOWthdE05UzMveWUxRWd3eTQKd2dLc090aDhMTGFG
23
+ R0d0dXJybmdWM3VjekRrREZkdHdIVzBWcW5mV1ZzSFhXRkxrUUE5cThrWDg1
24
+ Y2c1WUFseApSblp1bXFYbzdtUk1VR2hYWVl1M3hsMjR2d01pYW1aSmhjNG5M
25
+ Yk9jano4STdDSTJIVisrRUFhR2k5aXFjZ05sCkdxZkpmQmE4VDZTdHRBY1lm
26
+ MHQweDlUWFVxQ3pXMi9HVFhRY09vc1hRRXFlTTROUGZaODBoY0d6SlBWcmhR
27
+ SUQKQVFBQm8zTXdjVEFKQmdOVkhSTUVBakFBTUFzR0ExVWREd1FFQXdJRXNE
28
+ QWRCZ05WSFE0RUZnUVVVOVRDTmRGWAp1dmhsZmVHSkpFQ2JaYVJucTFFd0d3
29
+ WURWUjBSQkJRd0VvRVFiV0Y0WDNkdmIyeG1RRzFsTG1OdmJUQWJCZ05WCkhS
30
+ SUVGREFTZ1JCdFlYaGZkMjl2YkdaQWJXVXVZMjl0TUEwR0NTcUdTSWIzRFFF
31
+ QkJRVUFBNElCQVFCb1p5TTUKdGp1dVlZUVVYSlRxazM1UG9iZ0dqSW8xZjdz
32
+ Szh5Q1MwajBhL1dLSkRZRjBoZ0NNNDJ3UWMyZ0JHVjBScGN6Sgoyb1JaMHIy
33
+ bjNIMGZ4bGFCdkc1TnRuZURnb0JvRU1Mc1oxY0xpSFJLZkVqTXB6TVlTZ3dW
34
+ UWJFTUNYWXdCZVdhCmZKZnppdkk0VFRvSThaZzZmUWVOMGpqbGg1R2tYWWJ5
35
+ dHVrcDhDQ1hwSlQrQVp0aHB3QmpSd3k3UjUrQzNpd3UKazBLaFp2WlpaTDJr
36
+ bm9QZGlyT2ZrM1loT2h5SEFnQ3N0SUhnZ2Z0bjJnSUVJZ242VW5OODUyd3I2
37
+ Zy9BL2pxcQpEWDJUUGxvOVRac3pqUDFJVXJOVE83QlI0SVBVT3pTQTVOSENu
38
+ NVNKMWU2dGZaQUl1NGMraHJ5a3FGckRZR0NtCjdyejNPTWxJdEhWUWZEWCsK
39
+ LS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
40
+ date: 2014-02-14 00:00:00.000000000 Z
12
41
  dependencies:
13
42
  - !ruby/object:Gem::Dependency
14
43
  name: httparty
15
44
  requirement: !ruby/object:Gem::Requirement
16
45
  requirements:
17
- - - '>='
46
+ - - ! '>='
18
47
  - !ruby/object:Gem::Version
19
48
  version: '0'
20
49
  type: :runtime
21
50
  prerelease: false
22
51
  version_requirements: !ruby/object:Gem::Requirement
23
52
  requirements:
24
- - - '>='
53
+ - - ! '>='
25
54
  - !ruby/object:Gem::Version
26
55
  version: '0'
27
56
  - !ruby/object:Gem::Dependency
28
57
  name: multi_json
29
58
  requirement: !ruby/object:Gem::Requirement
30
59
  requirements:
31
- - - '>='
60
+ - - ! '>='
32
61
  - !ruby/object:Gem::Version
33
62
  version: '0'
34
63
  type: :runtime
35
64
  prerelease: false
36
65
  version_requirements: !ruby/object:Gem::Requirement
37
66
  requirements:
38
- - - '>='
67
+ - - ! '>='
39
68
  - !ruby/object:Gem::Version
40
69
  version: '0'
41
70
  - !ruby/object:Gem::Dependency
@@ -56,14 +85,14 @@ dependencies:
56
85
  name: guard-rspec
57
86
  requirement: !ruby/object:Gem::Requirement
58
87
  requirements:
59
- - - '>='
88
+ - - ! '>='
60
89
  - !ruby/object:Gem::Version
61
90
  version: '0'
62
91
  type: :development
63
92
  prerelease: false
64
93
  version_requirements: !ruby/object:Gem::Requirement
65
94
  requirements:
66
- - - '>='
95
+ - - ! '>='
67
96
  - !ruby/object:Gem::Version
68
97
  version: '0'
69
98
  - !ruby/object:Gem::Dependency
@@ -80,60 +109,46 @@ dependencies:
80
109
  - - ~>
81
110
  - !ruby/object:Gem::Version
82
111
  version: 0.9.1
83
- - !ruby/object:Gem::Dependency
84
- name: mocha
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
112
  - !ruby/object:Gem::Dependency
98
113
  name: vcr
99
114
  requirement: !ruby/object:Gem::Requirement
100
115
  requirements:
101
- - - '>='
116
+ - - ! '>='
102
117
  - !ruby/object:Gem::Version
103
118
  version: '0'
104
119
  type: :development
105
120
  prerelease: false
106
121
  version_requirements: !ruby/object:Gem::Requirement
107
122
  requirements:
108
- - - '>='
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: webmock
113
128
  requirement: !ruby/object:Gem::Requirement
114
129
  requirements:
115
- - - '>='
130
+ - - ! '>='
116
131
  - !ruby/object:Gem::Version
117
132
  version: '0'
118
133
  type: :development
119
134
  prerelease: false
120
135
  version_requirements: !ruby/object:Gem::Requirement
121
136
  requirements:
122
- - - '>='
137
+ - - ! '>='
123
138
  - !ruby/object:Gem::Version
124
139
  version: '0'
125
140
  - !ruby/object:Gem::Dependency
126
141
  name: coveralls
127
142
  requirement: !ruby/object:Gem::Requirement
128
143
  requirements:
129
- - - '>='
144
+ - - ! '>='
130
145
  - !ruby/object:Gem::Version
131
146
  version: '0'
132
147
  type: :development
133
148
  prerelease: false
134
149
  version_requirements: !ruby/object:Gem::Requirement
135
150
  requirements:
136
- - - '>='
151
+ - - ! '>='
137
152
  - !ruby/object:Gem::Version
138
153
  version: '0'
139
154
  description: A simple ruby wrapper around the Echonest API
@@ -150,12 +165,15 @@ files:
150
165
  - LICENSE.txt
151
166
  - README.md
152
167
  - Rakefile
168
+ - certs/maxehmookau.pem
153
169
  - echonest-ruby-api.gemspec
154
170
  - fixtures/vcr_cassettes/biographies.yml
155
171
  - fixtures/vcr_cassettes/blogs.yml
156
172
  - fixtures/vcr_cassettes/familiarity.yml
173
+ - fixtures/vcr_cassettes/genres.yml
157
174
  - fixtures/vcr_cassettes/hotttnesss.yml
158
175
  - fixtures/vcr_cassettes/images.yml
176
+ - fixtures/vcr_cassettes/images_more.yml
159
177
  - fixtures/vcr_cassettes/images_whitespace.yml
160
178
  - fixtures/vcr_cassettes/invalid_api_key_error.yml
161
179
  - fixtures/vcr_cassettes/list_genres.yml
@@ -190,7 +208,6 @@ files:
190
208
  - spec/playlist_spec.rb
191
209
  - spec/song_spec.rb
192
210
  - spec/spec_helper.rb
193
- - tmp/rspec_guard_result
194
211
  homepage: https://github.com/maxehmookau/echonest-ruby-api
195
212
  licenses:
196
213
  - MIT
@@ -201,17 +218,17 @@ require_paths:
201
218
  - lib
202
219
  required_ruby_version: !ruby/object:Gem::Requirement
203
220
  requirements:
204
- - - '>='
221
+ - - ! '>='
205
222
  - !ruby/object:Gem::Version
206
223
  version: '0'
207
224
  required_rubygems_version: !ruby/object:Gem::Requirement
208
225
  requirements:
209
- - - '>='
226
+ - - ! '>='
210
227
  - !ruby/object:Gem::Version
211
228
  version: '0'
212
229
  requirements: []
213
230
  rubyforge_project:
214
- rubygems_version: 2.0.6
231
+ rubygems_version: 2.1.11
215
232
  signing_key:
216
233
  specification_version: 4
217
234
  summary: A gem to get hold of some echonest stuff!
@@ -0,0 +1,2 @@
1
+ 4��J���4�7�V�m����XM�d�j�a�?�%�Q9�B�:BBOA�"��I�Ӊ��Ǻ�Y�84LZ��r����]?�e[A}�١J�5R_�u1z�6����s����������v��r6��2�(p��]�햛�(ą%�O�L�/ЁfG�'��8��d�94+��Q6Yr8h�ҁB��P k���%�a9�.��Ӑ����
2
+ �)R���nW��w���6�#[Y�SnU+2�p��r`�x|s�> �P�
@@ -1 +0,0 @@
1
-