stattleship-ruby 0.1.23 → 0.1.25

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
  SHA1:
3
- metadata.gz: 3f095ceec256ee7cfe766a5decb9434a4e2867ba
4
- data.tar.gz: 2eb51f27fa34a77d0ebf623694b9db9b9a7db3a0
3
+ metadata.gz: 685dbf9557b8b271f793009f0c6ade2344c610a7
4
+ data.tar.gz: fd1bb152c890497a2559ac18a3bc42b82fa050f0
5
5
  SHA512:
6
- metadata.gz: 8ebcad2cf1947df9d8ce4d9cd47f6d771373ca987cb7109677b222fe726d44ad8580ed6793bab5d010da773e043be86b52be9258ae8d99579afc49b87c7e0519
7
- data.tar.gz: b8e14cad2d864b0f8846d28b3be7d3a174a07c20ff416614ff9056f3c523ffee8cb05ac98fdbfe00fc81efedbefb098386388291a00b87a64fec40d4250c4538
6
+ metadata.gz: ca3affac64edb274799e2bdbf245a5e7e3ec3496221f6dae29c6f9dc418c26555f15df606668aadbf1f4bf7a36bf06ae1c009082325621c5552a4363f3bbc615
7
+ data.tar.gz: ff7713955d8c90986b2aef8eb05c65a70f65a6227b8534bcad35cad6ae8b8909618d9b80662803fcf7981fa59177d4e82ac03f889f03112e2e86f5ec8902861f
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ end
8
8
 
9
9
  group :test do
10
10
  gem 'rspec'
11
- gem 'webmock', '~> 1.22', '<= 1.22.3'
11
+ gem 'webmock', '~> 2.1'
12
12
  end
13
13
 
14
14
  # Specify your gem's dependencies in stattleship-ruby.gemspec
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://www.stattleship.com) - The Sports Data API you've always wanted
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.23'
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.23.gem
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://www.stattleship.com](https://www.stattleship.com)
43
+ * Stattleship [API Access Token from https://api.stattleship.com](https://api.stattleship.com)
44
44
 
45
45
  # Configuration
46
46
 
@@ -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](basketball_game_logs.rb)
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.since = '1 week ago'
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)
@@ -29,7 +29,7 @@ module Stattleship
29
29
  end
30
30
 
31
31
  def base_uri
32
- @base_uri ||= URI('https://www.stattleship.com')
32
+ @base_uri ||= URI('https://api.stattleship.com')
33
33
  end
34
34
 
35
35
  def http
@@ -29,7 +29,7 @@ module Stattleship
29
29
 
30
30
  def pitcher?
31
31
  position_abbreviation == 'SP' ||
32
- position_abbreviation == 'SP'
32
+ position_abbreviation == 'RP'
33
33
  end
34
34
 
35
35
  def inflielder?
@@ -1,5 +1,5 @@
1
1
  module Stattleship
2
2
  module Ruby
3
- VERSION = '0.1.23'.freeze
3
+ VERSION = '0.1.25'.freeze
4
4
  end
5
5
  end
@@ -20,7 +20,8 @@ Gem::Specification.new do |spec|
20
20
  end
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_runtime_dependency 'addressable', '~> 2.3', '<= 2.3.8'
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.23
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-05-24 00:00:00.000000000 Z
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.3'
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.3'
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