nba-stats 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nba_stats/cli.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ac2154b740552370d6d0dfebb632ccb7a9f46e6
|
4
|
+
data.tar.gz: 953eb7e370dfeb946cdd6dfb043e40b886037979
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46231e69e73e79c36738fa5083b0627cc061e125b489f59d253c74bf4b7623208af5a4e2d2a68d915ee7fde75c356efed71ae8d6acf1008e1b46d3155e9702e9
|
7
|
+
data.tar.gz: e66a99f593616322a37a6cc5520e42e91b7cccb359ade4c27e7972d77caef0a14742ae26324781fba58252dfbcaacd6f2cb326980789a3e5d918579a06fa322f
|
data/lib/nba_stats/cli.rb
CHANGED
@@ -29,21 +29,20 @@ class NbaStats::CLI
|
|
29
29
|
while input != "exit"
|
30
30
|
puts "Input a team name to see their roster: "
|
31
31
|
input = gets.strip
|
32
|
-
if NbaStats::Team.team_names.include? input
|
32
|
+
if (NbaStats::Team.team_names.include? input)
|
33
33
|
display_roster(input)
|
34
34
|
puts "Input a player name to see their individual stats: "
|
35
35
|
input = gets.strip
|
36
|
-
while NbaStats::Player.player_names.include? input
|
36
|
+
while (NbaStats::Player.player_names.include? input)
|
37
37
|
display_player_stats(input)
|
38
38
|
puts "Input another player name from this team to see their stats."
|
39
39
|
puts "Or input change teams to see another team's roster."
|
40
40
|
input = gets.strip
|
41
41
|
if input == "change teams" || input == "change team"
|
42
42
|
start
|
43
|
-
elsif input == "exit"
|
44
|
-
break
|
45
43
|
end
|
46
44
|
end
|
45
|
+
break
|
47
46
|
end
|
48
47
|
end
|
49
48
|
end
|