fantasy-football 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fantasy_football/CLI.rb +1 -1
- data/lib/fantasy_football/concerns/findable.rb +3 -3
- data/lib/fantasy_football/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7b64077cc72f182c80b8fbef1d6cfe1d58d24f5ef3e35a3b77891f5c472c8ec
|
4
|
+
data.tar.gz: e3d0986bb8babd9e862390bce7f26a0f5cad59b7ddfe0e80404a17aecff89eb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96a935f811fdeb33d9c8e48a0307553503e39f12c916aedd8b381d7a4503e6e9efc7897104397363854a392f8c56dd34daed0ef25b9e789b2de2869d34004031
|
7
|
+
data.tar.gz: d28423da0cb221d52b82ad92d25ce6433e85c14bee46c97d236fe930c1309937696ba54805d0650d54289fc744e9c82d7c82b4e46bf0759123f358c04a0e7068
|
data/lib/fantasy_football/CLI.rb
CHANGED
@@ -27,7 +27,7 @@ class FantasyFootball::CLI
|
|
27
27
|
# Iterates through Player.all to print player name and rankings by position
|
28
28
|
puts " "
|
29
29
|
puts "-- Top #{FantasyFootball::Scraper.size} #{position.upcase}s for Week #{11} of #{Time.new.year} --"
|
30
|
-
Player.find_by_position(position).sort {|a,b| a.rank.to_i <=> b.rank.to_i}.each {|i| puts "#{i.rank}. #{i.name}"}
|
30
|
+
FantasyFootball::Player.find_by_position(position).sort {|a,b| a.rank.to_i <=> b.rank.to_i}.each {|i| puts "#{i.rank}. #{i.name}"}
|
31
31
|
puts " "
|
32
32
|
end
|
33
33
|
|
@@ -10,9 +10,9 @@ module Findable
|
|
10
10
|
self.all.find {|i| i.rank == rank && i.position == position.upcase}
|
11
11
|
end
|
12
12
|
|
13
|
-
def find_by_name(name)
|
14
|
-
|
15
|
-
end
|
13
|
+
# def find_by_name(name)
|
14
|
+
# self.all.find {|i| i.name == name}
|
15
|
+
# end
|
16
16
|
|
17
17
|
end
|
18
18
|
|