analytics-psw 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/analytics-psw.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b96d9df2712e7cd5ba797003a3f7ba9d3b342a38
4
- data.tar.gz: 5d8da422b4a741bdea2d5a2b87243e8f43b042f0
3
+ metadata.gz: de0efb83a69a5c20b8bd58daabc909ab7301e6f1
4
+ data.tar.gz: 46c672d6321ba3f8719b65f84c268edc60a7595c
5
5
  SHA512:
6
- metadata.gz: 5572db12ed7c0a66ef4300248ed952b76ee7d41e39e9d3c95b9d8d46122616488a96e7e8b8f6e1ec39bf2f9e10f46895f818c524c79ea17b3df05ce8d9b020ea
7
- data.tar.gz: 938caa77cd889cf754069545d1be68da4e17a11afcc7755d01021fcc791fc7e9684fbd95625b9956a2e99a98bb28da7ceab9ae84d9e6f8fa77dc638169d02163
6
+ metadata.gz: e3f54f7c433b67e32d3ffc4f264f247a76a495c8479eca12357682ce7dbb3bf600d7a0bdad1c537cd2e096b47f4e9501774c0c6c3855d90027319ad6ecb92c31
7
+ data.tar.gz: d0ffdf14ff644f5e51976e9f11a4b52afa26b3d74e6dfbed718c70a9f068ceba558db85415694cc62907a479fa8c3f78944df9b92204a6672edc7843117b48d9
data/lib/analytics-psw.rb CHANGED
@@ -3,7 +3,7 @@ require 'json'
3
3
 
4
4
  class AnalyticsPSW
5
5
 
6
- VERSION = "0.0.8"
6
+ VERSION = "0.0.9"
7
7
  API_VERSION = "v#{VERSION}"
8
8
  API_URL = "/api/#{API_VERSION}/services"
9
9
  JSON_CONTENT_TYPE = 'application/json'
@@ -103,7 +103,8 @@ class AnalyticsPSW
103
103
  def parse_json_response(json_response)
104
104
  parsed_response = {}
105
105
  parsed_response['status'] = json_response.status if json_response.status
106
- parsed_response['body'] = json_response.body if json_response.body
106
+ parsed_response['body'] = json_response.body if json_response.body && json_response.body.strip != ""
107
+ parsed_response['location'] = json_response.headers['location'] if json_response.headers && json_response.headers['location']
107
108
  parsed_response
108
109
  end
109
110
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analytics-psw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Keyes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-27 00:00:00.000000000 Z
11
+ date: 2014-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler