stattleship-ruby 0.1.23 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/examples/README.md +1 -1
- data/examples/basketball_game_logs.rb +3 -1
- data/lib/stattleship/client/configuration.rb +1 -1
- data/lib/stattleship/models/player.rb +1 -1
- data/lib/stattleship/version.rb +1 -1
- data/stattleship-ruby.gemspec +2 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 685dbf9557b8b271f793009f0c6ade2344c610a7
|
4
|
+
data.tar.gz: fd1bb152c890497a2559ac18a3bc42b82fa050f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3affac64edb274799e2bdbf245a5e7e3ec3496221f6dae29c6f9dc418c26555f15df606668aadbf1f4bf7a36bf06ae1c009082325621c5552a4363f3bbc615
|
7
|
+
data.tar.gz: ff7713955d8c90986b2aef8eb05c65a70f65a6227b8534bcad35cad6ae8b8909618d9b80662803fcf7981fa59177d4e82ac03f889f03112e2e86f5ec8902861f
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@ Stattleship API Ruby client
|
|
5
5
|
|
6
6
|
[![Build Status](https://travis-ci.org/stattleship/stattleship-ruby.svg?branch=master)](https://travis-ci.org/stattleship/stattleship-ruby)
|
7
7
|
|
8
|
-
Check out the [Stattleship API](https://
|
8
|
+
Check out the [Stattleship API](https://api.stattleship.com) - The Sports Data API you've always wanted
|
9
9
|
|
10
10
|
Meaningful. Developer-Friendly.
|
11
11
|
|
@@ -22,7 +22,7 @@ gem install stattleship-ruby
|
|
22
22
|
## Usage
|
23
23
|
|
24
24
|
```
|
25
|
-
gem 'stattleship-ruby', '~> 0.1.
|
25
|
+
gem 'stattleship-ruby', '~> 0.1.24'
|
26
26
|
```
|
27
27
|
|
28
28
|
### Build
|
@@ -34,13 +34,13 @@ gem build stattleship-ruby.gemspec
|
|
34
34
|
### Install
|
35
35
|
|
36
36
|
```
|
37
|
-
gem install stattleship-ruby-0.1.
|
37
|
+
gem install stattleship-ruby-0.1.24.gem
|
38
38
|
```
|
39
39
|
## Prerequisites
|
40
40
|
|
41
41
|
You'll need
|
42
42
|
|
43
|
-
* Stattleship [API Access Token from https://
|
43
|
+
* Stattleship [API Access Token from https://api.stattleship.com](https://api.stattleship.com)
|
44
44
|
|
45
45
|
# Configuration
|
46
46
|
|
data/examples/README.md
CHANGED
@@ -40,7 +40,7 @@ You'll need
|
|
40
40
|
* Uses `BasketballGameLogsParams` and makes a `BasketballGameLogs` request
|
41
41
|
* Use the `player_id` and `since` parameters to get Stephen Curry's game logs for the past week
|
42
42
|
|
43
|
-
* [Football Game Logs](
|
43
|
+
* [Football Game Logs](football_game_logs.rb)
|
44
44
|
* Uses `FootballGameLogsParams` and makes a `FootballGameLogs` request
|
45
45
|
* Use the `player_id`, `interval_type` and `since` parameters to get Cam Newton's game logs for the past weeks by specifying the interval type (divisionplayoffs, conferencechampionships, etc)
|
46
46
|
|
@@ -14,7 +14,9 @@ query_params = Stattleship::Params::BasketballGameLogsParams.new
|
|
14
14
|
query_params.player_id = 'nba-stephen-curry'
|
15
15
|
|
16
16
|
# may need to adjust this depending on time of year/NBA season
|
17
|
-
query_params.
|
17
|
+
query_params.season_id = 'nba-2015-2016'
|
18
|
+
query_params.interval_type = 'nbachampionship'
|
19
|
+
query_params.since = 'june 2016'
|
18
20
|
|
19
21
|
# fetch will automatically traverse the paginated response links
|
20
22
|
game_logs = Stattleship::BasketballGameLogs.fetch(params: query_params)
|
data/lib/stattleship/version.rb
CHANGED
data/stattleship-ruby.gemspec
CHANGED
@@ -20,7 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
end
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
|
23
|
+
|
24
|
+
spec.add_runtime_dependency 'addressable', '~> 2.4'
|
24
25
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
25
26
|
spec.add_runtime_dependency 'dotenv', '~> 2.0', '>= 2.0.2'
|
26
27
|
spec.add_runtime_dependency 'link_header', '~> 0.0.8'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stattleship-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stattleship
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
@@ -17,20 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '2.
|
21
|
-
- - "<="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 2.3.8
|
20
|
+
version: '2.4'
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
25
|
- - "~>"
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: '2.
|
31
|
-
- - "<="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.3.8
|
27
|
+
version: '2.4'
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: bundler
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|