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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2537fd3a4ca40f8436937a10bad9dc381c699686
4
- data.tar.gz: 8d750bc6f4bbf9451670ee59b5b401ccd0187ddd
2
+ SHA256:
3
+ metadata.gz: e033b52fde1d5e8eeda27f3152e27080f474dc49143b95e6e92a81d42f8d62c5
4
+ data.tar.gz: f39e9eb6c21be6b5a09aa9266947bb32cb7457d3dc0079866c441a81c55fcc3c
5
5
  SHA512:
6
- metadata.gz: ca89b5a9fed40b291dcadf2288b2ae389e70323d61b0b220009caaf1070ba067d937138d15feea4dcbbdfd6d4612cdd37179e0898b4338680187237cfc026c9b
7
- data.tar.gz: 6dbaac058ad0222f0d5f5f3ae2e0e0c89d8542c6258357205a18d9e972990fbe6e5cd6f39f139562c830e4ef7d8c3a2626ce19036ebce2fdc63a23bfd4ee95be
6
+ metadata.gz: ad2fd3d893c73a6df2052876e15e37ccd1d0f03d73207446784d9b9de8f88dc43de829f16ebc36ef63d04497423dbe49c8d3b3a3aad3876c0407f3010591a8f3
7
+ data.tar.gz: 648f13a08daddb1bb4a738f279b789ab82b0a48f64c5543b6e530e87b0d6e54917ac8308a3642f75043d1656708d865b5b69ef340850195713163d7abca8fa15
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isaca (1.2.3)
5
- faraday (~> 0.14.0)
4
+ isaca (1.3.0)
5
+ faraday (~> 0.14)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -69,4 +69,4 @@ DEPENDENCIES
69
69
  rake (~> 10.0)
70
70
 
71
71
  BUNDLED WITH
72
- 1.16.0
72
+ 1.16.3
@@ -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.0"
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"
@@ -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'
@@ -0,0 +1,4 @@
1
+ module Isaca
2
+ class ExpiredTokenError < ServiceError
3
+ end
4
+ end
@@ -50,10 +50,10 @@ module Isaca
50
50
  # @option params [String] :PRIVACY
51
51
  # @option params [String] :MARKETING
52
52
  #
53
- # @raise [Isaca::ServiceError] Raises error if IMIS ID is not present.
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 ServiceError.new('User with given IMIS ID not found')
56
+ raise ExpiredTokenError.new('Your session has expired. Please sign in.')
57
57
  else
58
58
  @imis_id = params[:ID]
59
59
  end
@@ -1,3 +1,3 @@
1
1
  module Isaca
2
- VERSION = "1.2.3"
2
+ VERSION = "1.3.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.2.3
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: 2018-07-27 00:00:00.000000000 Z
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.0
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.0
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.6.14
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