nfl_data 0.1.0 → 0.1.1
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/CHANGELOG.md +4 -0
- data/lib/nfl_data.rb +0 -1
- data/lib/nfl_data/{models/game.rb → game.rb} +0 -0
- data/lib/nfl_data/{models/player.rb → player.rb} +0 -0
- data/lib/nfl_data/{models/schedule.rb → schedule.rb} +0 -0
- data/lib/nfl_data/{models/statline.rb → statline.rb} +0 -0
- data/lib/nfl_data/version.rb +1 -1
- data/nfl_data.gemspec +1 -1
- data/spec/my_sports_feeds/players_feed_spec.rb +33 -32
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11ff82cffbfc2eb617a981c072f60cae3b57ef849cead1c5d19d582840484e81
|
|
4
|
+
data.tar.gz: 698b9e7e774bc906ab8821a4a408e829541f8a1d9fd29dac100129b21a3df41b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20be7edab126dbbf2ee1f993c3ff7e9c657f3bdae61d3ee4d8adc836a219b6545045a6f55e4711a0e0c0ff329eaba8a08ec20c04abc3dede085496dae749c6f9
|
|
7
|
+
data.tar.gz: 0dce67944ff44f3e6d4adc5a0c691ebb3677c8deef98ed0005caf3122c070dda56024d75b2506f95ace6eb5f365d8b583fd68163ee1e09dd8bbe075dcac8823e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.1.1 / 2020-09-04
|
|
2
|
+
|
|
3
|
+
* Zeitwerk compatibility updates for usage with Rails
|
|
4
|
+
|
|
1
5
|
## 0.1.0 / 2020-08-31
|
|
2
6
|
|
|
3
7
|
* No more NFL.com parsing, using MySportsFeeds API instead. This will require users to acquire their own MySportsFeeds accounts and API tokens. Please see the README or [the MySportsFeeds website](https://www.mysportsfeeds.com for more details.
|
data/lib/nfl_data.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/nfl_data/version.rb
CHANGED
data/nfl_data.gemspec
CHANGED
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.add_development_dependency "rspec-resembles_json_matchers", "~> 0.9"
|
|
24
24
|
spec.add_development_dependency "vcr", "~> 4.0.0"
|
|
25
25
|
spec.add_development_dependency "webmock", "~> 3.8"
|
|
26
|
-
spec.add_development_dependency "standard", "~> 0.
|
|
26
|
+
spec.add_development_dependency "standard", "~> 0.5"
|
|
27
27
|
|
|
28
28
|
spec.add_dependency "nokogiri", "~> 1.10"
|
|
29
29
|
spec.add_dependency "typhoeus", "~> 1.4"
|
|
@@ -7,40 +7,41 @@ RSpec.describe NflData::MySportsFeeds::PlayersFeed do
|
|
|
7
7
|
|
|
8
8
|
it "requests the players" do
|
|
9
9
|
VCR.use_cassette("msf_players") do
|
|
10
|
-
expect(subject.feed.
|
|
10
|
+
expect(subject.feed.find { |player| player.dig("player", "id") == 6826 }).to resemble_json(
|
|
11
11
|
{
|
|
12
|
-
"player"
|
|
13
|
-
"id"
|
|
14
|
-
"firstName"
|
|
15
|
-
"lastName"
|
|
16
|
-
"primaryPosition"
|
|
17
|
-
"alternatePositions"
|
|
18
|
-
"jerseyNumber"
|
|
19
|
-
"currentTeam"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
12
|
+
"player" => {
|
|
13
|
+
"id" => 6826,
|
|
14
|
+
"firstName" => "Ameer",
|
|
15
|
+
"lastName" => "Abdullah",
|
|
16
|
+
"primaryPosition" => "RB",
|
|
17
|
+
"alternatePositions" => [],
|
|
18
|
+
"jerseyNumber" => 31,
|
|
19
|
+
"currentTeam" => {"id" => 63, "abbreviation" => "MIN"},
|
|
20
|
+
"currentRosterStatus" => "ROSTER",
|
|
21
|
+
"currentInjury" => nil,
|
|
22
|
+
"height" => "5'9\"",
|
|
23
|
+
"weight" => 203,
|
|
24
|
+
"birthDate" => "1993-06-13",
|
|
25
|
+
"age" => 27,
|
|
26
|
+
"birthCity" => "Mobile, AL",
|
|
27
|
+
"birthCountry" => "USA",
|
|
28
|
+
"rookie" => false,
|
|
29
|
+
"highSchool" => nil,
|
|
30
|
+
"college" => "Nebraska",
|
|
31
|
+
"handedness" => nil,
|
|
32
|
+
"officialImageSrc" => "http://static.nfl.com/static/content/public/static/img/fantasy/transparent/200x200/ABD647726.png",
|
|
33
|
+
"socialMediaAccounts" => [],
|
|
34
|
+
"currentContractYear" => nil,
|
|
35
|
+
"drafted" => {"year" => 2015, "team" => {"id" => 61, "abbreviation" => "DET"},
|
|
36
|
+
"pickTeam" => {"id" => 61, "abbreviation" => "DET"},
|
|
37
|
+
"round" => 2,
|
|
38
|
+
"roundPick" => 22,
|
|
39
|
+
"overallPick" => 54},
|
|
40
|
+
"externalMappings" => [{"source" => "NFL.com Stats Leaders", "id" => "ABD647726"}]
|
|
40
41
|
},
|
|
41
|
-
"teamAsOfDate"
|
|
42
|
-
"id"
|
|
43
|
-
"abbreviation"
|
|
42
|
+
"teamAsOfDate" => {
|
|
43
|
+
"id" => 63,
|
|
44
|
+
"abbreviation" => "MIN"
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nfl_data
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thetizzo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0.
|
|
89
|
+
version: '0.5'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0.
|
|
96
|
+
version: '0.5'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: nokogiri
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -161,10 +161,7 @@ files:
|
|
|
161
161
|
- lib/nfl_data/api/player.rb
|
|
162
162
|
- lib/nfl_data/api/schedule.rb
|
|
163
163
|
- lib/nfl_data/api/statline.rb
|
|
164
|
-
- lib/nfl_data/
|
|
165
|
-
- lib/nfl_data/models/player.rb
|
|
166
|
-
- lib/nfl_data/models/schedule.rb
|
|
167
|
-
- lib/nfl_data/models/statline.rb
|
|
164
|
+
- lib/nfl_data/game.rb
|
|
168
165
|
- lib/nfl_data/my_sports_feeds/client.rb
|
|
169
166
|
- lib/nfl_data/my_sports_feeds/players_feed.rb
|
|
170
167
|
- lib/nfl_data/my_sports_feeds/seasonal_games_feed.rb
|
|
@@ -172,6 +169,9 @@ files:
|
|
|
172
169
|
- lib/nfl_data/parsers/player_parser.rb
|
|
173
170
|
- lib/nfl_data/parsers/schedule_parser.rb
|
|
174
171
|
- lib/nfl_data/parsers/statline_parser.rb
|
|
172
|
+
- lib/nfl_data/player.rb
|
|
173
|
+
- lib/nfl_data/schedule.rb
|
|
174
|
+
- lib/nfl_data/statline.rb
|
|
175
175
|
- lib/nfl_data/version.rb
|
|
176
176
|
- nfl_data.gemspec
|
|
177
177
|
- spec/api/player_spec.rb
|