keratin-authn 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/keratin/authn/version.rb +1 -1
- data/lib/keratin/client.rb +2 -1
- 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: 8c8460a42cb6b34ecd0115366206cbda19e4e474
|
4
|
+
data.tar.gz: 26ccf34ff11d3da767e8e78fea9df8f883f92442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1dc1e52c700b90568b3c9c6548f703c7f1c817d9667a2ebb6fea983169de7f5c2ddff3b329e07999044b426c9023e61ebbd7f5036179a28829ed6bfc49a1000
|
7
|
+
data.tar.gz: 3efd27f4e4a586f9f978fb735ac7ab5a8e8b7277bd8ac9ad6d55e6125c2ac3f8f5e35b35ff018c9727fffe6e0f780e0310feb35b4bd2228363125e47ac982a98
|
data/lib/keratin/client.rb
CHANGED
@@ -64,7 +64,8 @@ module Keratin
|
|
64
64
|
|
65
65
|
case response = http.request(request)
|
66
66
|
when Net::HTTPSuccess
|
67
|
-
|
67
|
+
body = (response.body && !response.body.empty?) ? response.body : '{}'
|
68
|
+
return ServiceResult.new(JSON.parse(body))
|
68
69
|
when Net::HTTPRedirection
|
69
70
|
return ServiceResult.new('result' => {
|
70
71
|
'location' => response['Location']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keratin-authn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lance Ivy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-jwt
|