isaca 1.1.0 → 1.2.0

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: 5731ab5c9f6520fdd6f707e6494742a012ca5cb9
4
- data.tar.gz: 007ca4c7926f16168ce0c722e34f03e27766de90
3
+ metadata.gz: 8d57156e6ebd35f36f97854b8fead8439639ac51
4
+ data.tar.gz: 2297d3276014da4714fd0e6b11a922e9d061078e
5
5
  SHA512:
6
- metadata.gz: baad6f6779e27c7452349d938023ae012a7b8015c62584866c824f42250cb81e0e45cf35f952d3ae07dbfc85e852080acf8ccd90b923cc32f076258c2a9fa424
7
- data.tar.gz: e5a0df3b4085533b375d268cee2f8d04e99dc00fe3150a933ccfc9addcfc58c107580c70bc34c52e7e15bd2411c7e458265bb830b7b4302b4a606bb0f9e8316b
6
+ metadata.gz: 6631f58d5926e38f7f0adabc2a244a84a7800747853d08d03985ec523767d0e0f13005ee5ed9cd6d27c364b37ae02424f40a7771cc31dd80765b65922484ae58
7
+ data.tar.gz: 6a0fd75e896b4f129c1f67c32f4cb25ece734b410166a2a52803a236710174f49d9331971b5eb1f1555052466753c84d0205d3e56a51c15029c37ae9046a8b05
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isaca (1.0.2)
4
+ isaca (1.2.0)
5
5
  faraday (~> 0.14.0)
6
6
 
7
7
  GEM
data/lib/isaca/helpers.rb CHANGED
@@ -21,6 +21,7 @@ module Isaca
21
21
  #
22
22
  # @returns [Boolean]
23
23
  def self.parse_boolean(string)
24
+ return false if string.nil?
24
25
  string.downcase == 'true' ? true : false
25
26
  end
26
27
 
@@ -43,4 +43,4 @@ module Isaca
43
43
  end
44
44
  end
45
45
  end
46
- end
46
+ end
@@ -9,11 +9,7 @@ module Isaca
9
9
  # @return [Isaca::Model::AuthenticateUser] An object representation of the response.
10
10
  def self.get(username, password)
11
11
  response = self.send_request(username, password)
12
-
13
- model = Isaca::Model::AuthenticateUser.new(JSON.parse(response.body, {symbolize_names: true}))
14
- raise SessionError.new(model.value) unless model.is_valid?
15
-
16
- model
12
+ Isaca::Model::AuthenticateUser.new(JSON.parse(response.body, {symbolize_names: true}))
17
13
  end
18
14
 
19
15
  private
data/lib/isaca/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Isaca
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
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.1.0
4
+ version: 1.2.0
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-07-20 00:00:00.000000000 Z
11
+ date: 2018-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday