stattleship-ruby 0.1.22 → 0.1.23

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: 3bb7487a0e1804b8eaf3c6736232859281d72fc3
4
- data.tar.gz: abfdaaedcb7d76cff31ca9e5ff6f39228039444a
3
+ metadata.gz: 3f095ceec256ee7cfe766a5decb9434a4e2867ba
4
+ data.tar.gz: 2eb51f27fa34a77d0ebf623694b9db9b9a7db3a0
5
5
  SHA512:
6
- metadata.gz: 951516c77702fd612becdb85da904bfcb8b82fe4bf57c1c0b064db1e4c22b976620848ccaa9368f176ae29909256ba74ae4775faa71d8bab1506920023596cc0
7
- data.tar.gz: c9ba9eff2c92bee84a9c610a02f96c1c74579d4dee93bc041073c54a9d75947836bf2f92d5f4769fcdd3834f1b331d9c62dd4ccf8a3c0d19277b172aa05a6c67
6
+ metadata.gz: 8ebcad2cf1947df9d8ce4d9cd47f6d771373ca987cb7109677b222fe726d44ad8580ed6793bab5d010da773e043be86b52be9258ae8d99579afc49b87c7e0519
7
+ data.tar.gz: b8e14cad2d864b0f8846d28b3be7d3a174a07c20ff416614ff9056f3c523ffee8cb05ac98fdbfe00fc81efedbefb098386388291a00b87a64fec40d4250c4538
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.23
4
+
5
+ TotalPlayerStatParams and TotalTeamStatParams extends GameTimeParams to support
6
+
7
+ * since
8
+ * on
9
+ * at
10
+ * status
11
+
12
+ parameter options.
13
+
3
14
  ## 0.1.22
4
15
 
5
16
  Populate season information on
data/README.md CHANGED
@@ -22,7 +22,7 @@ gem install stattleship-ruby
22
22
  ## Usage
23
23
 
24
24
  ```
25
- gem 'stattleship-ruby', '~> 0.1.22'
25
+ gem 'stattleship-ruby', '~> 0.1.23'
26
26
  ```
27
27
 
28
28
  ### Build
@@ -34,7 +34,7 @@ gem build stattleship-ruby.gemspec
34
34
  ### Install
35
35
 
36
36
  ```
37
- gem install stattleship-ruby-0.1.22.gem
37
+ gem install stattleship-ruby-0.1.23.gem
38
38
  ```
39
39
  ## Prerequisites
40
40
 
@@ -1,7 +1,7 @@
1
1
  module Stattleship
2
2
  module Params
3
3
  class GameTimeParams < Stattleship::Params::QueryParams
4
- attr_accessor :season_id, :interval_type, :status, :on, :since
4
+ attr_accessor :season_id, :interval_type, :status, :on, :since, :week
5
5
 
6
6
  def params
7
7
  {
@@ -10,6 +10,7 @@ module Stattleship
10
10
  'status' => status,
11
11
  'on' => on,
12
12
  'since' => since,
13
+ 'week' => week,
13
14
  }
14
15
  end
15
16
  end
@@ -1,13 +1,13 @@
1
1
  module Stattleship
2
2
  module Params
3
- class TotalPlayerStatParams < Stattleship::Params::QueryParams
4
- attr_accessor :interval_type, :player_id, :stat, :type
3
+ class TotalPlayerStatParams < Stattleship::Params::GameTimeParams
4
+ attr_accessor :interval_type, :player_id, :stat, :type, :week, :game_id
5
5
 
6
6
  private
7
7
 
8
8
  def params
9
9
  super.merge({
10
- 'interval_type' => interval_type,
10
+ 'game_id' => game_id,
11
11
  'player_id' => player_id,
12
12
  'stat' => stat,
13
13
  'type' => type,
@@ -1,14 +1,14 @@
1
1
  module Stattleship
2
2
  module Params
3
- class TotalTeamStatParams < Stattleship::Params::QueryParams
4
- attr_accessor :interval_type, :team_id, :stat
3
+ class TotalTeamStatParams < Stattleship::Params::GameTimeParams
4
+ attr_accessor :interval_type, :team_id, :stat, :game_id
5
5
  attr_reader :type
6
6
 
7
7
  private
8
8
 
9
9
  def params
10
10
  {
11
- 'interval_type' => interval_type,
11
+ 'game_id' => game_id,
12
12
  'team_id' => team_id,
13
13
  'stat' => stat,
14
14
  'type' => type,
@@ -1,5 +1,5 @@
1
1
  module Stattleship
2
2
  module Ruby
3
- VERSION = '0.1.22'.freeze
3
+ VERSION = '0.1.23'.freeze
4
4
  end
5
5
  end
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.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stattleship