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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e033b52fde1d5e8eeda27f3152e27080f474dc49143b95e6e92a81d42f8d62c5
4
- data.tar.gz: f39e9eb6c21be6b5a09aa9266947bb32cb7457d3dc0079866c441a81c55fcc3c
3
+ metadata.gz: 48308a55c6827b26fd901de0b458fe22a83d4164ad499b9598e1d67f48451799
4
+ data.tar.gz: 9f7bcf7726a601ece69c9965afea1654197525c0cdabf853326824d6ac6651f6
5
5
  SHA512:
6
- metadata.gz: ad2fd3d893c73a6df2052876e15e37ccd1d0f03d73207446784d9b9de8f88dc43de829f16ebc36ef63d04497423dbe49c8d3b3a3aad3876c0407f3010591a8f3
7
- data.tar.gz: 648f13a08daddb1bb4a738f279b789ab82b0a48f64c5543b6e530e87b0d6e54917ac8308a3642f75043d1656708d865b5b69ef340850195713163d7abca8fa15
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.0)
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.14.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.16.3
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
@@ -1,3 +1,3 @@
1
1
  module Isaca
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
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.0
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-01-18 00:00:00.000000000 Z
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
- rubyforge_project:
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