lastfm 1.24.0 → 1.25.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5596a9188de8b49ae4ab92e7c1cec3e11e971f6d
4
- data.tar.gz: b982aeeaa7981e5395a06bb2b56ef7770ced4bbe
3
+ metadata.gz: f63c89dd6801325bc3ef7d4dae45db193a9cfa95
4
+ data.tar.gz: ebce4654a0710f9b701d9f810416bb0c2970234b
5
5
  SHA512:
6
- metadata.gz: 97e5e11c762658420f70f977559b23ea1d0ea0bca666cddd70d522f7fcc1188f306f373734e59e43708484769c63711aa8e43d3e019607079e841b5645053aba
7
- data.tar.gz: 594fa17db9fc6b9480e0ab77c36d39f814a584e9018576f0504fe76356ab0f605b5e2bbb2bac8cfbd4707802722eeab215966b50adbc5fe0130857b428f3de26
6
+ metadata.gz: ffd8e5506bb7ca90f856940215459dd3abef6e41f0fb4e7e592faca52bdee2befd85e44f9f2847b2cbaf89752da426ef7877f654fbaadb45c850a98bdbd2e323
7
+ data.tar.gz: c884d34d74c9674fe87f55f00a71fc64db612c0ef873fa9db082bc94fdc24b02c938e4e732fc0b64f973862d21b35c4ecc18f0d75fc01f573a09c63dec5f443f
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.24.0"
15
+ gem.version = "1.25.0"
16
16
  gem.license = 'MIT'
17
17
 
18
18
  gem.add_dependency "xml-simple"
@@ -32,8 +32,9 @@ class Lastfm
32
32
  ]
33
33
  ) do |response|
34
34
  response.xml['topalbums']['album']
35
- end
36
35
 
36
+ end
37
+
37
38
  regular_method(
38
39
  :search,
39
40
  :required => [:tag],
@@ -44,6 +45,13 @@ class Lastfm
44
45
  ) do |response|
45
46
  response.xml['results']['tagmatches']['tag']
46
47
  end
48
+
49
+ regular_method(
50
+ :get_info,
51
+ :required => [:tag]
52
+ ) do |response|
53
+ response.xml['tag']
54
+ end
47
55
  end
48
56
  end
49
57
  end
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <lfm status="ok">
3
+ <tag>
4
+ <name>disco</name>
5
+ <url>http://www.last.fm/tag/disco</url>
6
+ <reach>33745</reach>
7
+ <taggings>161205</taggings>
8
+ <streamable>1</streamable>
9
+ <wiki>
10
+ <published>Fri, 17 Jan 2014 06:27:31 +0000</published>
11
+ <summary><![CDATA[Disco is a genre of dance-oriented music that originated in African American, gay and Hispanic American communities in 1970s. In what is considered a forerunner to disco style clubs in February 1970 New York City DJ David Mancuso opened The Loft, a members-only private dance club set in his own home. Most agree that the first disco songs were released in 1973, though some claim that Soul Makossa by <a href="http://www.last.fm/music/Manu+Dibango%27s" class="bbcode_artist">Manu Dibango's</a> from 1972 to be the first disco record. The first article about disco was written in September 1973 by Vince Aletti for Rolling Stone Magazine.]]></summary>
12
+ <content><![CDATA[Disco is a genre of dance-oriented music that originated in African American, gay and Hispanic American communities in 1970s. In what is considered a forerunner to disco style clubs in February 1970 New York City DJ David Mancuso opened The Loft, a members-only private dance club set in his own home. Most agree that the first disco songs were released in 1973, though some claim that Soul Makossa by <a href="http://www.last.fm/music/Manu+Dibango%27s" class="bbcode_artist">Manu Dibango's</a> from 1972 to be the first disco record. The first article about disco was written in September 1973 by Vince Aletti for Rolling Stone Magazine. In 1974 New York City's WPIX-FM premiered the first disco radio show.
13
+
14
+ Musical influences include funk, soul music. The disco sound has a soaring, often reverberated vocals over a steady &quot;four-on-the-floor&quot; beat, an eighth note (quaver) or sixteenth note (semi-quaver) hi-hat pattern with an open hi-hat on the off-beat, and prominent, syncopated electric bass line. Strings, horns, electric pianos, and electric guitars create a lush background sound. Orchestral instruments such as the flute are often used for solo melodies, and unlike in rock, lead guitar is rarely used.
15
+
16
+ Well-known late 1970s disco performers included <a href="http://www.last.fm/music/Bee+Gees" class="bbcode_artist">Bee Gees</a>, <a href="http://www.last.fm/music/Donna+Summer" class="bbcode_artist">Donna Summer</a> and <a href="http://www.last.fm/music/The+Jacksons" class="bbcode_artist">The Jacksons</a>. Summer would become the first well-known and most popular female disco artist, and also played a part in pioneering the electronic sound that later became a part of disco. While performers and singers garnered the lion's share of public attention, the behind-the-scenes producers played an equal, if not more important role in disco, since they often wrote the songs and created the innovative sounds and production techniques that were part of the &quot;disco sound&quot;. Many non-disco artists recorded disco songs at the height of disco's popularity, and films such as Saturday Night Fever and Thank God It's Friday contributed to disco's rise in mainstream popularity and ironically the beginning of its commercial decline.
17
+
18
+ During this period of decline in disco's popularity, several record companies folded, were reorganized, or were sold. In 1979, MCA Records purchased ABC Records, absorbed some of its artists, and then shut the label down. RSO Records founder Robert Stigwood left the label in 1981 and TK Records closed in the same year. Salsoul Records folded in 1984. Casablanca Records had been releasing fewer records in the 1980s, and was shut down in 1986 by parent company PolyGram.
19
+
20
+ Many groups that were popular during the disco period subsequently struggled to maintain their success—even those that tried to adapt to evolving musical tastes. The Bee Gees, for instance, only had one major hit in the United States after the 1970s—even though later songs they wrote and had others perform were successful. Of the handful of groups not taken down by disco's fall from favor, The Jacksons—and Michael Jackson in particular—stand out: In spite of having helped define the disco sound early on,[49] they continued to make popular and danceable, if more refined, songs for yet another generation of music fans in the 1980s and beyond
21
+
22
+ The resurgence of Disco, the second generation of Disco artists, commonly referred to as &quot;Dance&quot; or &quot;Dance Pop&quot; artists took shape. By this point, this style of music no longer favoured only the highly orchestral song structure. Post-disco (club music or dance) is the significant period in popular music history that followed the commercial &quot;death&quot; of disco music that emerged during late 1970s and early 1980s. The stripped-down musical trends followed from the DJ- and producer-driven, increasingly electronic and experimental side of disco, and were typified by the styles of dance-pop, boogie, <a href="http://www.last.fm/tag/italo%20disco" class="bbcode_tag" rel="tag">italo disco</a> and the early alternative dance. <a href="http://www.last.fm/tag/techno" class="bbcode_tag" rel="tag">techno</a> and <a href="http://www.last.fm/tag/house" class="bbcode_tag" rel="tag">house</a> are both rooted in post-disco music. From 1990 forward, while not commonly referred to as Disco, continued to gain mainstream success.
23
+
24
+ In 2013, several 1970s-style disco and R&amp;B songs charted, and the pop charts had more dance songs than at any other point since the late 1970s. The biggest disco hit of the year as of June was &quot;Get Lucky&quot; by Daft Punk, featuring Nile Rodgers on guitar. The song was initially thought likely to be a leading candidate to become the summer's biggest hit that year; however, the song ended up peaking at number 2 on the Billboard Hot 100 chart for five weeks behind another major disco-styled song, Robin Thicke's &quot;Blurred Lines&quot;, which spent twelve weeks at number 1 on the Hot 100, and in the process became the eventual song of the summer itself. Both were popular with a wide variety of demographic groups. Other disco-styled songs that made it into the top 40 were Justin Timberlake's &quot;Take Back The Night&quot; (No. 29), and Bruno Mars' &quot;Treasure&quot; (No. 5).]]></content>
25
+ </wiki>
26
+ </tag>
27
+ </lfm>
@@ -74,4 +74,16 @@ describe '#tag' do
74
74
  end
75
75
  end
76
76
 
77
+ describe '#get_info' do
78
+ it 'should get detailed info of a given tag' do
79
+ @lastfm.should_receive(:request).with('tag.getInfo', {
80
+ :tag => 'Disco'
81
+ }).and_return(make_response('tag_get_info'))
82
+
83
+ tags = @lastfm.tag.get_info(:tag => 'Disco')
84
+ tags[0]['name'].should == 'disco'
85
+ tags[0]['reach'].should == '33745'
86
+ tags[0]['url'].should == 'http://www.last.fm/tag/disco'
87
+ end
88
+ end
77
89
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lastfm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - youpy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-05 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple
@@ -138,6 +138,7 @@ files:
138
138
  - spec/fixtures/ok.xml
139
139
  - spec/fixtures/radio_get_playlist.xml
140
140
  - spec/fixtures/radio_get_playlist_single_track.xml
141
+ - spec/fixtures/tag_get_info.xml
141
142
  - spec/fixtures/tag_get_top_albums.xml
142
143
  - spec/fixtures/tag_get_top_artists.xml
143
144
  - spec/fixtures/tag_get_top_tracks.xml
@@ -239,6 +240,7 @@ test_files:
239
240
  - spec/fixtures/ok.xml
240
241
  - spec/fixtures/radio_get_playlist.xml
241
242
  - spec/fixtures/radio_get_playlist_single_track.xml
243
+ - spec/fixtures/tag_get_info.xml
242
244
  - spec/fixtures/tag_get_top_albums.xml
243
245
  - spec/fixtures/tag_get_top_artists.xml
244
246
  - spec/fixtures/tag_get_top_tracks.xml