lib/dutch_top40/cli.rb in dutch_top40-0.1.2 vs lib/dutch_top40/cli.rb in dutch_top40-0.1.3

- old
+ new

@@ -3,11 +3,10 @@ def call logo puts "Dutch Top40 - week #{Time.now.strftime("%U")}", "" puts "One moment, acquiring data." list_songs - sleep(5) menu end def list_songs @songs = DutchTop40::Songs.list @@ -28,10 +27,10 @@ input = gets.strip.downcase case input.to_i when 1..@songs.size puts "Current rank #{input}." puts "#{@songs[input.to_i-1].title} - performing artist(s): #{@songs[input.to_i-1].name}" - puts "weeks listed: #{@songs[input.to_i-1].listed} - last weeks rank #{@songs[input.to_i-1].last_weeks_rank}","" + puts "weeks in Top40: #{@songs[input.to_i-1].listed} - last weeks rank: #{@songs[input.to_i-1].last_weeks_rank}","" else puts "Invalid input!" unless input == 'exit' || input == 'list' if input == 'list' print_songs end \ No newline at end of file