keratin-authn 0.6.0 → 0.6.1

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: 3dae161e761e78559025edb67c4b5eb06898cb03
4
- data.tar.gz: 77e9e031b3c920b01b735ac315ee2343a1f0e894
3
+ metadata.gz: 8c8460a42cb6b34ecd0115366206cbda19e4e474
4
+ data.tar.gz: 26ccf34ff11d3da767e8e78fea9df8f883f92442
5
5
  SHA512:
6
- metadata.gz: c338e632b1e0de5af48d167a2aee87b2b2d9bde9a5df115a8d43396f9ebe66e5fd991641ad0d458bf3249179851173a2d5c9a13637d014872f16e1655f775c29
7
- data.tar.gz: 76178336d908368af7705d1e0a3f522d70a4c6b82007ad0a763aedd549692aaed804adc140767c4f0cc8b04027b0c72c1640c1599a3c2ada90331e71dd586552
6
+ metadata.gz: b1dc1e52c700b90568b3c9c6548f703c7f1c817d9667a2ebb6fea983169de7f5c2ddff3b329e07999044b426c9023e61ebbd7f5036179a28829ed6bfc49a1000
7
+ data.tar.gz: 3efd27f4e4a586f9f978fb735ac7ab5a8e8b7277bd8ac9ad6d55e6125c2ac3f8f5e35b35ff018c9727fffe6e0f780e0310feb35b4bd2228363125e47ac982a98
@@ -1,5 +1,5 @@
1
1
  module Keratin # rubocop:disable Style/ClassAndModuleChildren
2
2
  module AuthN
3
- VERSION = '0.6.0'
3
+ VERSION = '0.6.1'
4
4
  end
5
5
  end
@@ -64,7 +64,8 @@ module Keratin
64
64
 
65
65
  case response = http.request(request)
66
66
  when Net::HTTPSuccess
67
- return ServiceResult.new(JSON.parse(response.body))
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-jwt