Sha256: 94f2d942c27dbcfaf1069bf8eff303cbbfa2f203d06e5db3f90a6c1086937b57

Contents?: true

Size: 533 Bytes

Versions: 18

Compression:

Stored size: 533 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'rockstar'))
require 'pp'

# Please enter your API-Keys into lastfm.yml first. 
# You can find them here : http://www.lastfm.de/api/account
Rockstar.lastfm = YAML.load_file(File.join(File.dirname(__FILE__), 'lastfm.yml'))

track = Rockstar::Track.new('Carrie Underwood', 'Before He Cheats')
puts 'Fans'
puts "=" * 4
track.fans.each { |u| puts "(#{u.weight}) #{u.username}" }

track = Rockstar::Track.new('U2 & Green Day', 'The Saints Are Coming')
pp track.tags

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
rockstar-0.8.1 examples/track.rb
rockstar-0.8.0 examples/track.rb
jonaustin-rockstar-0.7.1 examples/track.rb
rockstar-0.7.1 examples/track.rb
rockstar-0.7.0 examples/track.rb
rockstar-0.6.4 examples/track.rb
rockstar-0.6.3 examples/track.rb
rockstar-0.6.2 examples/track.rb
rockstar-custom-0.6.1 examples/track.rb
rockstar-0.6.1 examples/track.rb
rockstar-0.6.0 examples/track.rb
rockstar-0.5.2 examples/track.rb
rockstar-0.5.1 examples/track.rb
rockstar-0.5.0 examples/track.rb
rockstar-0.4.2 examples/track.rb
rockstar-0.4.1 examples/track.rb
rockstar-0.4.0 examples/track.rb
rockstar-0.3.0 examples/track.rb