billboard_top_songs 0.1.1 → 0.1.2
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/.DS_Store +0 -0
- data/README.md +4 -4
- data/billboard_top_songs-0.1.1.gem +0 -0
- data/billboard_top_songs.gemspec +0 -1
- data/lib/billboard_top_songs/cli.rb +8 -9
- data/lib/billboard_top_songs/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d73db88605dfb5bffdde936875f5d4f9eb87d45
|
|
4
|
+
data.tar.gz: 60b38ee601b9c239a63cd437360bd6a062254dd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bc09fd32e6c238aa06c9c88be43e9e4570386e164105a180cdcb5dc34cb9ee6efeb588261afc24848797716607b75841e9089ca35122f97f5df846635202256
|
|
7
|
+
data.tar.gz: a684e1e1d946fe2f900c4552b9d0e4430b6a3a39da31b4e0e81bc21b76eb04e7adec18c9e3b3cd9679d4052f430e49b035ae2fca0d97ca045b8d4deaf18ab24d
|
data/.DS_Store
CHANGED
|
Binary file
|
data/README.md
CHANGED
|
@@ -10,17 +10,17 @@ This Ruby Gem provides a CLI to view the top 100 songs in music as per the Billb
|
|
|
10
10
|
|
|
11
11
|
Type the below and follow the on screen prompts.
|
|
12
12
|
|
|
13
|
-
$ billboard_top_songs
|
|
13
|
+
$ bin/billboard_top_songs
|
|
14
14
|
|
|
15
15
|
## Development
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Any and all updates can also be found at [rubygems.org](https://rubygems.org/gems/billboard_top_songs).
|
|
20
20
|
|
|
21
21
|
## Contributing
|
|
22
22
|
|
|
23
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/SCDesigns/
|
|
23
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/SCDesigns/billboard_top_songs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
## License
|
|
Binary file
|
data/billboard_top_songs.gemspec
CHANGED
|
@@ -7,7 +7,6 @@ Gem::Specification.new do |spec|
|
|
|
7
7
|
spec.name = "billboard_top_songs"
|
|
8
8
|
spec.version = BillboardTopSongs::VERSION
|
|
9
9
|
spec.authors = ["Sean Clarke"]
|
|
10
|
-
spec.email = ["xseanclarke@gmail.com"]
|
|
11
10
|
|
|
12
11
|
spec.summary = %q{This Ruby Gem provides a CLI to view the top 100 songs in music as per the Billboard charts.}
|
|
13
12
|
spec.homepage = "https://github.com/SCDesigns/billboard_top_songs"
|
|
@@ -17,16 +17,15 @@ class BillboardTopSongs::CLI
|
|
|
17
17
|
puts "-*-*-*-*-*| Songs #{num} - #{num+19} |*-*-*-*-*-"
|
|
18
18
|
puts ""
|
|
19
19
|
BillboardTopSongs::Song.all[num-1, 20].each do |song|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
puts "#{song.position}. #{song.name} - #{song.artist}"
|
|
21
|
+
end
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def choose_song
|
|
25
|
-
puts ""
|
|
26
|
-
puts "Is there a particular song you would like more info on? If so please enter it's corresponding ranking."
|
|
27
|
-
puts ""
|
|
25
|
+
puts "\n" + "-------------------------------------------------------"
|
|
26
|
+
puts "Is there a particular song you would like more info on?" + "\n" + "If so please enter it's corresponding ranking."
|
|
27
|
+
puts "-------------------------------------------------------" + "\n" + "\n"
|
|
28
28
|
indx = gets.to_i
|
|
29
|
-
binding.pry
|
|
30
29
|
song = BillboardTopSongs::Song.find_by_index(indx-1)
|
|
31
30
|
if !song
|
|
32
31
|
choose_song
|
|
@@ -46,9 +45,9 @@ class BillboardTopSongs::CLI
|
|
|
46
45
|
|
|
47
46
|
choose_song
|
|
48
47
|
|
|
49
|
-
puts ""
|
|
50
|
-
puts "Enter 'list' to view the list of songs again. Or 'exit' to end the program."
|
|
51
|
-
puts ""
|
|
48
|
+
puts "\n" + "---------------------------------------------"
|
|
49
|
+
puts "Enter 'list' to view the list of songs again." + "\n" + "Or 'exit' to end the program."
|
|
50
|
+
puts "---------------------------------------------"
|
|
52
51
|
|
|
53
52
|
input = gets.strip
|
|
54
53
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: billboard_top_songs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Clarke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -67,8 +67,7 @@ dependencies:
|
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
description:
|
|
70
|
-
email:
|
|
71
|
-
- xseanclarke@gmail.com
|
|
70
|
+
email:
|
|
72
71
|
executables: []
|
|
73
72
|
extensions: []
|
|
74
73
|
extra_rdoc_files: []
|
|
@@ -83,6 +82,7 @@ files:
|
|
|
83
82
|
- README.md
|
|
84
83
|
- Rakefile
|
|
85
84
|
- billboard_top_songs-0.1.0.gem
|
|
85
|
+
- billboard_top_songs-0.1.1.gem
|
|
86
86
|
- billboard_top_songs.gemspec
|
|
87
87
|
- bin/billboard_top_songs
|
|
88
88
|
- bin/console
|