cbs_sports 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6b911492fd6baa2d20ae081eb9196f96084da02
4
- data.tar.gz: f4df88549019f01b09a6e0f0ab21055f36d18509
3
+ metadata.gz: c3c65473cca427ce1c3abbedd2c62a518de22e1c
4
+ data.tar.gz: e4314b1696989894159ebbf05552a97dc3743e77
5
5
  SHA512:
6
- metadata.gz: 5b20ad2ad523dc89e971cc091cba15d16469b7dd833d341efaa547e054afe33076fc5bec0cd0bfef8709483f1d5c014c925cea459f461b753b3d88e8d2edebc0
7
- data.tar.gz: a6f0429f03d470d7b96d6773b78dc67533d24fe71f413b8cfaf9cc91b0541e5ad32d58fda189a61395f3f3dbd49ad388cdeab4b5d5d2ce249ea920fbc19212b9
6
+ metadata.gz: 2f3bee6a603027257b54a70fdf640815d16467eed57674cef276887109ef1585bf4cfd9b18c995407e8e1a3c67b8af2a3aca5774f3052160c451a9b2b510c457
7
+ data.tar.gz: 75dc166b30fd93410192c988be574c9ab07679518cfa8c0c078286976a0cd4643b21d28d555dd05a17a93219bb1b385f485575aa304d597f6746ac90fc203795
@@ -19,13 +19,13 @@ module CBSSports
19
19
  end
20
20
 
21
21
  def build_response(response)
22
- if json?(response)
22
+ if json?
23
23
  JSON.parse(response.body, object_class: Hashie::Mash)
24
24
  end
25
25
  end
26
26
 
27
- def json?(response)
28
- response.headers.fetch("content-type").match(/json/)
27
+ def json?
28
+ response_format == :json
29
29
  end
30
30
 
31
31
  def default_options
@@ -1,3 +1,3 @@
1
1
  module CBSSports
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbs_sports
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
  - Michael Stock
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-09 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport