isaca 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/isaca/requests/get_user_details_by_token.rb +7 -1
- data/lib/isaca/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48308a55c6827b26fd901de0b458fe22a83d4164ad499b9598e1d67f48451799
|
4
|
+
data.tar.gz: 9f7bcf7726a601ece69c9965afea1654197525c0cdabf853326824d6ac6651f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8444ee8083ea72dc71ff60dd2c56568e69571edb0bd38b75c8ef47480507097a0d39eb1b5671f6b30fe1f11ce48be248ecfb1d87a8c00547ed57f0c0530230f0
|
7
|
+
data.tar.gz: 4a211c8cfe984de43b0715cc9699d04165ae3d789afa0b58d64f92c2588c2df5d1e602aecb34855fb703a62639f51125d6f68b93ed0333377c441744a629cd3d
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
isaca (1.3.
|
4
|
+
isaca (1.3.1)
|
5
5
|
faraday (~> 0.14)
|
6
6
|
|
7
7
|
GEM
|
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
ansi (1.5.0)
|
11
11
|
builder (3.2.3)
|
12
12
|
coderay (1.1.2)
|
13
|
-
faraday (0.
|
13
|
+
faraday (0.15.4)
|
14
14
|
multipart-post (>= 1.2, < 3)
|
15
15
|
ffi (1.9.25)
|
16
16
|
formatador (0.2.5)
|
@@ -69,4 +69,4 @@ DEPENDENCIES
|
|
69
69
|
rake (~> 10.0)
|
70
70
|
|
71
71
|
BUNDLED WITH
|
72
|
-
1.
|
72
|
+
1.17.3
|
@@ -10,8 +10,14 @@ module Isaca
|
|
10
10
|
# @return [Isaca::Model::GetUserDetailsByToken] An object representation of the response
|
11
11
|
def self.get(token)
|
12
12
|
response = self.send_request(token)
|
13
|
+
data = JSON.parse(response.body, quirks_mode: true)
|
14
|
+
|
15
|
+
if data.instance_of?(String)
|
16
|
+
data = JSON.parse(JSON.parse(response.body, quirks_mode: true), {symbolize_names: true})
|
17
|
+
else
|
18
|
+
data = JSON.parse(response.body, {symbolize_names: true})
|
19
|
+
end
|
13
20
|
|
14
|
-
data = JSON.parse(JSON.parse(response.body, quirks_mode: true), {symbolize_names: true})
|
15
21
|
Isaca::Model::GetUserDetailsByToken.new(data)
|
16
22
|
end
|
17
23
|
|
data/lib/isaca/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isaca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Orahood
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -164,8 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
|
168
|
-
rubygems_version: 2.7.7
|
167
|
+
rubygems_version: 3.0.3
|
169
168
|
signing_key:
|
170
169
|
specification_version: 4
|
171
170
|
summary: A wrapper for the ISACA Partners API
|