forest_admin_agent 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 003b5794d0fe2ed43b703cbcb42fa042007533c9437fdb4490ecea7a66d38e93
4
- data.tar.gz: 447548e96498ec5393edc1d4c9620b1ceefb58f90e367040afb93971bfd2cd2e
3
+ metadata.gz: a56a37cdfd7ed783868dbca000d0c4deb0ab3bfb90707d5ed1cbaa7172e60787
4
+ data.tar.gz: f9ef8417a352bca6ec087531e76c1133ad5e808ce14204e5a3c764a168505ab7
5
5
  SHA512:
6
- metadata.gz: 30c15c87c87e621428615cd99af9791f37a42184a9a5e5f1900b071765fe35c2d90057077a8f91ee2323d89bcb95d27f3fd85df97873959e667d772cc5865019
7
- data.tar.gz: ad3e5631354565adaa1c2989219f4a993567ad942f2ef199c229a0be476e80be38fa07f597ec064bea3bba28828976a9f441d0a98ded332c6a2423a2a20e7768
6
+ metadata.gz: 42469893d26c088d2f90b776908d27d706202014db2b7720b3a9c5bef07abfe7b8197e9378107e61b023017545b55518d0a34903f88583cbecef14fdc82b34b4
7
+ data.tar.gz: d7e77d8159fdd8a00b1f5f87e365ecaf57dbd3686d82402d0e4afe4545b7f891a8534186c1065cecdd2fb57a434a9d05f2fb45c9c9e91a08c8a8f9dd2589b202
@@ -2,10 +2,9 @@ module ForestAdminAgent
2
2
  module Http
3
3
  module Exceptions
4
4
  class AuthenticationOpenIdClient < HttpException
5
- def initialize(status = 401,
6
- message = 'Authentication failed with OpenID Client',
5
+ def initialize(message = 'Authentication failed with OpenID Client',
7
6
  name = 'AuthenticationOpenIdClient')
8
- super
7
+ super(401, message, name)
9
8
  end
10
9
  end
11
10
  end
@@ -1,13 +1,9 @@
1
1
  module ForestAdminAgent
2
2
  module Http
3
3
  module Exceptions
4
- class NotFoundError < StandardError
5
- attr_reader :name, :status
6
-
7
- def initialize(msg, name = 'NotFoundError')
8
- super(msg)
9
- @name = name
10
- @status = 404
4
+ class NotFoundError < HttpException
5
+ def initialize(message, name = 'NotFoundError')
6
+ super(404, message, name)
11
7
  end
12
8
  end
13
9
  end
@@ -42,9 +42,8 @@ module ForestAdminAgent
42
42
 
43
43
  def handle_authentication_callback(args = {})
44
44
  if args[:params].key?(:error)
45
- raise AuthenticationOpenIdClient.new(args[:params][:state],
46
- args[:params][:error],
47
- args[:params][:error_description])
45
+ raise AuthenticationOpenIdClient.new(args[:params][:error_description] || args[:params][:error],
46
+ args[:params][:error])
48
47
  end
49
48
 
50
49
  if args.dig(:headers, 'action_dispatch.remote_ip')
@@ -7,7 +7,7 @@ module ForestAdminAgent
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "agent-ruby"
9
9
 
10
- LIANA_VERSION = "1.2.1"
10
+ LIANA_VERSION = "1.2.2"
11
11
 
12
12
  def self.get_serialized_schema(datasource)
13
13
  schema_path = Facades::Container.cache(:schema_path)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminAgent
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu