hot_songs 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hot_songs/cli.rb +3 -2
- data/lib/hot_songs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 868b69fb402c81d7ab122393636043b02cf2aa5c
|
|
4
|
+
data.tar.gz: cbdef457eb327890db66340a0a66d286653b47ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6575edf7800f130e88435f9dbe1fa2e602a7b10c67000ffa5a772aefbb773215cfeecc003da5008e0ddfe128b1a7fb5c2d78cdbee41a838980e110a7e2d6006f
|
|
7
|
+
data.tar.gz: 9cb71dfd6bb42914d458e08b70b680547b93b9401d7eb98b7c0d6375c3171c0d9613310d92e8671673c447d42a20816d3dcc4c1160bfd2941ee5be3db60cb80c
|
data/lib/hot_songs/cli.rb
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
class HotSongs::CLI
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
attr_accessor :genres
|
|
4
4
|
|
|
5
5
|
def initialize
|
|
6
6
|
@genres = %w{ Pop Country Rock R&B/Rap Dance/Electronic Latin Christian/Gospel }
|
|
7
7
|
end
|
|
8
|
+
|
|
8
9
|
def about
|
|
9
10
|
system 'clear'
|
|
10
11
|
puts "Hot Songs v1.0".center(125)
|
|
@@ -39,7 +40,7 @@ class HotSongs::CLI
|
|
|
39
40
|
puts
|
|
40
41
|
songs.each.with_index(1) { |song, index| puts "#{index}. #{song} -- #{artists[index-1]}".center(125)}
|
|
41
42
|
2.times {puts}
|
|
42
|
-
puts "Press enter to return to
|
|
43
|
+
puts "Press enter to return to genre list or enter a number to see the song's chart history".center(125)
|
|
43
44
|
answer = gets.chomp
|
|
44
45
|
display_chart_history(songs[answer.to_i-1], artists[answer.to_i-1], chart_history[answer.to_i-1], genre) if ('1'..songs.count.to_s).include?(answer)
|
|
45
46
|
system 'clear'
|
data/lib/hot_songs/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hot_songs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- KhalilC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|