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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nba_stats/cli.rb +3 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77fe915ee660f8d723ff533f725e222c34ebeed4
4
- data.tar.gz: 36246b0af9b5d0095cd289a6e3653eea513ac1e4
3
+ metadata.gz: 3ac2154b740552370d6d0dfebb632ccb7a9f46e6
4
+ data.tar.gz: 953eb7e370dfeb946cdd6dfb043e40b886037979
5
5
  SHA512:
6
- metadata.gz: 52be75b9d14722ea257eeddff435dbf01086aa14d56364d4c727577268892dfeb0da5f69887df5c7ac4a9ec1de4c196aef68fcb7a50d57d60fd8be992e2f4663
7
- data.tar.gz: 9cefc1ecd4e4db91ce1bbafc28bc175dea2a769600b48bc5149320224413493dee629793173c10ddc6ed359157aefdfc3f3f6b8eb3cd533b2107111daa0ecc54
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nba-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Barron