analytics-psw 0.0.8 → 0.0.9
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 +4 -4
- data/lib/analytics-psw.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de0efb83a69a5c20b8bd58daabc909ab7301e6f1
|
|
4
|
+
data.tar.gz: 46c672d6321ba3f8719b65f84c268edc60a7595c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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-
|
|
11
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|