bleacher_api 0.1.3 → 0.1.4

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: 72fac7fe1fa85dd960436f1fa3962c138f71915e
4
- data.tar.gz: 5b26b5e8d88427b8c4702795fabc0e988ef65612
3
+ metadata.gz: d00799ae091ab5fba6befde37dd05aafc345f932
4
+ data.tar.gz: b945d935bd6914c5770a6cd92c3f8041b31d02e7
5
5
  SHA512:
6
- metadata.gz: 0aa91a68dc269e6f5d460ad8d72971a3adb1760039eaee8b327562d83ad26f8ffdb686ad6ba7afdb2908e3861008272a8e23b9c7e8cd79c6223fbd1dc3705252
7
- data.tar.gz: 31df598505f70ff2299187b1da9d0f634b863f0c31aef187d1f4f93139621f3505bd36bddba17a99145d450d0682e1c4f948f115b2d44f80f24516bcf49f1190
6
+ metadata.gz: f504e0d42f96eef095f5445c66ef3b62cf689d403214a288322ff2ff8dee5bf8a88d88b2220759c41f4161a1bfbbcb0509e771f74671af46b1cb97c010f4ceaf
7
+ data.tar.gz: f216f7c48aea644d7688dac69e81d785e139c966ff88ff7727c2e447be028d850f29331999b253ddbc4154803b255b42a3e223c0cfabefc1aa43798a6ed215c6
@@ -1,5 +1,5 @@
1
1
  name: bleacher_api
2
- version: 0.1.3
2
+ version: 0.1.4
3
3
  authors:
4
4
  - Bleacher Report
5
5
  email: wwelsh@bleacherreport.com
@@ -17,7 +17,7 @@ class BleacherApi
17
17
  data, old_data = {}, data
18
18
  data[type == :get ? :query : :body] = old_data
19
19
  output = send(type, "/api/#{path}.json", data)
20
- if output.headers['status'].include?('200')
20
+ if output.code == 200
21
21
  output
22
22
  else
23
23
  false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bleacher_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bleacher Report