cbs_sports 0.1.1 → 0.1.2

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: c3c65473cca427ce1c3abbedd2c62a518de22e1c
4
- data.tar.gz: e4314b1696989894159ebbf05552a97dc3743e77
3
+ metadata.gz: 954fd2edd2c5a3c044225a1755471c34de3b2395
4
+ data.tar.gz: e13c12a5db4512e0b9dc6fdbf10a4d236a30e538
5
5
  SHA512:
6
- metadata.gz: 2f3bee6a603027257b54a70fdf640815d16467eed57674cef276887109ef1585bf4cfd9b18c995407e8e1a3c67b8af2a3aca5774f3052160c451a9b2b510c457
7
- data.tar.gz: 75dc166b30fd93410192c988be574c9ab07679518cfa8c0c078286976a0cd4643b21d28d555dd05a17a93219bb1b385f485575aa304d597f6746ac90fc203795
6
+ metadata.gz: d30395209e91064172cb269bf7c7f5ecd84a254ef7d9b9c4e53dfaf4575b103f6051332310245141e7636aab9be50a6465e31d11064b92c788ec064cfa2297d7
7
+ data.tar.gz: 4445a58e4e91e1a0cc5578eb90fa7d428080526ff4821d2f31743d34e2a78873f719023f5a9de7195d139105e5dd10a70e1c5dfc90419736ee2a546f9b10c1f9
data/README.md CHANGED
@@ -23,9 +23,9 @@ Or install it yourself as:
23
23
 
24
24
  ### Client
25
25
 
26
- When you create a client you can specify the response format you want. It defaults to JSON.
26
+ When you create a client you can specify the response format you want. It defaults to JSON. You must also specify a sport for which you want data.
27
27
  ```ruby
28
- client = CBSSports.client(response_format: :json)
28
+ client = CBSSports.client(response_format: :json, sport: :baseball)
29
29
  ```
30
30
 
31
31
  ### Players
@@ -8,8 +8,9 @@ module CBSSports
8
8
 
9
9
  attr_reader :response_format
10
10
 
11
- def initialize(response_format: :json)
11
+ def initialize(response_format: :json, sport:)
12
12
  @response_format = response_format
13
+ @sport = sport
13
14
  end
14
15
 
15
16
  private
@@ -1,3 +1,3 @@
1
1
  module CBSSports
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/cbs_sports.rb CHANGED
@@ -7,8 +7,8 @@ module CBSSports
7
7
  # Alias for CBSSports::Client.new
8
8
  #
9
9
  # @return [CBSSports::Client]
10
- def client(response_format: :json)
11
- CBSSports::Client.new(response_format: response_format)
10
+ def client(response_format: :json, sport:)
11
+ CBSSports::Client.new(response_format: response_format, sport: sport)
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbs_sports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Stock