fantasy-football 0.1.7 → 0.1.8
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/scraper.rb +1 -1
- 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: b28a69596c517566201c97b7a83ce6dceb19a9d3ad23b4b6daaf68d65886a785
|
4
|
+
data.tar.gz: 72850a8b5d8dba99bc13b492f91659e54c34f8c346e47ebe1f8bfa5a0aa28a22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be152a71fedd40cb6e418894ecd83f107c42b11f974c75ad0ee0733a402bd5e06f60612a0b51aa2808b9cb45dc7ae64ad60c16c97ffae4316734d43308ea696d
|
7
|
+
data.tar.gz: ef77a72dae2385e831f77d821f5329e3d91337913956ff324dcf5219018c60817c6efe05c89c6eb75dd9500717209a1cf9a0141e7c76d7744a246efe650bbc31
|
@@ -15,7 +15,7 @@ class FantasyFootball::Scraper
|
|
15
15
|
def self.build_players(table,position)
|
16
16
|
# Input is HTML table of player rankings, instantiates Players, assigns name, rank, and url
|
17
17
|
table.each_with_index do |t, i|
|
18
|
-
if i <
|
18
|
+
if i < size
|
19
19
|
p = FantasyFootball::Player.new
|
20
20
|
p.name = [t.text.split[1], t.text.split[3]].join(" ")
|
21
21
|
p.rank = t.text.split[0]
|