lastfm 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
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.7.0"
15
+ gem.version = "1.8.0"
16
16
 
17
17
  gem.add_dependency "xml-simple"
18
18
  gem.add_dependency "httparty"
@@ -1,6 +1,14 @@
1
1
  class Lastfm
2
2
  module MethodCategory
3
3
  class Artist < Base
4
+ regular_method :get_top_tracks, [:artist], [] do |response|
5
+ response.xml['toptracks']['track']
6
+ end
7
+
8
+ regular_method :get_top_albums, [:artist], [] do |response|
9
+ response.xml['topalbums']['album']
10
+ end
11
+
4
12
  regular_method :get_info, [:artist], [] do |response|
5
13
  response.xml['artist']
6
14
  end