isaca 1.2.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +3 -3
- data/isaca.gemspec +1 -1
- data/lib/isaca.rb +1 -0
- data/lib/isaca/expired_token_error.rb +4 -0
- data/lib/isaca/models/get_user_details_by_token.rb +2 -2
- data/lib/isaca/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e033b52fde1d5e8eeda27f3152e27080f474dc49143b95e6e92a81d42f8d62c5
|
4
|
+
data.tar.gz: f39e9eb6c21be6b5a09aa9266947bb32cb7457d3dc0079866c441a81c55fcc3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad2fd3d893c73a6df2052876e15e37ccd1d0f03d73207446784d9b9de8f88dc43de829f16ebc36ef63d04497423dbe49c8d3b3a3aad3876c0407f3010591a8f3
|
7
|
+
data.tar.gz: 648f13a08daddb1bb4a738f279b789ab82b0a48f64c5543b6e530e87b0d6e54917ac8308a3642f75043d1656708d865b5b69ef340850195713163d7abca8fa15
|
data/Gemfile.lock
CHANGED
data/isaca.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_dependency "faraday", "~> 0.14
|
23
|
+
spec.add_dependency "faraday", "~> 0.14"
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.16"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency "minitest", "~> 5.0"
|
data/lib/isaca.rb
CHANGED
@@ -23,6 +23,7 @@ require 'isaca/partner_key_error'
|
|
23
23
|
require 'isaca/session_error'
|
24
24
|
require 'isaca/attribute_error'
|
25
25
|
require 'isaca/configuration_error'
|
26
|
+
require 'isaca/expired_token_error'
|
26
27
|
|
27
28
|
# Everything else where order load order does not matter
|
28
29
|
require 'isaca/version'
|
@@ -50,10 +50,10 @@ module Isaca
|
|
50
50
|
# @option params [String] :PRIVACY
|
51
51
|
# @option params [String] :MARKETING
|
52
52
|
#
|
53
|
-
# @raise [Isaca::
|
53
|
+
# @raise [Isaca::ExpiredTokenError] Raises error if IMIS ID is not present so token must be expired.
|
54
54
|
def initialize(params)
|
55
55
|
if params[:ID].to_s.strip.empty?
|
56
|
-
raise
|
56
|
+
raise ExpiredTokenError.new('Your session has expired. Please sign in.')
|
57
57
|
else
|
58
58
|
@imis_id = params[:ID]
|
59
59
|
end
|
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.
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2019-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.14
|
19
|
+
version: '0.14'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.14
|
26
|
+
version: '0.14'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/isaca/attribute_error.rb
|
129
129
|
- lib/isaca/configuration_error.rb
|
130
130
|
- lib/isaca/connection_error.rb
|
131
|
+
- lib/isaca/expired_token_error.rb
|
131
132
|
- lib/isaca/helpers.rb
|
132
133
|
- lib/isaca/models/authenticate_user.rb
|
133
134
|
- lib/isaca/models/countries.rb
|
@@ -164,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
165
|
version: '0'
|
165
166
|
requirements: []
|
166
167
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.7.7
|
168
169
|
signing_key:
|
169
170
|
specification_version: 4
|
170
171
|
summary: A wrapper for the ISACA Partners API
|