lastfm 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/lastfm.gemspec +1 -1
- data/lib/lastfm/method_category/artist.rb +4 -0
- data/spec/fixtures/artist_get_top_fans.xml +505 -0
- data/spec/method_specs/artist_spec.rb +12 -0
- metadata +6 -4
data/README.rdoc
CHANGED
@@ -35,6 +35,7 @@ It supports methods which require {authentication}[http://www.last.fm/api/authen
|
|
35
35
|
* {artist.getSimilar}[http://www.last.fm/api/show?service=267]
|
36
36
|
* {artist.getTags}[http://www.last.fm/api/show?service=267]
|
37
37
|
* {artist.getTopAlbums}[http://www.last.fm/api/show/artist.getTopAlbums]
|
38
|
+
* {artist.getTopFans}[http://www.last.fm/api/show/artist.getTopFans]
|
38
39
|
* {artist.getTopTracks}[http://www.last.fm/api/show/artist.getTopTracks]
|
39
40
|
* {artist.search}[http://www.lastfm.jp/api/show/artist.search]
|
40
41
|
|
data/lastfm.gemspec
CHANGED
@@ -12,7 +12,7 @@ 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.13.0"
|
16
16
|
|
17
17
|
gem.add_dependency "xml-simple"
|
18
18
|
gem.add_dependency "httparty"
|
@@ -28,6 +28,10 @@ class Lastfm
|
|
28
28
|
regular_method :get_tags, [:artist], [[:user, nil], [:mbid, nil], [:autocorrect, nil]] do |response|
|
29
29
|
response.xml['tags']['tag']
|
30
30
|
end
|
31
|
+
|
32
|
+
regular_method :get_top_fans, [:artist], [] do |response|
|
33
|
+
response.xml['topfans']['user']
|
34
|
+
end
|
31
35
|
|
32
36
|
regular_method :search, [:artist], [[:limit, nil], [:page, nil]]
|
33
37
|
end
|
@@ -0,0 +1,505 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<lfm status="ok">
|
3
|
+
<topfans artist="Cher">
|
4
|
+
|
5
|
+
<user>
|
6
|
+
<name>D3xperience</name>
|
7
|
+
<realname></realname>
|
8
|
+
<url>http://www.last.fm/user/D3xperience</url>
|
9
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/80734715.jpg</image>
|
10
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/80734715.jpg</image>
|
11
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/80734715.jpg</image>
|
12
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/80734715.jpg</image>
|
13
|
+
<weight>31687500</weight>
|
14
|
+
</user>
|
15
|
+
<user>
|
16
|
+
<name>erykleslima</name>
|
17
|
+
<realname> Mr. Erykles</realname>
|
18
|
+
<url>http://www.last.fm/user/erykleslima</url>
|
19
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/83927907.jpg</image>
|
20
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/83927907.jpg</image>
|
21
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/83927907.jpg</image>
|
22
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/83927907.jpg</image>
|
23
|
+
<weight>17254476</weight>
|
24
|
+
</user>
|
25
|
+
<user>
|
26
|
+
<name>beszedits</name>
|
27
|
+
<realname>Pedro von Beszedits</realname>
|
28
|
+
<url>http://www.last.fm/user/beszedits</url>
|
29
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/60655867.jpg</image>
|
30
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/60655867.jpg</image>
|
31
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/60655867.jpg</image>
|
32
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/60655867.jpg</image>
|
33
|
+
<weight>5759455</weight>
|
34
|
+
</user>
|
35
|
+
<user>
|
36
|
+
<name>Toshi_0</name>
|
37
|
+
<realname>♥ Mini ♥ </realname>
|
38
|
+
<url>http://www.last.fm/user/Toshi_0</url>
|
39
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/82863557.png</image>
|
40
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/82863557.png</image>
|
41
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/82863557.png</image>
|
42
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/82863557.png</image>
|
43
|
+
<weight>5408000</weight>
|
44
|
+
</user>
|
45
|
+
<user>
|
46
|
+
<name>rafyrafy</name>
|
47
|
+
<realname>rafael</realname>
|
48
|
+
<url>http://www.last.fm/user/rafyrafy</url>
|
49
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/71710920.jpg</image>
|
50
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/71710920.jpg</image>
|
51
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/71710920.jpg</image>
|
52
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/71710920.jpg</image>
|
53
|
+
<weight>4410000</weight>
|
54
|
+
</user>
|
55
|
+
<user>
|
56
|
+
<name>juhmalibu</name>
|
57
|
+
<realname>Juliano Souza</realname>
|
58
|
+
<url>http://www.last.fm/user/juhmalibu</url>
|
59
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/81427287.png</image>
|
60
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/81427287.png</image>
|
61
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/81427287.png</image>
|
62
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/81427287.png</image>
|
63
|
+
<weight>3203333</weight>
|
64
|
+
</user>
|
65
|
+
<user>
|
66
|
+
<name>igorgeneration</name>
|
67
|
+
<realname>Igor Barbosa Pereira</realname>
|
68
|
+
<url>http://www.last.fm/user/igorgeneration</url>
|
69
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/83704241.gif</image>
|
70
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/83704241.gif</image>
|
71
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/83704241.gif</image>
|
72
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/83704241.gif</image>
|
73
|
+
<weight>2727797</weight>
|
74
|
+
</user>
|
75
|
+
<user>
|
76
|
+
<name>SuckMyMonsta</name>
|
77
|
+
<realname>Nick Jonas</realname>
|
78
|
+
<url>http://www.last.fm/user/SuckMyMonsta</url>
|
79
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/74001624.jpg</image>
|
80
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/74001624.jpg</image>
|
81
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/74001624.jpg</image>
|
82
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/74001624.jpg</image>
|
83
|
+
<weight>2595679</weight>
|
84
|
+
</user>
|
85
|
+
<user>
|
86
|
+
<name>Lukaabb</name>
|
87
|
+
<realname>Eduardo Montufar</realname>
|
88
|
+
<url>http://www.last.fm/user/Lukaabb</url>
|
89
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/82463643.png</image>
|
90
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/82463643.png</image>
|
91
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/82463643.png</image>
|
92
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/82463643.png</image>
|
93
|
+
<weight>2397203</weight>
|
94
|
+
</user>
|
95
|
+
<user>
|
96
|
+
<name>lopesvico</name>
|
97
|
+
<realname>Vinícius Lopes</realname>
|
98
|
+
<url>http://www.last.fm/user/lopesvico</url>
|
99
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/73062382.jpg</image>
|
100
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/73062382.jpg</image>
|
101
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/73062382.jpg</image>
|
102
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/73062382.jpg</image>
|
103
|
+
<weight>1834089</weight>
|
104
|
+
</user>
|
105
|
+
<user>
|
106
|
+
<name>adamplyler</name>
|
107
|
+
<realname>adam</realname>
|
108
|
+
<url>http://www.last.fm/user/adamplyler</url>
|
109
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/83951273.gif</image>
|
110
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/83951273.gif</image>
|
111
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/83951273.gif</image>
|
112
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/83951273.gif</image>
|
113
|
+
<weight>1825151</weight>
|
114
|
+
</user>
|
115
|
+
<user>
|
116
|
+
<name>Stteph</name>
|
117
|
+
<realname></realname>
|
118
|
+
<url>http://www.last.fm/user/Stteph</url>
|
119
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/83708469.gif</image>
|
120
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/83708469.gif</image>
|
121
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/83708469.gif</image>
|
122
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/83708469.gif</image>
|
123
|
+
<weight>1554432</weight>
|
124
|
+
</user>
|
125
|
+
<user>
|
126
|
+
<name>OlgaDidenko</name>
|
127
|
+
<realname>Olga</realname>
|
128
|
+
<url>http://www.last.fm/user/OlgaDidenko</url>
|
129
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/82201941.jpg</image>
|
130
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/82201941.jpg</image>
|
131
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/82201941.jpg</image>
|
132
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/82201941.jpg</image>
|
133
|
+
<weight>1484848</weight>
|
134
|
+
</user>
|
135
|
+
<user>
|
136
|
+
<name>kreavey</name>
|
137
|
+
<realname></realname>
|
138
|
+
<url>http://www.last.fm/user/kreavey</url>
|
139
|
+
<image size="small"></image>
|
140
|
+
<image size="medium"></image>
|
141
|
+
<image size="large"></image>
|
142
|
+
<image size="extralarge"></image>
|
143
|
+
<weight>1422769</weight>
|
144
|
+
</user>
|
145
|
+
<user>
|
146
|
+
<name>jnfbn</name>
|
147
|
+
<realname>Follow This You Bitches !</realname>
|
148
|
+
<url>http://www.last.fm/user/jnfbn</url>
|
149
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/80105175.jpg</image>
|
150
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/80105175.jpg</image>
|
151
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/80105175.jpg</image>
|
152
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/80105175.jpg</image>
|
153
|
+
<weight>1269508</weight>
|
154
|
+
</user>
|
155
|
+
<user>
|
156
|
+
<name>meghenk</name>
|
157
|
+
<realname></realname>
|
158
|
+
<url>http://www.last.fm/user/meghenk</url>
|
159
|
+
<image size="small"></image>
|
160
|
+
<image size="medium"></image>
|
161
|
+
<image size="large"></image>
|
162
|
+
<image size="extralarge"></image>
|
163
|
+
<weight>1241212</weight>
|
164
|
+
</user>
|
165
|
+
<user>
|
166
|
+
<name>nataliston</name>
|
167
|
+
<realname>Natália Oliveira</realname>
|
168
|
+
<url>http://www.last.fm/user/nataliston</url>
|
169
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/81843997.png</image>
|
170
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/81843997.png</image>
|
171
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/81843997.png</image>
|
172
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/81843997.png</image>
|
173
|
+
<weight>1235970</weight>
|
174
|
+
</user>
|
175
|
+
<user>
|
176
|
+
<name>viiictorc</name>
|
177
|
+
<realname>Victor</realname>
|
178
|
+
<url>http://www.last.fm/user/viiictorc</url>
|
179
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/77986744.jpg</image>
|
180
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/77986744.jpg</image>
|
181
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/77986744.jpg</image>
|
182
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/77986744.jpg</image>
|
183
|
+
<weight>1165650</weight>
|
184
|
+
</user>
|
185
|
+
<user>
|
186
|
+
<name>FelipeSafadinho</name>
|
187
|
+
<realname></realname>
|
188
|
+
<url>http://www.last.fm/user/FelipeSafadinho</url>
|
189
|
+
<image size="small"></image>
|
190
|
+
<image size="medium"></image>
|
191
|
+
<image size="large"></image>
|
192
|
+
<image size="extralarge"></image>
|
193
|
+
<weight>1126666</weight>
|
194
|
+
</user>
|
195
|
+
<user>
|
196
|
+
<name>anthx86</name>
|
197
|
+
<realname>Anthony</realname>
|
198
|
+
<url>http://www.last.fm/user/anthx86</url>
|
199
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/61943925.jpg</image>
|
200
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/61943925.jpg</image>
|
201
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/61943925.jpg</image>
|
202
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/61943925.jpg</image>
|
203
|
+
<weight>1118904</weight>
|
204
|
+
</user>
|
205
|
+
<user>
|
206
|
+
<name>nawhoyamito</name>
|
207
|
+
<realname>in a place without time and space</realname>
|
208
|
+
<url>http://www.last.fm/user/nawhoyamito</url>
|
209
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/76609526.jpg</image>
|
210
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/76609526.jpg</image>
|
211
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/76609526.jpg</image>
|
212
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/76609526.jpg</image>
|
213
|
+
<weight>1080000</weight>
|
214
|
+
</user>
|
215
|
+
<user>
|
216
|
+
<name>lonleee</name>
|
217
|
+
<realname></realname>
|
218
|
+
<url>http://www.last.fm/user/lonleee</url>
|
219
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/61488755.jpg</image>
|
220
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/61488755.jpg</image>
|
221
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/61488755.jpg</image>
|
222
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/61488755.jpg</image>
|
223
|
+
<weight>1000000</weight>
|
224
|
+
</user>
|
225
|
+
<user>
|
226
|
+
<name>BlueLadyy</name>
|
227
|
+
<realname>Beth</realname>
|
228
|
+
<url>http://www.last.fm/user/BlueLadyy</url>
|
229
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/63259493.jpg</image>
|
230
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/63259493.jpg</image>
|
231
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/63259493.jpg</image>
|
232
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/63259493.jpg</image>
|
233
|
+
<weight>963333</weight>
|
234
|
+
</user>
|
235
|
+
<user>
|
236
|
+
<name>gerard1985</name>
|
237
|
+
<realname></realname>
|
238
|
+
<url>http://www.last.fm/user/gerard1985</url>
|
239
|
+
<image size="small"></image>
|
240
|
+
<image size="medium"></image>
|
241
|
+
<image size="large"></image>
|
242
|
+
<image size="extralarge"></image>
|
243
|
+
<weight>902500</weight>
|
244
|
+
</user>
|
245
|
+
<user>
|
246
|
+
<name>megacreep</name>
|
247
|
+
<realname></realname>
|
248
|
+
<url>http://www.last.fm/user/megacreep</url>
|
249
|
+
<image size="small"></image>
|
250
|
+
<image size="medium"></image>
|
251
|
+
<image size="large"></image>
|
252
|
+
<image size="extralarge"></image>
|
253
|
+
<weight>853333</weight>
|
254
|
+
</user>
|
255
|
+
<user>
|
256
|
+
<name>Emma_21</name>
|
257
|
+
<realname>Emma</realname>
|
258
|
+
<url>http://www.last.fm/user/Emma_21</url>
|
259
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/73973740.jpg</image>
|
260
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/73973740.jpg</image>
|
261
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/73973740.jpg</image>
|
262
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/73973740.jpg</image>
|
263
|
+
<weight>818690</weight>
|
264
|
+
</user>
|
265
|
+
<user>
|
266
|
+
<name>JayAnz</name>
|
267
|
+
<realname>Jay</realname>
|
268
|
+
<url>http://www.last.fm/user/JayAnz</url>
|
269
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/65554874.jpg</image>
|
270
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/65554874.jpg</image>
|
271
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/65554874.jpg</image>
|
272
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/65554874.jpg</image>
|
273
|
+
<weight>810000</weight>
|
274
|
+
</user>
|
275
|
+
<user>
|
276
|
+
<name>RaphaelMacieira</name>
|
277
|
+
<realname>Raphael Douglas Macieira</realname>
|
278
|
+
<url>http://www.last.fm/user/RaphaelMacieira</url>
|
279
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/84041559.gif</image>
|
280
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/84041559.gif</image>
|
281
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/84041559.gif</image>
|
282
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/84041559.gif</image>
|
283
|
+
<weight>800178</weight>
|
284
|
+
</user>
|
285
|
+
<user>
|
286
|
+
<name>HOTNSPICY41609</name>
|
287
|
+
<realname></realname>
|
288
|
+
<url>http://www.last.fm/user/HOTNSPICY41609</url>
|
289
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/80496729.jpg</image>
|
290
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/80496729.jpg</image>
|
291
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/80496729.jpg</image>
|
292
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/80496729.jpg</image>
|
293
|
+
<weight>782041</weight>
|
294
|
+
</user>
|
295
|
+
<user>
|
296
|
+
<name>LeandroLGSG</name>
|
297
|
+
<realname>Leandro Lemos Costa</realname>
|
298
|
+
<url>http://www.last.fm/user/LeandroLGSG</url>
|
299
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/76689566.jpg</image>
|
300
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/76689566.jpg</image>
|
301
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/76689566.jpg</image>
|
302
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/76689566.jpg</image>
|
303
|
+
<weight>775641</weight>
|
304
|
+
</user>
|
305
|
+
<user>
|
306
|
+
<name>nvadera</name>
|
307
|
+
<realname>Nicky Vadera</realname>
|
308
|
+
<url>http://www.last.fm/user/nvadera</url>
|
309
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/71581902.jpg</image>
|
310
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/71581902.jpg</image>
|
311
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/71581902.jpg</image>
|
312
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/71581902.jpg</image>
|
313
|
+
<weight>766901</weight>
|
314
|
+
</user>
|
315
|
+
<user>
|
316
|
+
<name>rainy-dog</name>
|
317
|
+
<realname>sébastien</realname>
|
318
|
+
<url>http://www.last.fm/user/rainy-dog</url>
|
319
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/84073949.jpg</image>
|
320
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/84073949.jpg</image>
|
321
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/84073949.jpg</image>
|
322
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/84073949.jpg</image>
|
323
|
+
<weight>698061</weight>
|
324
|
+
</user>
|
325
|
+
<user>
|
326
|
+
<name>meatloaf_xp</name>
|
327
|
+
<realname>Kelly</realname>
|
328
|
+
<url>http://www.last.fm/user/meatloaf_xp</url>
|
329
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/45576209.jpg</image>
|
330
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/45576209.jpg</image>
|
331
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/45576209.jpg</image>
|
332
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/45576209.jpg</image>
|
333
|
+
<weight>690260</weight>
|
334
|
+
</user>
|
335
|
+
<user>
|
336
|
+
<name>JasonTrawick</name>
|
337
|
+
<realname>Felipe Medeiros</realname>
|
338
|
+
<url>http://www.last.fm/user/JasonTrawick</url>
|
339
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/84132435.png</image>
|
340
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/84132435.png</image>
|
341
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/84132435.png</image>
|
342
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/84132435.png</image>
|
343
|
+
<weight>658557</weight>
|
344
|
+
</user>
|
345
|
+
<user>
|
346
|
+
<name>belladiestel</name>
|
347
|
+
<realname></realname>
|
348
|
+
<url>http://www.last.fm/user/belladiestel</url>
|
349
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/83632955.gif</image>
|
350
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/83632955.gif</image>
|
351
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/83632955.gif</image>
|
352
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/83632955.gif</image>
|
353
|
+
<weight>649446</weight>
|
354
|
+
</user>
|
355
|
+
<user>
|
356
|
+
<name>DirrtySlave</name>
|
357
|
+
<realname>Marcelo Henrique</realname>
|
358
|
+
<url>http://www.last.fm/user/DirrtySlave</url>
|
359
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/83904541.gif</image>
|
360
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/83904541.gif</image>
|
361
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/83904541.gif</image>
|
362
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/83904541.gif</image>
|
363
|
+
<weight>617786</weight>
|
364
|
+
</user>
|
365
|
+
<user>
|
366
|
+
<name>MmmichaellL</name>
|
367
|
+
<realname>No Gimmicks</realname>
|
368
|
+
<url>http://www.last.fm/user/MmmichaellL</url>
|
369
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/60618963.jpg</image>
|
370
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/60618963.jpg</image>
|
371
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/60618963.jpg</image>
|
372
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/60618963.jpg</image>
|
373
|
+
<weight>590445</weight>
|
374
|
+
</user>
|
375
|
+
<user>
|
376
|
+
<name>devilwearsYSL</name>
|
377
|
+
<realname>w i l l i a m</realname>
|
378
|
+
<url>http://www.last.fm/user/devilwearsYSL</url>
|
379
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/81093691.gif</image>
|
380
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/81093691.gif</image>
|
381
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/81093691.gif</image>
|
382
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/81093691.gif</image>
|
383
|
+
<weight>585614</weight>
|
384
|
+
</user>
|
385
|
+
<user>
|
386
|
+
<name>zwwilson</name>
|
387
|
+
<realname>Zachary</realname>
|
388
|
+
<url>http://www.last.fm/user/zwwilson</url>
|
389
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/81877801.jpg</image>
|
390
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/81877801.jpg</image>
|
391
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/81877801.jpg</image>
|
392
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/81877801.jpg</image>
|
393
|
+
<weight>560769</weight>
|
394
|
+
</user>
|
395
|
+
<user>
|
396
|
+
<name>tabtarget</name>
|
397
|
+
<realname></realname>
|
398
|
+
<url>http://www.last.fm/user/tabtarget</url>
|
399
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/7397377.jpg</image>
|
400
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/7397377.jpg</image>
|
401
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/7397377.jpg</image>
|
402
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/7397377.jpg</image>
|
403
|
+
<weight>516350</weight>
|
404
|
+
</user>
|
405
|
+
<user>
|
406
|
+
<name>ringstrom67</name>
|
407
|
+
<realname></realname>
|
408
|
+
<url>http://www.last.fm/user/ringstrom67</url>
|
409
|
+
<image size="small"></image>
|
410
|
+
<image size="medium"></image>
|
411
|
+
<image size="large"></image>
|
412
|
+
<image size="extralarge"></image>
|
413
|
+
<weight>512000</weight>
|
414
|
+
</user>
|
415
|
+
<user>
|
416
|
+
<name>adil6060</name>
|
417
|
+
<realname></realname>
|
418
|
+
<url>http://www.last.fm/user/adil6060</url>
|
419
|
+
<image size="small"></image>
|
420
|
+
<image size="medium"></image>
|
421
|
+
<image size="large"></image>
|
422
|
+
<image size="extralarge"></image>
|
423
|
+
<weight>490000</weight>
|
424
|
+
</user>
|
425
|
+
<user>
|
426
|
+
<name>mnennig</name>
|
427
|
+
<realname></realname>
|
428
|
+
<url>http://www.last.fm/user/mnennig</url>
|
429
|
+
<image size="small"></image>
|
430
|
+
<image size="medium"></image>
|
431
|
+
<image size="large"></image>
|
432
|
+
<image size="extralarge"></image>
|
433
|
+
<weight>471153</weight>
|
434
|
+
</user>
|
435
|
+
<user>
|
436
|
+
<name>FellipeSantos</name>
|
437
|
+
<realname>Love is a ruthless game, unless you play it good and right</realname>
|
438
|
+
<url>http://www.last.fm/user/FellipeSantos</url>
|
439
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/83744577.gif</image>
|
440
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/83744577.gif</image>
|
441
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/83744577.gif</image>
|
442
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/83744577.gif</image>
|
443
|
+
<weight>441664</weight>
|
444
|
+
</user>
|
445
|
+
<user>
|
446
|
+
<name>RogerZanca</name>
|
447
|
+
<realname>ROGER</realname>
|
448
|
+
<url>http://www.last.fm/user/RogerZanca</url>
|
449
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/83884325.png</image>
|
450
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/83884325.png</image>
|
451
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/83884325.png</image>
|
452
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/83884325.png</image>
|
453
|
+
<weight>419753</weight>
|
454
|
+
</user>
|
455
|
+
<user>
|
456
|
+
<name>tuulKorval</name>
|
457
|
+
<realname></realname>
|
458
|
+
<url>http://www.last.fm/user/tuulKorval</url>
|
459
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/28410685.jpg</image>
|
460
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/28410685.jpg</image>
|
461
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/28410685.jpg</image>
|
462
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/28410685.jpg</image>
|
463
|
+
<weight>418064</weight>
|
464
|
+
</user>
|
465
|
+
<user>
|
466
|
+
<name>garyx3</name>
|
467
|
+
<realname></realname>
|
468
|
+
<url>http://www.last.fm/user/garyx3</url>
|
469
|
+
<image size="small"></image>
|
470
|
+
<image size="medium"></image>
|
471
|
+
<image size="large"></image>
|
472
|
+
<image size="extralarge"></image>
|
473
|
+
<weight>413444</weight>
|
474
|
+
</user>
|
475
|
+
<user>
|
476
|
+
<name>DALRE</name>
|
477
|
+
<realname>Becky</realname>
|
478
|
+
<url>http://www.last.fm/user/DALRE</url>
|
479
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/76845166.jpg</image>
|
480
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/76845166.jpg</image>
|
481
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/76845166.jpg</image>
|
482
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/76845166.jpg</image>
|
483
|
+
<weight>396932</weight>
|
484
|
+
</user>
|
485
|
+
<user>
|
486
|
+
<name>BreakfastPills</name>
|
487
|
+
<realname>Aaron</realname>
|
488
|
+
<url>http://www.last.fm/user/BreakfastPills</url>
|
489
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/4633336.jpg</image>
|
490
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/4633336.jpg</image>
|
491
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/4633336.jpg</image>
|
492
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/4633336.jpg</image>
|
493
|
+
<weight>396433</weight>
|
494
|
+
</user>
|
495
|
+
<user>
|
496
|
+
<name>lucsfree</name>
|
497
|
+
<realname>Lucas Freitas</realname>
|
498
|
+
<url>http://www.last.fm/user/lucsfree</url>
|
499
|
+
<image size="small">http://userserve-ak.last.fm/serve/34/63223277.gif</image>
|
500
|
+
<image size="medium">http://userserve-ak.last.fm/serve/64/63223277.gif</image>
|
501
|
+
<image size="large">http://userserve-ak.last.fm/serve/126/63223277.gif</image>
|
502
|
+
<image size="extralarge">http://userserve-ak.last.fm/serve/252/63223277.gif</image>
|
503
|
+
<weight>387731</weight>
|
504
|
+
</user>
|
505
|
+
</topfans></lfm>
|
@@ -29,6 +29,18 @@ describe '#artist' do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
+
describe '#get_top_fans' do
|
33
|
+
it 'should get top fans' do
|
34
|
+
@lastfm.should_receive(:request).with('artist.getTopFans', {
|
35
|
+
:artist => 'Cher'
|
36
|
+
}).and_return(make_response('artist_get_top_fans'))
|
37
|
+
|
38
|
+
top_fans = @lastfm.artist.get_top_fans(:artist => 'Cher')
|
39
|
+
top_fans.should have(50).items
|
40
|
+
top_fans.first['name'].should eql('D3xperience')
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
32
44
|
describe '#get_info' do
|
33
45
|
it 'should get info' do
|
34
46
|
@lastfm.should_receive(:request).with('artist.getInfo', {
|
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.13.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: 2012-11-
|
12
|
+
date: 2012-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xml-simple
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- spec/fixtures/artist_get_similar.xml
|
129
129
|
- spec/fixtures/artist_get_tags.xml
|
130
130
|
- spec/fixtures/artist_get_top_albums.xml
|
131
|
+
- spec/fixtures/artist_get_top_fans.xml
|
131
132
|
- spec/fixtures/artist_get_top_tracks.xml
|
132
133
|
- spec/fixtures/artist_search.xml
|
133
134
|
- spec/fixtures/chart_get_hyped_artists.xml
|
@@ -193,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
194
|
version: '0'
|
194
195
|
segments:
|
195
196
|
- 0
|
196
|
-
hash:
|
197
|
+
hash: 1026746517880820910
|
197
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
199
|
none: false
|
199
200
|
requirements:
|
@@ -202,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
203
|
version: '0'
|
203
204
|
segments:
|
204
205
|
- 0
|
205
|
-
hash:
|
206
|
+
hash: 1026746517880820910
|
206
207
|
requirements: []
|
207
208
|
rubyforge_project:
|
208
209
|
rubygems_version: 1.8.24
|
@@ -217,6 +218,7 @@ test_files:
|
|
217
218
|
- spec/fixtures/artist_get_similar.xml
|
218
219
|
- spec/fixtures/artist_get_tags.xml
|
219
220
|
- spec/fixtures/artist_get_top_albums.xml
|
221
|
+
- spec/fixtures/artist_get_top_fans.xml
|
220
222
|
- spec/fixtures/artist_get_top_tracks.xml
|
221
223
|
- spec/fixtures/artist_search.xml
|
222
224
|
- spec/fixtures/chart_get_hyped_artists.xml
|