lastfm 1.20.1 → 1.21.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lastfm.gemspec +3 -2
- data/lib/lastfm/method_category/user.rb +10 -0
- data/spec/fixtures/user_get_new_releases.xml +358 -0
- data/spec/method_specs/user_spec.rb +12 -0
- metadata +10 -7
data/lastfm.gemspec
CHANGED
@@ -12,11 +12,12 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
13
13
|
gem.name = %q{lastfm}
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = "1.
|
15
|
+
gem.version = "1.21.0"
|
16
|
+
gem.license = 'MIT'
|
16
17
|
|
17
18
|
gem.add_dependency "xml-simple"
|
18
19
|
gem.add_dependency "httparty"
|
19
|
-
gem.add_dependency 'activesupport', '>= 3.0
|
20
|
+
gem.add_dependency 'activesupport', '>= 3.2.0'
|
20
21
|
|
21
22
|
gem.add_development_dependency('rspec', ['~> 2.8.0'])
|
22
23
|
gem.add_development_dependency('rake')
|
@@ -51,6 +51,16 @@ class Lastfm
|
|
51
51
|
neighbours
|
52
52
|
end
|
53
53
|
|
54
|
+
regular_method(
|
55
|
+
:get_new_releases,
|
56
|
+
:required => [:user],
|
57
|
+
:optional => [
|
58
|
+
[:userecs, nil],
|
59
|
+
]
|
60
|
+
) do |response|
|
61
|
+
response.xml['albums']['album']
|
62
|
+
end
|
63
|
+
|
54
64
|
regular_method(
|
55
65
|
:get_personal_tags,
|
56
66
|
:required => [:user, :tag],
|
@@ -0,0 +1,358 @@
|
|
1
|
+
<lfm status="ok">
|
2
|
+
<albums user="RJ" source="Amazon MP3 (United Kingdom)">
|
3
|
+
<album releasedate="Tue, 20 Aug 2013 00:00:00 +0000">
|
4
|
+
<name>Ten Redux</name>
|
5
|
+
<mbid/>
|
6
|
+
<url>http://www.last.fm/music/Pearl+Jam/Ten+Redux</url>
|
7
|
+
<artist>
|
8
|
+
<name>Pearl Jam</name>
|
9
|
+
<mbid>83b9cbe7-9857-49e2-ab8e-b57b01038103</mbid>
|
10
|
+
<url>http://www.last.fm/music/Pearl+Jam</url>
|
11
|
+
</artist>
|
12
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/90133169.png</image>
|
13
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/90133169.png</image>
|
14
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/90133169.png</image>
|
15
|
+
<image size="extralarge">
|
16
|
+
http://userserve-ak.last.fm/serve/300x300/90133169.png
|
17
|
+
</image>
|
18
|
+
</album>
|
19
|
+
<album releasedate="Tue, 20 Aug 2013 00:00:00 +0000">
|
20
|
+
<name>The Essential Sarah McLachlan</name>
|
21
|
+
<mbid/>
|
22
|
+
<url>
|
23
|
+
http://www.last.fm/music/Sarah+McLachlan/The+Essential+Sarah+McLachlan
|
24
|
+
</url>
|
25
|
+
<artist>
|
26
|
+
<name>Sarah McLachlan</name>
|
27
|
+
<mbid>72cc7556-983e-405e-bb9c-dba9f876dc17</mbid>
|
28
|
+
<url>http://www.last.fm/music/Sarah+McLachlan</url>
|
29
|
+
</artist>
|
30
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92471241.jpg</image>
|
31
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92471241.jpg</image>
|
32
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92471241.jpg</image>
|
33
|
+
<image size="extralarge">
|
34
|
+
http://userserve-ak.last.fm/serve/300x300/92471241.jpg
|
35
|
+
</image>
|
36
|
+
</album>
|
37
|
+
<album releasedate="Tue, 20 Aug 2013 00:00:00 +0000">
|
38
|
+
<name>The Essential Bill Withers</name>
|
39
|
+
<mbid/>
|
40
|
+
<url>
|
41
|
+
http://www.last.fm/music/Bill+Withers/The+Essential+Bill+Withers
|
42
|
+
</url>
|
43
|
+
<artist>
|
44
|
+
<name>Bill Withers</name>
|
45
|
+
<mbid>0c301c75-bd62-4185-ad06-bed7083c3289</mbid>
|
46
|
+
<url>http://www.last.fm/music/Bill+Withers</url>
|
47
|
+
</artist>
|
48
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92471307.jpg</image>
|
49
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92471307.jpg</image>
|
50
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92471307.jpg</image>
|
51
|
+
<image size="extralarge">
|
52
|
+
http://userserve-ak.last.fm/serve/300x300/92471307.jpg
|
53
|
+
</image>
|
54
|
+
</album>
|
55
|
+
<album releasedate="Tue, 20 Aug 2013 00:00:00 +0000">
|
56
|
+
<name>Stand Up</name>
|
57
|
+
<mbid/>
|
58
|
+
<url>
|
59
|
+
http://www.last.fm/music/Five+for+Fighting/Stand+Up
|
60
|
+
</url>
|
61
|
+
<artist>
|
62
|
+
<name>Five for Fighting</name>
|
63
|
+
<mbid>23eeaeaf-423d-4859-8c91-2175ece74287</mbid>
|
64
|
+
<url>http://www.last.fm/music/Five+for+Fighting</url>
|
65
|
+
</artist>
|
66
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92470723.jpg</image>
|
67
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92470723.jpg</image>
|
68
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92470723.jpg</image>
|
69
|
+
<image size="extralarge">
|
70
|
+
http://userserve-ak.last.fm/serve/300x300/92470723.jpg
|
71
|
+
</image>
|
72
|
+
</album>
|
73
|
+
<album releasedate="Wed, 14 Aug 2013 00:00:00 +0000">
|
74
|
+
<name>My Baby's Gone</name>
|
75
|
+
<mbid/>
|
76
|
+
<url>
|
77
|
+
http://www.last.fm/music/Little+Stevie+Wonder/My+Baby%27s+Gone
|
78
|
+
</url>
|
79
|
+
<artist>
|
80
|
+
<name>Little Stevie Wonder</name>
|
81
|
+
<mbid/>
|
82
|
+
<url>
|
83
|
+
http://www.last.fm/music/+noredirect/Little+Stevie+Wonder
|
84
|
+
</url>
|
85
|
+
</artist>
|
86
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92325849.jpg</image>
|
87
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92325849.jpg</image>
|
88
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92325849.jpg</image>
|
89
|
+
<image size="extralarge">
|
90
|
+
http://userserve-ak.last.fm/serve/300x300/92325849.jpg
|
91
|
+
</image>
|
92
|
+
</album>
|
93
|
+
<album releasedate="Tue, 13 Aug 2013 00:00:00 +0000">
|
94
|
+
<name>Sowubhadele - Single</name>
|
95
|
+
<mbid/>
|
96
|
+
<url>
|
97
|
+
http://www.last.fm/music/Summer/Sowubhadele+-+Single
|
98
|
+
</url>
|
99
|
+
<artist>
|
100
|
+
<name>Summer</name>
|
101
|
+
<mbid>4d510a6b-e070-439e-b951-28465ff313cf</mbid>
|
102
|
+
<url>http://www.last.fm/music/Summer</url>
|
103
|
+
</artist>
|
104
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92282753.jpg</image>
|
105
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92282753.jpg</image>
|
106
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92282753.jpg</image>
|
107
|
+
<image size="extralarge">
|
108
|
+
http://userserve-ak.last.fm/serve/300x300/92282753.jpg
|
109
|
+
</image>
|
110
|
+
</album>
|
111
|
+
<album releasedate="Tue, 13 Aug 2013 00:00:00 +0000">
|
112
|
+
<name>Pretty Saro</name>
|
113
|
+
<mbid/>
|
114
|
+
<url>http://www.last.fm/music/Bob+Dylan/Pretty+Saro</url>
|
115
|
+
<artist>
|
116
|
+
<name>Bob Dylan</name>
|
117
|
+
<mbid>25144665-e9ac-416f-aba3-0c8b4ee547d5</mbid>
|
118
|
+
<url>http://www.last.fm/music/Bob+Dylan</url>
|
119
|
+
</artist>
|
120
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92404209.jpg</image>
|
121
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92404209.jpg</image>
|
122
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92404209.jpg</image>
|
123
|
+
<image size="extralarge">
|
124
|
+
http://userserve-ak.last.fm/serve/300x300/92404209.jpg
|
125
|
+
</image>
|
126
|
+
</album>
|
127
|
+
<album releasedate="Tue, 13 Aug 2013 00:00:00 +0000">
|
128
|
+
<name>Live At The Orpheum Theater</name>
|
129
|
+
<mbid/>
|
130
|
+
<url>
|
131
|
+
http://www.last.fm/music/Pearl+Jam/Live+At+The+Orpheum+Theater
|
132
|
+
</url>
|
133
|
+
<artist>
|
134
|
+
<name>Pearl Jam</name>
|
135
|
+
<mbid>83b9cbe7-9857-49e2-ab8e-b57b01038103</mbid>
|
136
|
+
<url>http://www.last.fm/music/Pearl+Jam</url>
|
137
|
+
</artist>
|
138
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92289801.jpg</image>
|
139
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92289801.jpg</image>
|
140
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92289801.jpg</image>
|
141
|
+
<image size="extralarge">
|
142
|
+
http://userserve-ak.last.fm/serve/300x300/92289801.jpg
|
143
|
+
</image>
|
144
|
+
</album>
|
145
|
+
<album releasedate="Tue, 13 Aug 2013 00:00:00 +0000">
|
146
|
+
<name>Fresh Disorders EP</name>
|
147
|
+
<mbid/>
|
148
|
+
<url>
|
149
|
+
http://www.last.fm/music/Destroyer/Fresh+Disorders+EP
|
150
|
+
</url>
|
151
|
+
<artist>
|
152
|
+
<name>Destroyer</name>
|
153
|
+
<mbid>541bacd0-6aeb-4292-8d3a-882e85519953</mbid>
|
154
|
+
<url>http://www.last.fm/music/Destroyer</url>
|
155
|
+
</artist>
|
156
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92510615.jpg</image>
|
157
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92510615.jpg</image>
|
158
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92510615.jpg</image>
|
159
|
+
<image size="extralarge">
|
160
|
+
http://userserve-ak.last.fm/serve/300x300/92510615.jpg
|
161
|
+
</image>
|
162
|
+
</album>
|
163
|
+
<album releasedate="Tue, 13 Aug 2013 00:00:00 +0000">
|
164
|
+
<name>
|
165
|
+
Emotional Creatures (Natural Sound for Unique Emotional Experience)
|
166
|
+
</name>
|
167
|
+
<mbid/>
|
168
|
+
<url>
|
169
|
+
http://www.last.fm/music/Acoustic+Alchemy/Emotional+Creatures+(Natural+Sound+for+Unique+Emotional+Experience)
|
170
|
+
</url>
|
171
|
+
<artist>
|
172
|
+
<name>Acoustic Alchemy</name>
|
173
|
+
<mbid>78de0cb4-245a-4679-9d09-d4f277c58e0e</mbid>
|
174
|
+
<url>http://www.last.fm/music/Acoustic+Alchemy</url>
|
175
|
+
</artist>
|
176
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92466617.jpg</image>
|
177
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92466617.jpg</image>
|
178
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92466617.jpg</image>
|
179
|
+
<image size="extralarge">
|
180
|
+
http://userserve-ak.last.fm/serve/300x300/92466617.jpg
|
181
|
+
</image>
|
182
|
+
</album>
|
183
|
+
<album releasedate="Mon, 12 Aug 2013 00:00:00 +0000">
|
184
|
+
<name>Roar</name>
|
185
|
+
<mbid>571feff4-76c9-49e8-8fb9-04cf265c433c</mbid>
|
186
|
+
<url>http://www.last.fm/music/Katy+Perry/Roar</url>
|
187
|
+
<artist>
|
188
|
+
<name>Katy Perry</name>
|
189
|
+
<mbid>122d63fc-8671-43e4-9752-34e846d62a9c</mbid>
|
190
|
+
<url>http://www.last.fm/music/Katy+Perry</url>
|
191
|
+
</artist>
|
192
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92299593.png</image>
|
193
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92299593.png</image>
|
194
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92299593.png</image>
|
195
|
+
<image size="extralarge">
|
196
|
+
http://userserve-ak.last.fm/serve/300x300/92299593.png
|
197
|
+
</image>
|
198
|
+
</album>
|
199
|
+
<album releasedate="Mon, 12 Aug 2013 00:00:00 +0000">
|
200
|
+
<name>Applause</name>
|
201
|
+
<mbid>c15c3529-0e8e-4cca-a478-1ee3c29bff15</mbid>
|
202
|
+
<url>http://www.last.fm/music/Lady+Gaga/Applause</url>
|
203
|
+
<artist>
|
204
|
+
<name>Lady Gaga</name>
|
205
|
+
<mbid>650e7db6-b795-4eb5-a702-5ea2fc46c848</mbid>
|
206
|
+
<url>http://www.last.fm/music/Lady+Gaga</url>
|
207
|
+
</artist>
|
208
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92277455.png</image>
|
209
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92277455.png</image>
|
210
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92277455.png</image>
|
211
|
+
<image size="extralarge">
|
212
|
+
http://userserve-ak.last.fm/serve/300x300/92277455.png
|
213
|
+
</image>
|
214
|
+
</album>
|
215
|
+
<album releasedate="Sat, 10 Aug 2013 00:00:00 +0000">
|
216
|
+
<name>365, 24-7 - Single</name>
|
217
|
+
<mbid/>
|
218
|
+
<url>http://www.last.fm/music/Summer/365,+24-7+-+Single</url>
|
219
|
+
<artist>
|
220
|
+
<name>Summer</name>
|
221
|
+
<mbid>4d510a6b-e070-439e-b951-28465ff313cf</mbid>
|
222
|
+
<url>http://www.last.fm/music/Summer</url>
|
223
|
+
</artist>
|
224
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92199435.jpg</image>
|
225
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92199435.jpg</image>
|
226
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92199435.jpg</image>
|
227
|
+
<image size="extralarge">
|
228
|
+
http://userserve-ak.last.fm/serve/300x300/92199435.jpg
|
229
|
+
</image>
|
230
|
+
</album>
|
231
|
+
<album releasedate="Thu, 8 Aug 2013 00:00:00 +0000">
|
232
|
+
<name>Killers</name>
|
233
|
+
<mbid/>
|
234
|
+
<url>http://www.last.fm/music/Iron+Maiden/Killers++</url>
|
235
|
+
<artist>
|
236
|
+
<name>Iron Maiden</name>
|
237
|
+
<mbid>7c3762a3-51f8-4cf3-8565-1ee26a90efe2</mbid>
|
238
|
+
<url>http://www.last.fm/music/Iron+Maiden</url>
|
239
|
+
</artist>
|
240
|
+
<image size="small">
|
241
|
+
http://ec1.images-amazon.com/images/P/B000063CP2.01._SCMZZZZZZZ_.jpg
|
242
|
+
</image>
|
243
|
+
<image size="medium">
|
244
|
+
http://ec1.images-amazon.com/images/P/B000063CP2.01._SCMZZZZZZZ_.jpg
|
245
|
+
</image>
|
246
|
+
<image size="large">
|
247
|
+
http://ec1.images-amazon.com/images/P/B000063CP2.01._SCMZZZZZZZ_.jpg
|
248
|
+
</image>
|
249
|
+
<image size="extralarge">
|
250
|
+
http://ec1.images-amazon.com/images/P/B000063CP2.01._SCMZZZZZZZ_.jpg
|
251
|
+
</image>
|
252
|
+
</album>
|
253
|
+
<album releasedate="Thu, 8 Aug 2013 00:00:00 +0000">
|
254
|
+
<name>Ghosts Ep</name>
|
255
|
+
<mbid/>
|
256
|
+
<url>http://www.last.fm/music/Destroyer/Ghosts+Ep</url>
|
257
|
+
<artist>
|
258
|
+
<name>Destroyer</name>
|
259
|
+
<mbid>541bacd0-6aeb-4292-8d3a-882e85519953</mbid>
|
260
|
+
<url>http://www.last.fm/music/Destroyer</url>
|
261
|
+
</artist>
|
262
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92150585.jpg</image>
|
263
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92150585.jpg</image>
|
264
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92150585.jpg</image>
|
265
|
+
<image size="extralarge">
|
266
|
+
http://userserve-ak.last.fm/serve/300x300/92150585.jpg
|
267
|
+
</image>
|
268
|
+
</album>
|
269
|
+
<album releasedate="Thu, 8 Aug 2013 00:00:00 +0000">
|
270
|
+
<name>All Of Me</name>
|
271
|
+
<mbid/>
|
272
|
+
<url>http://www.last.fm/music/John+Legend/All+Of+Me</url>
|
273
|
+
<artist>
|
274
|
+
<name>John Legend</name>
|
275
|
+
<mbid>75a72702-a5ef-4513-bca5-c5b944903546</mbid>
|
276
|
+
<url>http://www.last.fm/music/John+Legend</url>
|
277
|
+
</artist>
|
278
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92224823.jpg</image>
|
279
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92224823.jpg</image>
|
280
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92224823.jpg</image>
|
281
|
+
<image size="extralarge">
|
282
|
+
http://userserve-ak.last.fm/serve/300x300/92224823.jpg
|
283
|
+
</image>
|
284
|
+
</album>
|
285
|
+
<album releasedate="Thu, 8 Aug 2013 00:00:00 +0000">
|
286
|
+
<name>Long Way Home</name>
|
287
|
+
<mbid/>
|
288
|
+
<url>http://www.last.fm/music/Dokken/Long+Way+Home+</url>
|
289
|
+
<artist>
|
290
|
+
<name>Dokken</name>
|
291
|
+
<mbid>09ade3bd-b110-4277-b923-7dc32e6a3f92</mbid>
|
292
|
+
<url>http://www.last.fm/music/Dokken</url>
|
293
|
+
</artist>
|
294
|
+
<image size="small">
|
295
|
+
http://images.amazon.com/images/P/B0000641C9.01._SCMZZZZZZZ_.jpg
|
296
|
+
</image>
|
297
|
+
<image size="medium">
|
298
|
+
http://images.amazon.com/images/P/B0000641C9.01._SCMZZZZZZZ_.jpg
|
299
|
+
</image>
|
300
|
+
<image size="large">
|
301
|
+
http://images.amazon.com/images/P/B0000641C9.01._SCMZZZZZZZ_.jpg
|
302
|
+
</image>
|
303
|
+
<image size="extralarge">
|
304
|
+
http://images.amazon.com/images/P/B0000641C9.01._SCMZZZZZZZ_.jpg
|
305
|
+
</image>
|
306
|
+
</album>
|
307
|
+
<album releasedate="Wed, 7 Aug 2013 00:00:00 +0000">
|
308
|
+
<name>Wait for Me</name>
|
309
|
+
<mbid/>
|
310
|
+
<url>http://www.last.fm/music/Kings+of+Leon/Wait+for+Me</url>
|
311
|
+
<artist>
|
312
|
+
<name>Kings of Leon</name>
|
313
|
+
<mbid>6ffb8ea9-2370-44d8-b678-e9237bbd347b</mbid>
|
314
|
+
<url>http://www.last.fm/music/Kings+of+Leon</url>
|
315
|
+
</artist>
|
316
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92592803.jpg</image>
|
317
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92592803.jpg</image>
|
318
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92592803.jpg</image>
|
319
|
+
<image size="extralarge">
|
320
|
+
http://userserve-ak.last.fm/serve/300x300/92592803.jpg
|
321
|
+
</image>
|
322
|
+
</album>
|
323
|
+
<album releasedate="Tue, 6 Aug 2013 00:00:00 +0000">
|
324
|
+
<name>Invisible City</name>
|
325
|
+
<mbid/>
|
326
|
+
<url>
|
327
|
+
http://www.last.fm/music/Primal+Scream/Invisible+City
|
328
|
+
</url>
|
329
|
+
<artist>
|
330
|
+
<name>Primal Scream</name>
|
331
|
+
<mbid>55704c38-224f-4b75-b29f-d43653f8bc9a</mbid>
|
332
|
+
<url>http://www.last.fm/music/Primal+Scream</url>
|
333
|
+
</artist>
|
334
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92096655.jpg</image>
|
335
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92096655.jpg</image>
|
336
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92096655.jpg</image>
|
337
|
+
<image size="extralarge">
|
338
|
+
http://userserve-ak.last.fm/serve/300x300/92096655.jpg
|
339
|
+
</image>
|
340
|
+
</album>
|
341
|
+
<album releasedate="Mon, 5 Aug 2013 00:00:00 +0000">
|
342
|
+
<name>SilMi</name>
|
343
|
+
<mbid/>
|
344
|
+
<url>http://www.last.fm/music/String/SilMi</url>
|
345
|
+
<artist>
|
346
|
+
<name>String</name>
|
347
|
+
<mbid/>
|
348
|
+
<url>http://www.last.fm/music/+noredirect/String</url>
|
349
|
+
</artist>
|
350
|
+
<image size="small">http://userserve-ak.last.fm/serve/34s/92081175.jpg</image>
|
351
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64s/92081175.jpg</image>
|
352
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/92081175.jpg</image>
|
353
|
+
<image size="extralarge">
|
354
|
+
http://userserve-ak.last.fm/serve/300x300/92081175.jpg
|
355
|
+
</image>
|
356
|
+
</album>
|
357
|
+
</albums>
|
358
|
+
</lfm>
|
@@ -207,6 +207,18 @@ describe '#user' do
|
|
207
207
|
end
|
208
208
|
end
|
209
209
|
|
210
|
+
describe '#get_new_releases' do
|
211
|
+
it 'should get user\'s new releases' do
|
212
|
+
@lastfm.should_receive(:request).with('user.getNewReleases', {
|
213
|
+
:user => 'rj',
|
214
|
+
:userecs => nil
|
215
|
+
}).and_return(make_response('user_get_new_releases'))
|
216
|
+
albums = @lastfm.user.get_new_releases(:user => 'rj')
|
217
|
+
albums.size.should == 20
|
218
|
+
albums[0]['name'].should == 'Ten Redux'
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
210
222
|
describe '#get_recent_tracks' do
|
211
223
|
it 'should get user\'s recent tracks' do
|
212
224
|
@lastfm.should_receive(:request).with('user.getRecentTracks', {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lastfm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xml-simple
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 3.0
|
53
|
+
version: 3.2.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.0
|
61
|
+
version: 3.2.0
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: rspec
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,6 +165,7 @@ files:
|
|
165
165
|
- spec/fixtures/user_get_info.xml
|
166
166
|
- spec/fixtures/user_get_loved_tracks.xml
|
167
167
|
- spec/fixtures/user_get_neighbours.xml
|
168
|
+
- spec/fixtures/user_get_new_releases.xml
|
168
169
|
- spec/fixtures/user_get_personal_tags.xml
|
169
170
|
- spec/fixtures/user_get_personal_tags_albums.xml
|
170
171
|
- spec/fixtures/user_get_personal_tags_artists.xml
|
@@ -198,7 +199,8 @@ files:
|
|
198
199
|
- spec/spec_helper.rb
|
199
200
|
- spec/util_spec.rb
|
200
201
|
homepage: http://github.com/youpy/ruby-lastfm
|
201
|
-
licenses:
|
202
|
+
licenses:
|
203
|
+
- MIT
|
202
204
|
post_install_message:
|
203
205
|
rdoc_options: []
|
204
206
|
require_paths:
|
@@ -211,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
213
|
version: '0'
|
212
214
|
segments:
|
213
215
|
- 0
|
214
|
-
hash:
|
216
|
+
hash: 2108820607274849613
|
215
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
218
|
none: false
|
217
219
|
requirements:
|
@@ -220,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
222
|
version: '0'
|
221
223
|
segments:
|
222
224
|
- 0
|
223
|
-
hash:
|
225
|
+
hash: 2108820607274849613
|
224
226
|
requirements: []
|
225
227
|
rubyforge_project:
|
226
228
|
rubygems_version: 1.8.24
|
@@ -269,6 +271,7 @@ test_files:
|
|
269
271
|
- spec/fixtures/user_get_info.xml
|
270
272
|
- spec/fixtures/user_get_loved_tracks.xml
|
271
273
|
- spec/fixtures/user_get_neighbours.xml
|
274
|
+
- spec/fixtures/user_get_new_releases.xml
|
272
275
|
- spec/fixtures/user_get_personal_tags.xml
|
273
276
|
- spec/fixtures/user_get_personal_tags_albums.xml
|
274
277
|
- spec/fixtures/user_get_personal_tags_artists.xml
|