isaca 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: fe3969b5653f328202b11ba505d9ce0983475d6b
4
- data.tar.gz: af5cafcff35c1b37242d0fa4d6a058999830420c
3
+ metadata.gz: c38c95789f898eb26dcd03fc06bcff1926c8c58b
4
+ data.tar.gz: 6d75fb5d7416ec8c914d6fdb4a3e3dd25a30f50e
5
5
  SHA512:
6
- metadata.gz: a7df4983212df9093dacd7c1535bd0b793aa5065c376eb8c7d128b89cf0e9e062a05ee0df526b278488b3da3e0238ad8d328f95cb9f2321b58dcfa7cff4febe7
7
- data.tar.gz: 12548e1fc6f8c86cc84c9baeacc86e36180cbfd836c2637ae90dd965c47358835fecc00ceb6b558b38269995f588e0b1936605b32ec79da3e4e4bad2ab72ef11
6
+ metadata.gz: adf4b9e63ca46bd02322db1bace60dd34318fe3c153e6c61c525aa2565e01043170395fa05e85cfb4e119a44f3dded0e3b22a0850c915786d3dee1c6aef2bb8c
7
+ data.tar.gz: 9b1ead55d0c97c50c2c7bdffb78c7bf5e4871d5f5f5d974a33ba9cccd15cf0745a3ec5f4566ff1b44730c184f6b9533b89114104ff733844f5b776fe81ecd4a8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isaca (0.1.4)
4
+ isaca (0.1.6)
5
5
  faraday (~> 0.14.0)
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ module ISACA
9
9
  def initialize(hash)
10
10
  @error = hash['Error']
11
11
  @error_code = hash['ErrorCode']
12
- @is_valid = ISACA::Helpers.parse_boolean(hash['IsValid'])
12
+ @is_valid = hash['IsValid']
13
13
  @value = hash['Value']
14
14
  end
15
15
 
@@ -3,13 +3,20 @@ module ISACA
3
3
  class GetUserDetailsByToken
4
4
  attr_accessor :imis_id
5
5
  attr_accessor :enterprise_id
6
- attr_accessor :name
6
+ attr_accessor :first_name
7
+ attr_accessor :last_name
7
8
  attr_accessor :email
9
+ attr_accessor :username
10
+ attr_accessor :country
8
11
 
9
12
  def initialize(hash)
10
13
  @imis_id = hash['ID']
11
14
  @enterprise_id = hash['Ent_ID']
12
- @name = hash['Name']
15
+ @first_name = hash['First_Name']
16
+ @last_name = hash['Last_Name']
17
+ @email = hash['Email']
18
+ @username = hash['UserName']
19
+ @country = hash['Country']
13
20
  end
14
21
  end
15
22
  end
@@ -7,7 +7,8 @@ module ISACA
7
7
  request.params['token'] = token
8
8
  end
9
9
 
10
- response.status == 200 ? ISACA::Model::GetUserDetailsByToken.new(ISACA::Helpers.parse_json(response.body)) : nil
10
+ data = JSON.parse(response.body, quirks_mode: true)
11
+ response.status == 200 ? ISACA::Model::GetUserDetailsByToken.new(ISACA::Helpers.parse_json(data)) : nil
11
12
  end
12
13
  end
13
14
  end
data/lib/isaca/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ISACA
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Orahood
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2018-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday