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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8aae3b48befa5e49a3400e2e4955cca323f7e3ed4aa7e4ecd17d888eea7029c
4
- data.tar.gz: 9e03e003f759db815c8d8be2eca6592ce610fa1148b709f8156002ffe86a26a7
3
+ metadata.gz: 11ff82cffbfc2eb617a981c072f60cae3b57ef849cead1c5d19d582840484e81
4
+ data.tar.gz: 698b9e7e774bc906ab8821a4a408e829541f8a1d9fd29dac100129b21a3df41b
5
5
  SHA512:
6
- metadata.gz: 10f022e51cec852029038277ffeaff0887946bb44129ee309e32329f427cea141980fbb5f98d34d5cd9feca1c7537c8f7367e7497546fa5a738b93e1ef618e47
7
- data.tar.gz: 73788afad7732273a27f4daf8f66028b0baf7b96b0f66a15a6174a73c16778775647712ac3b1f69f67ddb57dd91d8c1ec0d2b27bae836fe89fec357dacd05a64
6
+ metadata.gz: 20be7edab126dbbf2ee1f993c3ff7e9c657f3bdae61d3ee4d8adc836a219b6545045a6f55e4711a0e0c0ff329eaba8a08ec20c04abc3dede085496dae749c6f9
7
+ data.tar.gz: 0dce67944ff44f3e6d4adc5a0c691ebb3677c8deef98ed0005caf3122c070dda56024d75b2506f95ace6eb5f365d8b583fd68163ee1e09dd8bbe075dcac8823e
@@ -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.
@@ -6,7 +6,6 @@ require "base64"
6
6
  require "zeitwerk"
7
7
 
8
8
  loader = Zeitwerk::Loader.for_gem
9
- loader.collapse("lib/nfl_data/models")
10
9
  loader.setup
11
10
 
12
11
  module NflData
File without changes
@@ -1,3 +1,3 @@
1
1
  module NflData
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.1"
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.first).to resemble_json(
10
+ expect(subject.feed.find { |player| player.dig("player", "id") == 6826 }).to resemble_json(
11
11
  {
12
- "player": {
13
- "id": 13507,
14
- "firstName": "Manny",
15
- "lastName": "Abad",
16
- "primaryPosition": "DB",
17
- "alternatePositions": Array,
18
- "jerseyNumber": 38,
19
- "currentTeam": {
20
- "id": 67,
21
- "abbreviation": "TEN"
22
- },
23
- "currentRosterStatus": "ROSTER",
24
- "currentInjury": nil,
25
- "height": nil,
26
- "weight": nil,
27
- "birthDate": "1993-11-23",
28
- "age": 24,
29
- "birthCity": nil,
30
- "birthCountry": nil,
31
- "rookie": false,
32
- "highSchool": nil,
33
- "college": nil,
34
- "handedness": nil,
35
- "officialImageSrc": nil,
36
- "socialMediaAccounts": Array,
37
- "currentContractYear": nil,
38
- "drafted": nil,
39
- "externalMappings": Array
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": 67,
43
- "abbreviation": "TEN"
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.0
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-02 00:00:00.000000000 Z
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.1'
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.1'
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/models/game.rb
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