rockstar 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Rockstar
2
2
 
3
+ [![Build Status](http://travis-ci.org/bitboxer/rockstar.png)](http://travis-ci.org/bitboxer/rockstar)
4
+
3
5
  Rockstar is a wrapper for the last.fm audioscrobbler web services (http://www.last.fm/api/). This gem is based on the scrobbler
4
6
  gem by John Nunemaker and was updated to use the 2.0 version of the last.fm api
5
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -58,7 +58,7 @@
58
58
  # (62.160%) Christina Aguilera
59
59
  module Rockstar
60
60
  class Artist < Base
61
- attr_accessor :name, :mbid, :playcount, :rank, :url, :thumbnail
61
+ attr_accessor :name, :mbid, :listenercount, :playcount, :rank, :url, :thumbnail
62
62
  attr_accessor :summary, :content, :images, :count, :streamable
63
63
  attr_accessor :chartposition
64
64
 
@@ -78,8 +78,9 @@ module Rockstar
78
78
  end
79
79
 
80
80
  def initialize(name, o={})
81
- raise ArgumentError, "Name is required" if name.blank?
81
+ raise ArgumentError, "Name or mbid is required" if name.blank? && o[:mbid].blank?
82
82
  @name = name
83
+ @mbid = o[:mbid] unless o[:mbid].nil?
83
84
 
84
85
  options = {:include_info => false}.merge(o)
85
86
  load_info if options[:include_info]
@@ -87,13 +88,16 @@ module Rockstar
87
88
 
88
89
  def load_info(xml=nil)
89
90
  unless xml
90
- doc = self.class.fetch_and_parse("artist.getInfo", {:artist => @name})
91
+ params = @mbid.blank? ? {:artist => @name} : {:mbid => @mbid}
92
+
93
+ doc = self.class.fetch_and_parse("artist.getInfo", params)
91
94
  xml = (doc / :artist).first
92
95
  end
93
96
 
94
97
  return self if xml.nil?
95
98
 
96
99
  self.mbid = (xml).at(:mbid).inner_html if (xml).at(:mbid)
100
+ self.listenercount = (xml).at(:listeners).inner_html if (xml).at(:listeners)
97
101
  self.playcount = (xml).at(:playcount).inner_html if (xml).at(:playcount)
98
102
  self.chartposition = self.rank = xml['rank'] if xml['rank']
99
103
  self.chartposition = self.rank = (xml).at(:rank).inner_html if (xml).at(:rank) if self.rank.nil?
@@ -222,6 +222,10 @@ module Rockstar
222
222
  def tags(force=false)
223
223
  get_instance("track.getTopTags", :tags, :tag, {:track => @name, :artist => @artist}, force)
224
224
  end
225
+
226
+ def similar(limit = 10, force = false)
227
+ get_instance('track.getSimilar', :similar, :track, {:track => @name, :artist => @artist, :limit => limit}, force)
228
+ end
225
229
 
226
230
  # The session_key is returned by auth.session.key
227
231
  def love(session_key)
@@ -255,6 +259,5 @@ module Rockstar
255
259
  :mbid => @mbid
256
260
  })
257
261
  end
258
-
259
262
  end
260
263
  end
data/rockstar.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rockstar}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bodo Tasche"]
12
- s.date = %q{2011-06-09}
12
+ s.date = %q{2011-08-15}
13
13
  s.description = %q{This gem is an updated version of jnunemakers scrobbler gem. Rockstar uses v2.0 of the last.fm api.}
14
14
  s.email = %q{bodo@bitboxer.de}
15
15
  s.extra_rdoc_files = [
@@ -60,6 +60,7 @@ Gem::Specification.new do |s|
60
60
  "test/fixtures/xml/artist/getevents_artist_Metallica.xml",
61
61
  "test/fixtures/xml/artist/getimages_artist_Metallica_page_2.xml",
62
62
  "test/fixtures/xml/artist/getinfo_artist_Metallica.xml",
63
+ "test/fixtures/xml/artist/getinfo_mbid_65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab.xml",
63
64
  "test/fixtures/xml/artist/getsimilar_artist_Metallica.xml",
64
65
  "test/fixtures/xml/artist/gettopalbums_artist_Metallica.xml",
65
66
  "test/fixtures/xml/artist/gettopfans_artist_Metallica.xml",
@@ -72,8 +73,10 @@ Gem::Specification.new do |s|
72
73
  "test/fixtures/xml/tag/gettoptags.xml",
73
74
  "test/fixtures/xml/tag/gettoptracks_tag_rock.xml",
74
75
  "test/fixtures/xml/track/getinfo_artist_Carrie_Underwood_track_Before_He_Cheats.xml",
76
+ "test/fixtures/xml/track/getsimilar_artist_Carrie_Underwood_limit_10_track_Before_He_Cheats.xml",
75
77
  "test/fixtures/xml/track/gettopfans_artist_Carrie_Underwood_track_Before_He_Cheats.xml",
76
78
  "test/fixtures/xml/track/gettoptags_artist_Carrie_Underwood_track_Before_He_Cheats.xml",
79
+ "test/fixtures/xml/track/gettoptags_artist_Carrie_Underwood_track_Wasted.xml",
77
80
  "test/fixtures/xml/track/love_artist_Carrie_Underwood_sk_tag_track_Before_He_Cheats.xml",
78
81
  "test/fixtures/xml/track/updatenowplaying_artist_Carrie_Underwood_sk_tag_track_Before_He_Cheats.xml",
79
82
  "test/fixtures/xml/user/getevents_sk_token_user_bodot.xml",
@@ -115,7 +118,7 @@ Gem::Specification.new do |s|
115
118
  ]
116
119
  s.homepage = %q{http://github.com/bitboxer/rockstar}
117
120
  s.require_paths = ["lib"]
118
- s.rubygems_version = %q{1.7.2}
121
+ s.rubygems_version = %q{1.6.2}
119
122
  s.summary = %q{wrapper for audioscrobbler (last.fm) web services}
120
123
  s.test_files = [
121
124
  "examples/album.rb",
@@ -0,0 +1,115 @@
1
+ <lfm status="ok">
2
+ <artist>
3
+ <name>Metallica</name>
4
+ <mbid>65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab</mbid>
5
+ <url>http://www.last.fm/music/Metallica</url>
6
+ <image size="small">http://userserve-ak.last.fm/serve/34/3679639.jpg</image>
7
+ <image size="medium">http://userserve-ak.last.fm/serve/64/3679639.jpg</image>
8
+ <image size="large">http://userserve-ak.last.fm/serve/126/3679639.jpg</image>
9
+ <image size="extralarge">http://userserve-ak.last.fm/serve/252/3679639.jpg</image>
10
+ <image size="mega">http://userserve-ak.last.fm/serve/_/3679639/Metallica+++Jason.jpg</image>
11
+ <streamable>1</streamable>
12
+ <stats>
13
+ <listeners>1873516</listeners>
14
+ <playcount>160744699</playcount>
15
+ </stats>
16
+
17
+ <similar>
18
+ <artist>
19
+ <name>Megadeth</name>
20
+ <url>http://www.last.fm/music/Megadeth</url>
21
+ <image size="small">http://userserve-ak.last.fm/serve/34/39420767.jpg</image>
22
+ <image size="medium">http://userserve-ak.last.fm/serve/64/39420767.jpg</image>
23
+ <image size="large">http://userserve-ak.last.fm/serve/126/39420767.jpg</image>
24
+ <image size="extralarge">http://userserve-ak.last.fm/serve/252/39420767.jpg</image>
25
+ <image size="mega">http://userserve-ak.last.fm/serve/500/39420767/Megadeth+Hangar18single.jpg</image>
26
+ </artist>
27
+ <artist>
28
+ <name>Slayer</name>
29
+ <url>http://www.last.fm/music/Slayer</url>
30
+ <image size="small">http://userserve-ak.last.fm/serve/34/12401617.jpg</image>
31
+ <image size="medium">http://userserve-ak.last.fm/serve/64/12401617.jpg</image>
32
+ <image size="large">http://userserve-ak.last.fm/serve/126/12401617.jpg</image>
33
+ <image size="extralarge">http://userserve-ak.last.fm/serve/252/12401617.jpg</image>
34
+ <image size="mega">http://userserve-ak.last.fm/serve/500/12401617/Slayer+attack.jpg</image>
35
+ </artist>
36
+ <artist>
37
+ <name>Iron Maiden</name>
38
+ <url>http://www.last.fm/music/Iron+Maiden</url>
39
+ <image size="small">http://userserve-ak.last.fm/serve/34/23808077.jpg</image>
40
+ <image size="medium">http://userserve-ak.last.fm/serve/64/23808077.jpg</image>
41
+ <image size="large">http://userserve-ak.last.fm/serve/126/23808077.jpg</image>
42
+ <image size="extralarge">http://userserve-ak.last.fm/serve/252/23808077.jpg</image>
43
+ <image size="mega">http://userserve-ak.last.fm/serve/500/23808077/Iron+Maiden+hahahahihihyk2.jpg</image>
44
+ </artist>
45
+ <artist>
46
+ <name>Anthrax</name>
47
+ <url>http://www.last.fm/music/Anthrax</url>
48
+ <image size="small">http://userserve-ak.last.fm/serve/34/34381515.jpg</image>
49
+ <image size="medium">http://userserve-ak.last.fm/serve/64/34381515.jpg</image>
50
+ <image size="large">http://userserve-ak.last.fm/serve/126/34381515.jpg</image>
51
+ <image size="extralarge">http://userserve-ak.last.fm/serve/252/34381515.jpg</image>
52
+ <image size="mega">http://userserve-ak.last.fm/serve/_/34381515/Anthrax.jpg</image>
53
+ </artist>
54
+ <artist>
55
+ <name>Pantera</name>
56
+ <url>http://www.last.fm/music/Pantera</url>
57
+ <image size="small">http://userserve-ak.last.fm/serve/34/34169679.jpg</image>
58
+ <image size="medium">http://userserve-ak.last.fm/serve/64/34169679.jpg</image>
59
+ <image size="large">http://userserve-ak.last.fm/serve/126/34169679.jpg</image>
60
+ <image size="extralarge">http://userserve-ak.last.fm/serve/252/34169679.jpg</image>
61
+ <image size="mega">http://userserve-ak.last.fm/serve/_/34169679/Pantera.jpg</image>
62
+ </artist>
63
+ </similar>
64
+ <tags>
65
+ <tag>
66
+ <name>thrash metal</name>
67
+ <url>http://www.last.fm/tag/thrash%20metal</url>
68
+ </tag>
69
+ <tag>
70
+ <name>metal</name>
71
+ <url>http://www.last.fm/tag/metal</url>
72
+ </tag>
73
+ <tag>
74
+ <name>heavy metal</name>
75
+ <url>http://www.last.fm/tag/heavy%20metal</url>
76
+ </tag>
77
+ <tag>
78
+ <name>hard rock</name>
79
+ <url>http://www.last.fm/tag/hard%20rock</url>
80
+ </tag>
81
+ <tag>
82
+ <name>rock</name>
83
+ <url>http://www.last.fm/tag/rock</url>
84
+ </tag>
85
+ </tags>
86
+ <bio>
87
+ <published>Sat, 21 Aug 2010 09:46:32 +0000</published>
88
+ <summary><![CDATA[Metallica is an American metal band formed in 1981 in Los Angeles, California, United States when drummer Lars Ulrich posted an advertisement in The Recycler. Metallica’s line-up originally consisted of Ulrich, rhythm guitarist and vocalist James Hetfield, and lead guitarist Dave Mustaine. Mustaine was later fired due to problems with alcoholism and drug addiction - he went on to form the band Megadeth. Exodus guitarist Kirk Hammett took his place.]]></summary>
89
+ <content><![CDATA[Metallica is an American metal band formed in 1981 in Los Angeles, California, United States when drummer Lars Ulrich posted an advertisement in The Recycler. Metallica’s line-up originally consisted of Ulrich, rhythm guitarist and vocalist James Hetfield, and lead guitarist Dave Mustaine. Mustaine was later fired due to problems with alcoholism and drug addiction - he went on to form the band Megadeth. Exodus guitarist Kirk Hammett took his place. Metallica has been through several bassists, including Ron McGovney, Cliff Burton (who died in a bus crash while the band was on tour), and Jason Newsted. The current bassist is Robert Trujillo, who joined in 2003.
90
+
91
+ Metallica’s early releases included fast tempos, instrumentals, and aggressive musicianship that placed them as one of the “big four” of the thrash metal sub-genre alongside Slayer, Megadeth, and Anthrax. The band earned a growing fan base in the underground music community and critical acclaim, with the 1986 release Master of Puppets described as one of the most influential and “heavy” metal albums. The band achieved substantial commercial success with Metallica (1991), which debuted at number one on the Billboard 200. With this release the band expanded its musical direction resulting in an album that appealed to a more mainstream audience.
92
+
93
+ In 2000, Metallica was among several artists who filed a lawsuit against Napster for sharing the band’s copyright-protected material for free without the band members’ consent. A settlement was reached, and Napster became a pay-to-use service. Despite reaching number one on the Billboard 200, the release of St. Anger alienated many fans with the exclusion of guitar solos and the “steel-sounding” snare drum. A film titled Some Kind of Monster documented the recording process of St. Anger.
94
+
95
+ Metallica has released nine studio albums, two live albums, two EPs, twenty-two music videos, and forty-four singles. The band has won nine Grammy Awards, and has had five consecutive albums debut at number one on the Billboard 200, making Metallica the only band ever to do so. The band’s 1991 album, Metallica, has sold over 15 million copies in the United States, and 22 million copies worldwide, which makes it the 25th-highest-selling album in the country. The band has sold an estimated 100 million records worldwide as of the release of their latest album Death Magnetic. As of September 2008, Metallica is the fourth highest-selling music artist since the SoundScan era began tracking sales on May 25, 1991, selling a total of 51,136,000 albums in the United States alone.
96
+
97
+ Metallica was inducted into the Rock and Roll Hall of Fame in 2009. Metallica organised a brand new festival. They called it Sonishpere. Several cities in Europe were chosen by the band.
98
+
99
+ <strong>Current members:</strong>
100
+
101
+ <a href="http://www.last.fm/music/James+Hetfield" class="bbcode_artist">James Hetfield</a> – lead vocals, rhythm guitar (1981–present)
102
+ <a href="http://www.last.fm/music/Lars+Ulrich" class="bbcode_artist">Lars Ulrich</a> – drums, percussion (1981–present)
103
+ <a href="http://www.last.fm/music/Kirk+Hammett" class="bbcode_artist">Kirk Hammett</a> – lead guitar, backing vocals (1983–present)
104
+ <a href="http://www.last.fm/music/Robert+Trujillo" class="bbcode_artist">Robert Trujillo</a> – bass, backing vocals (2003–present).
105
+
106
+ <strong>Former members:</strong>
107
+
108
+ <a href="http://www.last.fm/music/Ron+McGovney" class="bbcode_artist">Ron McGovney</a>– bass (1982)
109
+ <a href="http://www.last.fm/music/Dave+Mustaine" class="bbcode_artist">Dave Mustaine</a> – lead guitar, backing vocals (1982–1983)
110
+ <a href="http://www.last.fm/music/Cliff+Burton" class="bbcode_artist">Cliff Burton</a> – bass, backing vocals (1982–1986)
111
+ <a href="http://www.last.fm/music/Jason+Newsted" class="bbcode_artist">Jason Newsted</a> – bass, backing vocals (1986–2001).
112
+
113
+ User-contributed text is available under the Creative Commons By-SA License and may also be available under the GNU FDL.]]></content>
114
+ </bio>
115
+ </artist></lfm>
@@ -0,0 +1,185 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <lfm status="ok">
3
+ <similartracks track="Before He Cheats" artist="Carrie Underwood">
4
+ <track>
5
+ <name>Wasted</name>
6
+ <playcount>415619</playcount>
7
+ <mbid></mbid>
8
+ <match>1</match>
9
+ <url>http://www.last.fm/music/Carrie+Underwood/_/Wasted</url>
10
+ <streamable fulltrack="0">1</streamable>
11
+ <duration>198000</duration>
12
+ <artist>
13
+ <name>Carrie Underwood</name>
14
+ <mbid>70f0e309-5418-49b6-a130-666e2f76eecd</mbid>
15
+ <url>http://www.last.fm/music/Carrie+Underwood</url>
16
+ </artist>
17
+ <image size="small">http://userserve-ak.last.fm/serve/34s/56864167.png</image>
18
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/56864167.png</image>
19
+ <image size="large">http://userserve-ak.last.fm/serve/126/56864167.png</image>
20
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/56864167.png</image>
21
+ </track>
22
+ <track>
23
+ <name>Jesus, Take The Wheel</name>
24
+ <playcount>496271</playcount>
25
+ <mbid></mbid>
26
+ <match>0.956042</match>
27
+ <url>http://www.last.fm/music/Carrie+Underwood/_/Jesus%2C+Take+The+Wheel</url>
28
+ <streamable fulltrack="0">1</streamable>
29
+ <duration>198000</duration>
30
+ <artist>
31
+ <name>Carrie Underwood</name>
32
+ <mbid>70f0e309-5418-49b6-a130-666e2f76eecd</mbid>
33
+ <url>http://www.last.fm/music/Carrie+Underwood</url>
34
+ </artist>
35
+ <image size="small">http://userserve-ak.last.fm/serve/34s/56864167.png</image>
36
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/56864167.png</image>
37
+ <image size="large">http://userserve-ak.last.fm/serve/126/56864167.png</image>
38
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/56864167.png</image>
39
+ </track>
40
+ <track>
41
+ <name>Best Days Of Your Life</name>
42
+ <playcount>291638</playcount>
43
+ <mbid></mbid>
44
+ <match>0.37044</match>
45
+ <url>http://www.last.fm/music/Kellie+Pickler/_/Best+Days+Of+Your+Life</url>
46
+ <streamable fulltrack="0">1</streamable>
47
+ <duration>198000</duration>
48
+ <artist>
49
+ <name>Kellie Pickler</name>
50
+ <mbid>4c567ed6-8bc9-447a-bbd5-1dce18e4ee81</mbid>
51
+ <url>http://www.last.fm/music/Kellie+Pickler</url>
52
+ </artist>
53
+ <image size="small">http://userserve-ak.last.fm/serve/34s/61132419.png</image>
54
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/61132419.png</image>
55
+ <image size="large">http://userserve-ak.last.fm/serve/126/61132419.png</image>
56
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/61132419.png</image>
57
+ </track>
58
+ <track>
59
+ <name>White Liar</name>
60
+ <playcount>183011</playcount>
61
+ <mbid></mbid>
62
+ <match>0.360565</match>
63
+ <url>http://www.last.fm/music/Miranda+Lambert/_/White+Liar</url>
64
+ <streamable fulltrack="0">1</streamable>
65
+ <duration>198000</duration>
66
+ <artist>
67
+ <name>Miranda Lambert</name>
68
+ <mbid>4eca1aa0-c79f-481b-af8a-4a2d6c41aa5c</mbid>
69
+ <url>http://www.last.fm/music/Miranda+Lambert</url>
70
+ </artist>
71
+ <image size="small">http://userserve-ak.last.fm/serve/34s/39900229.png</image>
72
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/39900229.png</image>
73
+ <image size="large">http://userserve-ak.last.fm/serve/126/39900229.png</image>
74
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/39900229.png</image>
75
+ </track>
76
+ <track>
77
+ <name>Red High Heels</name>
78
+ <playcount>207428</playcount>
79
+ <mbid></mbid>
80
+ <match>0.315918</match>
81
+ <url>http://www.last.fm/music/Kellie+Pickler/_/Red+High+Heels</url>
82
+ <streamable fulltrack="0">1</streamable>
83
+ <duration>198000</duration>
84
+ <artist>
85
+ <name>Kellie Pickler</name>
86
+ <mbid>4c567ed6-8bc9-447a-bbd5-1dce18e4ee81</mbid>
87
+ <url>http://www.last.fm/music/Kellie+Pickler</url>
88
+ </artist>
89
+ <image size="small">http://userserve-ak.last.fm/serve/34s/61132345.png</image>
90
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/61132345.png</image>
91
+ <image size="large">http://userserve-ak.last.fm/serve/126/61132345.png</image>
92
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/61132345.png</image>
93
+ </track>
94
+ <track>
95
+ <name>Our Song</name>
96
+ <playcount>1173965</playcount>
97
+ <mbid></mbid>
98
+ <match>0.31363</match>
99
+ <url>http://www.last.fm/music/Taylor+Swift/_/Our+Song</url>
100
+ <streamable fulltrack="0">1</streamable>
101
+ <duration>198000</duration>
102
+ <artist>
103
+ <name>Taylor Swift</name>
104
+ <mbid>20244d07-534f-4eff-b4d4-930878889970</mbid>
105
+ <url>http://www.last.fm/music/Taylor+Swift</url>
106
+ </artist>
107
+ <image size="small">http://userserve-ak.last.fm/serve/34s/52729343.png</image>
108
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/52729343.png</image>
109
+ <image size="large">http://userserve-ak.last.fm/serve/126/52729343.png</image>
110
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/52729343.png</image>
111
+ </track>
112
+ <track>
113
+ <name>Gunpowder &amp; Lead</name>
114
+ <playcount>271195</playcount>
115
+ <mbid></mbid>
116
+ <match>0.313587</match>
117
+ <url>http://www.last.fm/music/Miranda+Lambert/_/Gunpowder%2B%2526%2BLead</url>
118
+ <streamable fulltrack="0">0</streamable>
119
+ <duration>198000</duration>
120
+ <artist>
121
+ <name>Miranda Lambert</name>
122
+ <mbid>4eca1aa0-c79f-481b-af8a-4a2d6c41aa5c</mbid>
123
+ <url>http://www.last.fm/music/Miranda+Lambert</url>
124
+ </artist>
125
+ <image size="small">http://userserve-ak.last.fm/serve/34s/43093351.png</image>
126
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/43093351.png</image>
127
+ <image size="large">http://userserve-ak.last.fm/serve/126/43093351.png</image>
128
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/43093351.png</image>
129
+ </track>
130
+ <track>
131
+ <name>Picture To Burn</name>
132
+ <playcount>746468</playcount>
133
+ <mbid></mbid>
134
+ <match>0.31257</match>
135
+ <url>http://www.last.fm/music/Taylor+Swift/_/Picture+To+Burn</url>
136
+ <streamable fulltrack="0">1</streamable>
137
+ <duration>198000</duration>
138
+ <artist>
139
+ <name>Taylor Swift</name>
140
+ <mbid>20244d07-534f-4eff-b4d4-930878889970</mbid>
141
+ <url>http://www.last.fm/music/Taylor+Swift</url>
142
+ </artist>
143
+ <image size="small">http://userserve-ak.last.fm/serve/34s/40509025.png</image>
144
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/40509025.png</image>
145
+ <image size="large">http://userserve-ak.last.fm/serve/126/40509025.png</image>
146
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/40509025.png</image>
147
+ </track>
148
+ <track>
149
+ <name>I Run To You</name>
150
+ <playcount>341484</playcount>
151
+ <mbid></mbid>
152
+ <match>0.308107</match>
153
+ <url>http://www.last.fm/music/Lady+Antebellum/_/I+Run+To+You</url>
154
+ <streamable fulltrack="0">0</streamable>
155
+ <duration>198000</duration>
156
+ <artist>
157
+ <name>Lady Antebellum</name>
158
+ <mbid></mbid>
159
+ <url>http://www.last.fm/music/Lady+Antebellum</url>
160
+ </artist>
161
+ <image size="small">http://userserve-ak.last.fm/serve/34s/44489415.png</image>
162
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/44489415.png</image>
163
+ <image size="large">http://userserve-ak.last.fm/serve/126/44489415.png</image>
164
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/44489415.png</image>
165
+ </track>
166
+ <track>
167
+ <name>American Honey</name>
168
+ <playcount>361728</playcount>
169
+ <mbid></mbid>
170
+ <match>0.281092</match>
171
+ <url>http://www.last.fm/music/Lady+Antebellum/_/American+Honey</url>
172
+ <streamable fulltrack="0">0</streamable>
173
+ <duration>198000</duration>
174
+ <artist>
175
+ <name>Lady Antebellum</name>
176
+ <mbid></mbid>
177
+ <url>http://www.last.fm/music/Lady+Antebellum</url>
178
+ </artist>
179
+ <image size="small">http://userserve-ak.last.fm/serve/34s/44489415.png</image>
180
+ <image size="medium">http://userserve-ak.last.fm/serve/64s/44489415.png</image>
181
+ <image size="large">http://userserve-ak.last.fm/serve/126/44489415.png</image>
182
+ <image size="extralarge">http://userserve-ak.last.fm/serve/300x300/44489415.png</image>
183
+ </track>
184
+ </similartracks></lfm>
185
+
@@ -0,0 +1,405 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <lfm status="ok">
3
+ <toptags artist="Carrie Underwood" track="Wasted">
4
+ <tag>
5
+ <name>country</name>
6
+ <count>100</count>
7
+ <url>http://www.last.fm/tag/country</url>
8
+ </tag> <tag>
9
+ <name>Carrie Underwood</name>
10
+ <count>44</count>
11
+ <url>http://www.last.fm/tag/carrie%20underwood</url>
12
+ </tag> <tag>
13
+ <name>pop</name>
14
+ <count>27</count>
15
+ <url>http://www.last.fm/tag/pop</url>
16
+ </tag> <tag>
17
+ <name>female vocalists</name>
18
+ <count>26</count>
19
+ <url>http://www.last.fm/tag/female%20vocalists</url>
20
+ </tag> <tag>
21
+ <name>American Idol</name>
22
+ <count>18</count>
23
+ <url>http://www.last.fm/tag/american%20idol</url>
24
+ </tag> <tag>
25
+ <name>My Country</name>
26
+ <count>9</count>
27
+ <url>http://www.last.fm/tag/my%20country</url>
28
+ </tag> <tag>
29
+ <name>She Is Exuberant</name>
30
+ <count>7</count>
31
+ <url>http://www.last.fm/tag/she%20is%20exuberant</url>
32
+ </tag> <tag>
33
+ <name>Toth</name>
34
+ <count>7</count>
35
+ <url>http://www.last.fm/tag/toth</url>
36
+ </tag> <tag>
37
+ <name>00s</name>
38
+ <count>6</count>
39
+ <url>http://www.last.fm/tag/00s</url>
40
+ </tag> <tag>
41
+ <name>american</name>
42
+ <count>6</count>
43
+ <url>http://www.last.fm/tag/american</url>
44
+ </tag> <tag>
45
+ <name>favorites</name>
46
+ <count>5</count>
47
+ <url>http://www.last.fm/tag/favorites</url>
48
+ </tag> <tag>
49
+ <name>country pop</name>
50
+ <count>3</count>
51
+ <url>http://www.last.fm/tag/country%20pop</url>
52
+ </tag> <tag>
53
+ <name>female</name>
54
+ <count>3</count>
55
+ <url>http://www.last.fm/tag/female</url>
56
+ </tag> <tag>
57
+ <name>heartache</name>
58
+ <count>2</count>
59
+ <url>http://www.last.fm/tag/heartache</url>
60
+ </tag> <tag>
61
+ <name>Favorite</name>
62
+ <count>2</count>
63
+ <url>http://www.last.fm/tag/favorite</url>
64
+ </tag> <tag>
65
+ <name>texas</name>
66
+ <count>2</count>
67
+ <url>http://www.last.fm/tag/texas</url>
68
+ </tag> <tag>
69
+ <name>Favourite Songs</name>
70
+ <count>2</count>
71
+ <url>http://www.last.fm/tag/favourite%20songs</url>
72
+ </tag> <tag>
73
+ <name>melancholy</name>
74
+ <count>2</count>
75
+ <url>http://www.last.fm/tag/melancholy</url>
76
+ </tag> <tag>
77
+ <name>dusty</name>
78
+ <count>2</count>
79
+ <url>http://www.last.fm/tag/dusty</url>
80
+ </tag> <tag>
81
+ <name>Cool country</name>
82
+ <count>2</count>
83
+ <url>http://www.last.fm/tag/cool%20country</url>
84
+ </tag> <tag>
85
+ <name>female vocals</name>
86
+ <count>2</count>
87
+ <url>http://www.last.fm/tag/female%20vocals</url>
88
+ </tag> <tag>
89
+ <name>love hurts</name>
90
+ <count>2</count>
91
+ <url>http://www.last.fm/tag/love%20hurts</url>
92
+ </tag> <tag>
93
+ <name>2005</name>
94
+ <count>2</count>
95
+ <url>http://www.last.fm/tag/2005</url>
96
+ </tag> <tag>
97
+ <name>depression 2008</name>
98
+ <count>2</count>
99
+ <url>http://www.last.fm/tag/depression%202008</url>
100
+ </tag> <tag>
101
+ <name>brenham</name>
102
+ <count>2</count>
103
+ <url>http://www.last.fm/tag/brenham</url>
104
+ </tag> <tag>
105
+ <name>new country</name>
106
+ <count>1</count>
107
+ <url>http://www.last.fm/tag/new%20country</url>
108
+ </tag> <tag>
109
+ <name>pop country</name>
110
+ <count>1</count>
111
+ <url>http://www.last.fm/tag/pop%20country</url>
112
+ </tag> <tag>
113
+ <name>modern country</name>
114
+ <count>1</count>
115
+ <url>http://www.last.fm/tag/modern%20country</url>
116
+ </tag> <tag>
117
+ <name>Women Rock</name>
118
+ <count>1</count>
119
+ <url>http://www.last.fm/tag/women%20rock</url>
120
+ </tag> <tag>
121
+ <name>inspiring</name>
122
+ <count>1</count>
123
+ <url>http://www.last.fm/tag/inspiring</url>
124
+ </tag> <tag>
125
+ <name>Female Voices</name>
126
+ <count>1</count>
127
+ <url>http://www.last.fm/tag/female%20voices</url>
128
+ </tag> <tag>
129
+ <name>fav</name>
130
+ <count>1</count>
131
+ <url>http://www.last.fm/tag/fav</url>
132
+ </tag> <tag>
133
+ <name>I dont want to spend my life jaded</name>
134
+ <count>1</count>
135
+ <url>http://www.last.fm/tag/i%20dont%20want%20to%20spend%20my%20life%20jaded</url>
136
+ </tag> <tag>
137
+ <name>fun</name>
138
+ <count>1</count>
139
+ <url>http://www.last.fm/tag/fun</url>
140
+ </tag> <tag>
141
+ <name>Awesome</name>
142
+ <count>1</count>
143
+ <url>http://www.last.fm/tag/awesome</url>
144
+ </tag> <tag>
145
+ <name>female vocalist</name>
146
+ <count>1</count>
147
+ <url>http://www.last.fm/tag/female%20vocalist</url>
148
+ </tag> <tag>
149
+ <name>Love</name>
150
+ <count>1</count>
151
+ <url>http://www.last.fm/tag/love</url>
152
+ </tag> <tag>
153
+ <name>heartbroken</name>
154
+ <count>1</count>
155
+ <url>http://www.last.fm/tag/heartbroken</url>
156
+ </tag> <tag>
157
+ <name>Uplifting</name>
158
+ <count>1</count>
159
+ <url>http://www.last.fm/tag/uplifting</url>
160
+ </tag> <tag>
161
+ <name>female country vocalists</name>
162
+ <count>0</count>
163
+ <url>http://www.last.fm/tag/female%20country%20vocalists</url>
164
+ </tag> <tag>
165
+ <name>karaoke worthy</name>
166
+ <count>0</count>
167
+ <url>http://www.last.fm/tag/karaoke%20worthy</url>
168
+ </tag> <tag>
169
+ <name>AMANDA123</name>
170
+ <count>0</count>
171
+ <url>http://www.last.fm/tag/amanda123</url>
172
+ </tag> <tag>
173
+ <name>country1</name>
174
+ <count>0</count>
175
+ <url>http://www.last.fm/tag/country1</url>
176
+ </tag> <tag>
177
+ <name>lady antabellum</name>
178
+ <count>0</count>
179
+ <url>http://www.last.fm/tag/lady%20antabellum</url>
180
+ </tag> <tag>
181
+ <name>Garage Rock</name>
182
+ <count>0</count>
183
+ <url>http://www.last.fm/tag/garage%20rock</url>
184
+ </tag> <tag>
185
+ <name>saweet</name>
186
+ <count>0</count>
187
+ <url>http://www.last.fm/tag/saweet</url>
188
+ </tag> <tag>
189
+ <name>Todays Country</name>
190
+ <count>0</count>
191
+ <url>http://www.last.fm/tag/todays%20country</url>
192
+ </tag> <tag>
193
+ <name>favorite carrie underwood song</name>
194
+ <count>0</count>
195
+ <url>http://www.last.fm/tag/favorite%20carrie%20underwood%20song</url>
196
+ </tag> <tag>
197
+ <name>long distance love</name>
198
+ <count>0</count>
199
+ <url>http://www.last.fm/tag/long%20distance%20love</url>
200
+ </tag> <tag>
201
+ <name>heart ache</name>
202
+ <count>0</count>
203
+ <url>http://www.last.fm/tag/heart%20ache</url>
204
+ </tag> <tag>
205
+ <name>there is a part of lyrics i really like</name>
206
+ <count>0</count>
207
+ <url>http://www.last.fm/tag/there%20is%20a%20part%20of%20lyrics%20i%20really%20like</url>
208
+ </tag> <tag>
209
+ <name>good singing songs</name>
210
+ <count>0</count>
211
+ <url>http://www.last.fm/tag/good%20singing%20songs</url>
212
+ </tag> <tag>
213
+ <name>Some Hearts</name>
214
+ <count>0</count>
215
+ <url>http://www.last.fm/tag/some%20hearts</url>
216
+ </tag> <tag>
217
+ <name>fossa</name>
218
+ <count>0</count>
219
+ <url>http://www.last.fm/tag/fossa</url>
220
+ </tag> <tag>
221
+ <name>2007</name>
222
+ <count>0</count>
223
+ <url>http://www.last.fm/tag/2007</url>
224
+ </tag> <tag>
225
+ <name>commercial pop</name>
226
+ <count>0</count>
227
+ <url>http://www.last.fm/tag/commercial%20pop</url>
228
+ </tag> <tag>
229
+ <name>nice vocal</name>
230
+ <count>0</count>
231
+ <url>http://www.last.fm/tag/nice%20vocal</url>
232
+ </tag> <tag>
233
+ <name>us top 40</name>
234
+ <count>0</count>
235
+ <url>http://www.last.fm/tag/us%20top%2040</url>
236
+ </tag> <tag>
237
+ <name>Wasted-Carrie Underwood</name>
238
+ <count>0</count>
239
+ <url>http://www.last.fm/tag/wasted-carrie%20underwood</url>
240
+ </tag> <tag>
241
+ <name>my fav girls</name>
242
+ <count>0</count>
243
+ <url>http://www.last.fm/tag/my%20fav%20girls</url>
244
+ </tag> <tag>
245
+ <name>marvy</name>
246
+ <count>0</count>
247
+ <url>http://www.last.fm/tag/marvy</url>
248
+ </tag> <tag>
249
+ <name>fucked-up country</name>
250
+ <count>0</count>
251
+ <url>http://www.last.fm/tag/fucked-up%20country</url>
252
+ </tag> <tag>
253
+ <name>ballad country</name>
254
+ <count>0</count>
255
+ <url>http://www.last.fm/tag/ballad%20country</url>
256
+ </tag> <tag>
257
+ <name>loved tracks ocam</name>
258
+ <count>0</count>
259
+ <url>http://www.last.fm/tag/loved%20tracks%20ocam</url>
260
+ </tag> <tag>
261
+ <name>female pop rock ocam</name>
262
+ <count>0</count>
263
+ <url>http://www.last.fm/tag/female%20pop%20rock%20ocam</url>
264
+ </tag> <tag>
265
+ <name>powerful ladies</name>
266
+ <count>0</count>
267
+ <url>http://www.last.fm/tag/powerful%20ladies</url>
268
+ </tag> <tag>
269
+ <name>soltando a franga</name>
270
+ <count>0</count>
271
+ <url>http://www.last.fm/tag/soltando%20a%20franga</url>
272
+ </tag> <tag>
273
+ <name>girly sing alongs</name>
274
+ <count>0</count>
275
+ <url>http://www.last.fm/tag/girly%20sing%20alongs</url>
276
+ </tag> <tag>
277
+ <name>2008 cma fest</name>
278
+ <count>0</count>
279
+ <url>http://www.last.fm/tag/2008%20cma%20fest</url>
280
+ </tag> <tag>
281
+ <name>cw2</name>
282
+ <count>0</count>
283
+ <url>http://www.last.fm/tag/cw2</url>
284
+ </tag> <tag>
285
+ <name>Carrie Underwood - Wasted</name>
286
+ <count>0</count>
287
+ <url>http://www.last.fm/tag/carrie%20underwood%20-%20wasted</url>
288
+ </tag> <tag>
289
+ <name>Carry Underwood - Wasted</name>
290
+ <count>0</count>
291
+ <url>http://www.last.fm/tag/carry%20underwood%20-%20wasted</url>
292
+ </tag> <tag>
293
+ <name>albebrandi</name>
294
+ <count>0</count>
295
+ <url>http://www.last.fm/tag/albebrandi</url>
296
+ </tag> <tag>
297
+ <name>carrie underwood wasted</name>
298
+ <count>0</count>
299
+ <url>http://www.last.fm/tag/carrie%20underwood%20%20wasted</url>
300
+ </tag> <tag>
301
+ <name>florentina</name>
302
+ <count>0</count>
303
+ <url>http://www.last.fm/tag/florentina</url>
304
+ </tag> <tag>
305
+ <name>great memories with my geeem</name>
306
+ <count>0</count>
307
+ <url>http://www.last.fm/tag/great%20memories%20with%20my%20geeem</url>
308
+ </tag> <tag>
309
+ <name>00s country</name>
310
+ <count>0</count>
311
+ <url>http://www.last.fm/tag/00s%20country</url>
312
+ </tag> <tag>
313
+ <name>in the hills</name>
314
+ <count>0</count>
315
+ <url>http://www.last.fm/tag/in%20the%20hills</url>
316
+ </tag> <tag>
317
+ <name>upbeat</name>
318
+ <count>0</count>
319
+ <url>http://www.last.fm/tag/upbeat</url>
320
+ </tag> <tag>
321
+ <name>idk</name>
322
+ <count>0</count>
323
+ <url>http://www.last.fm/tag/idk</url>
324
+ </tag> <tag>
325
+ <name>life</name>
326
+ <count>0</count>
327
+ <url>http://www.last.fm/tag/life</url>
328
+ </tag> <tag>
329
+ <name>makes me cry</name>
330
+ <count>0</count>
331
+ <url>http://www.last.fm/tag/makes%20me%20cry</url>
332
+ </tag> <tag>
333
+ <name>classic country</name>
334
+ <count>0</count>
335
+ <url>http://www.last.fm/tag/classic%20country</url>
336
+ </tag> <tag>
337
+ <name>beautiful</name>
338
+ <count>0</count>
339
+ <url>http://www.last.fm/tag/beautiful</url>
340
+ </tag> <tag>
341
+ <name>Rainy Day</name>
342
+ <count>0</count>
343
+ <url>http://www.last.fm/tag/rainy%20day</url>
344
+ </tag> <tag>
345
+ <name>amazing</name>
346
+ <count>0</count>
347
+ <url>http://www.last.fm/tag/amazing</url>
348
+ </tag> <tag>
349
+ <name>Shania Twain</name>
350
+ <count>0</count>
351
+ <url>http://www.last.fm/tag/shania%20twain</url>
352
+ </tag> <tag>
353
+ <name>great song</name>
354
+ <count>0</count>
355
+ <url>http://www.last.fm/tag/great%20song</url>
356
+ </tag> <tag>
357
+ <name>deep</name>
358
+ <count>0</count>
359
+ <url>http://www.last.fm/tag/deep</url>
360
+ </tag> <tag>
361
+ <name>addicting</name>
362
+ <count>0</count>
363
+ <url>http://www.last.fm/tag/addicting</url>
364
+ </tag> <tag>
365
+ <name>my favorite</name>
366
+ <count>0</count>
367
+ <url>http://www.last.fm/tag/my%20favorite</url>
368
+ </tag> <tag>
369
+ <name>women</name>
370
+ <count>0</count>
371
+ <url>http://www.last.fm/tag/women</url>
372
+ </tag> <tag>
373
+ <name>Ballad</name>
374
+ <count>0</count>
375
+ <url>http://www.last.fm/tag/ballad</url>
376
+ </tag> <tag>
377
+ <name>nostalgia</name>
378
+ <count>0</count>
379
+ <url>http://www.last.fm/tag/nostalgia</url>
380
+ </tag> <tag>
381
+ <name>My Favs</name>
382
+ <count>0</count>
383
+ <url>http://www.last.fm/tag/my%20favs</url>
384
+ </tag> <tag>
385
+ <name>Buffy</name>
386
+ <count>0</count>
387
+ <url>http://www.last.fm/tag/buffy</url>
388
+ </tag> <tag>
389
+ <name>Breakup songs</name>
390
+ <count>0</count>
391
+ <url>http://www.last.fm/tag/breakup%20songs</url>
392
+ </tag> <tag>
393
+ <name>love songs</name>
394
+ <count>0</count>
395
+ <url>http://www.last.fm/tag/love%20songs</url>
396
+ </tag> <tag>
397
+ <name>good songs</name>
398
+ <count>0</count>
399
+ <url>http://www.last.fm/tag/good%20songs</url>
400
+ </tag> <tag>
401
+ <name>Soundtrack Of My Life</name>
402
+ <count>0</count>
403
+ <url>http://www.last.fm/tag/soundtrack%20of%20my%20life</url>
404
+ </tag></toptags></lfm>
405
+
data/test/test_helper.rb CHANGED
@@ -3,11 +3,6 @@ require 'test/unit'
3
3
  require File.expand_path('../../lib/rockstar', __FILE__)
4
4
  require File.expand_path('..//mocks/rest', __FILE__)
5
5
 
6
-
7
- if RUBY_VERSION > "1.9"
8
- Encoding.default_internal = "UTF-8"
9
- end
10
-
11
6
  class << Test::Unit::TestCase
12
7
  def test(name, &block)
13
8
  test_name = :"test_#{name.gsub(' ','_')}"
@@ -99,4 +99,13 @@ class TestArtist < Test::Unit::TestCase
99
99
  assert_equal('The Big Four - Metallica, Slayer, Megadeth, Anthrax', events.first.title)
100
100
  assert_equal('07/02/11', events.first.start_date.strftime("%D"))
101
101
  end
102
+
103
+ test 'should load artist by mbid' do
104
+ artist = Rockstar::Artist.new("Metallica",
105
+ :mbid => "65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab",
106
+ :include_info => true)
107
+ assert_equal("http://www.last.fm/music/Metallica", artist.url)
108
+ assert_equal("65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab", artist.mbid)
109
+ assert_match(/an American metal band formed in 1981/, artist.summary)
110
+ end
102
111
  end
@@ -58,6 +58,13 @@ class TestTrack < Test::Unit::TestCase
58
58
  assert_equal('100', @track.tags.first.count)
59
59
  assert_equal('http://www.last.fm/tag/country', @track.tags.first.url)
60
60
  end
61
+
62
+ test 'should have similar tracks' do
63
+ tracks = @track.similar
64
+ assert tracks.size > 0, "There should be similar tracks"
65
+ tracks.each{|t| assert_instance_of(Rockstar::Track, t, "Returned objects should all be Track objects")}
66
+ assert tracks.first.tags.map{|t|t.name.downcase}.include?("country"), "The first similar track should be tagged with 'country'"
67
+ end
61
68
 
62
69
  test 'can love tracks' do
63
70
  assert_equal('ok', @track.love("tag"))
metadata CHANGED
@@ -1,103 +1,102 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rockstar
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.2
4
5
  prerelease:
5
- version: 0.6.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Bodo Tasche
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-09 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-15 00:00:00.000000000 +02:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70330863804120 !ruby/object:Gem::Requirement
18
18
  none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *70330863804120
26
+ - !ruby/object:Gem::Dependency
27
27
  name: hpricot
28
- requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirement: &70330863803500 !ruby/object:Gem::Requirement
29
29
  none: false
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
33
  version: 0.4.86
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *70330863803500
37
+ - !ruby/object:Gem::Dependency
38
38
  name: i18n
39
- requirement: &id003 !ruby/object:Gem::Requirement
39
+ requirement: &70330863803020 !ruby/object:Gem::Requirement
40
40
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *70330863803020
48
+ - !ruby/object:Gem::Dependency
49
49
  name: activesupport
50
- requirement: &id004 !ruby/object:Gem::Requirement
50
+ requirement: &70330863802460 !ruby/object:Gem::Requirement
51
51
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
55
  version: 1.4.2
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
58
+ version_requirements: *70330863802460
59
+ - !ruby/object:Gem::Dependency
60
60
  name: jeweler
61
- requirement: &id005 !ruby/object:Gem::Requirement
61
+ requirement: &70330863801960 !ruby/object:Gem::Requirement
62
62
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
69
+ version_requirements: *70330863801960
70
+ - !ruby/object:Gem::Dependency
71
71
  name: hpricot
72
- requirement: &id006 !ruby/object:Gem::Requirement
72
+ requirement: &70330863801480 !ruby/object:Gem::Requirement
73
73
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
77
  version: 0.4.86
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *70330863801480
81
+ - !ruby/object:Gem::Dependency
82
82
  name: activesupport
83
- requirement: &id007 !ruby/object:Gem::Requirement
83
+ requirement: &70330863800920 !ruby/object:Gem::Requirement
84
84
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
88
  version: 1.4.2
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *id007
92
- description: This gem is an updated version of jnunemakers scrobbler gem. Rockstar uses v2.0 of the last.fm api.
91
+ version_requirements: *70330863800920
92
+ description: This gem is an updated version of jnunemakers scrobbler gem. Rockstar
93
+ uses v2.0 of the last.fm api.
93
94
  email: bodo@bitboxer.de
94
95
  executables: []
95
-
96
96
  extensions: []
97
-
98
- extra_rdoc_files:
97
+ extra_rdoc_files:
99
98
  - README.md
100
- files:
99
+ files:
101
100
  - .travis.yml
102
101
  - Gemfile
103
102
  - Gemfile.lock
@@ -142,6 +141,7 @@ files:
142
141
  - test/fixtures/xml/artist/getevents_artist_Metallica.xml
143
142
  - test/fixtures/xml/artist/getimages_artist_Metallica_page_2.xml
144
143
  - test/fixtures/xml/artist/getinfo_artist_Metallica.xml
144
+ - test/fixtures/xml/artist/getinfo_mbid_65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab.xml
145
145
  - test/fixtures/xml/artist/getsimilar_artist_Metallica.xml
146
146
  - test/fixtures/xml/artist/gettopalbums_artist_Metallica.xml
147
147
  - test/fixtures/xml/artist/gettopfans_artist_Metallica.xml
@@ -154,8 +154,10 @@ files:
154
154
  - test/fixtures/xml/tag/gettoptags.xml
155
155
  - test/fixtures/xml/tag/gettoptracks_tag_rock.xml
156
156
  - test/fixtures/xml/track/getinfo_artist_Carrie_Underwood_track_Before_He_Cheats.xml
157
+ - test/fixtures/xml/track/getsimilar_artist_Carrie_Underwood_limit_10_track_Before_He_Cheats.xml
157
158
  - test/fixtures/xml/track/gettopfans_artist_Carrie_Underwood_track_Before_He_Cheats.xml
158
159
  - test/fixtures/xml/track/gettoptags_artist_Carrie_Underwood_track_Before_He_Cheats.xml
160
+ - test/fixtures/xml/track/gettoptags_artist_Carrie_Underwood_track_Wasted.xml
159
161
  - test/fixtures/xml/track/love_artist_Carrie_Underwood_sk_tag_track_Before_He_Cheats.xml
160
162
  - test/fixtures/xml/track/updatenowplaying_artist_Carrie_Underwood_sk_tag_track_Before_He_Cheats.xml
161
163
  - test/fixtures/xml/user/getevents_sk_token_user_bodot.xml
@@ -194,34 +196,35 @@ files:
194
196
  - test/unit/test_track.rb
195
197
  - test/unit/test_user.rb
196
198
  - test/unit/test_venue.rb
199
+ has_rdoc: true
197
200
  homepage: http://github.com/bitboxer/rockstar
198
201
  licenses: []
199
-
200
202
  post_install_message:
201
203
  rdoc_options: []
202
-
203
- require_paths:
204
+ require_paths:
204
205
  - lib
205
- required_ruby_version: !ruby/object:Gem::Requirement
206
+ required_ruby_version: !ruby/object:Gem::Requirement
206
207
  none: false
207
- requirements:
208
- - - ">="
209
- - !ruby/object:Gem::Version
210
- version: "0"
211
- required_rubygems_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ! '>='
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ segments:
213
+ - 0
214
+ hash: -2554727160983300565
215
+ required_rubygems_version: !ruby/object:Gem::Requirement
212
216
  none: false
213
- requirements:
214
- - - ">="
215
- - !ruby/object:Gem::Version
216
- version: "0"
217
+ requirements:
218
+ - - ! '>='
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
217
221
  requirements: []
218
-
219
222
  rubyforge_project:
220
- rubygems_version: 1.7.2
223
+ rubygems_version: 1.6.2
221
224
  signing_key:
222
225
  specification_version: 3
223
226
  summary: wrapper for audioscrobbler (last.fm) web services
224
- test_files:
227
+ test_files:
225
228
  - examples/album.rb
226
229
  - examples/artist.rb
227
230
  - examples/geo.rb