forest_admin_rails 1.0.0.pre.beta.105 → 1.0.0.pre.beta.106

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: 47e860a36a348dd4cd159ee566b3a4444f8a8165e1e44b41d1a43b2531b29e3b
4
- data.tar.gz: dbe7760e848a4c6db2eabf2593fe844aad355a69b18ddbb612b94c379c45b0c2
3
+ metadata.gz: b0af9b4ae1a4b559ae147c05c405c76e68bdacebbb442a2d48dfd4ad38a7842a
4
+ data.tar.gz: f3ae27b6ff396b279836ce36bc2aa046374a468810f8d1ddf90f4eccbedecdf9
5
5
  SHA512:
6
- metadata.gz: c8504d2c001d368457f23b100015b884928f2fa3ec990bac883419ce9906b13cb1ee295a2eebe845feefd3ecca43e533dd3671bf8cc4342f5383f5e112f47318
7
- data.tar.gz: 46cbc961ffc5b77b370e45b81c65b1cf2ff507719e44a8c47795b470b3d59a7572f81e0b22ac225a361b769054122f400387e5aa5b27ec641eb9368d2ba548b2
6
+ metadata.gz: 1e23e839dafb92111bdc5266134403d216ef48e43ffb98ce6488e0521b77b73bf4202a4c4140aa676c61d49bec16e13ced85c49128495c5e779eb256215d7bbb
7
+ data.tar.gz: 7b60efc4ff168228571eaec038678d75aa6f804bb5677558a83bf60ffd47fd19360868920ca59055c53c7048638ade32832181fc1d528e067889a64898ec3d0f
@@ -40,13 +40,18 @@ module ForestAdminRails
40
40
  end
41
41
 
42
42
  def exception_handler(exception)
43
- if exception.is_a?(ForestAdminAgent::Http::Exceptions::AuthenticationOpenIdClient) ||
44
- exception.is_a?(OpenIDConnect::Exception)
43
+ case exception
44
+ when ForestAdminAgent::Http::Exceptions::AuthenticationOpenIdClient,
45
+ OpenIDConnect::Exception
45
46
  data = {
46
47
  error: exception.message,
47
48
  error_description: exception.response,
48
49
  state: exception.status
49
50
  }
51
+ when ForestAdminAgent::Error
52
+ data = {
53
+ error: exception.message
54
+ }
50
55
  else
51
56
  data = {
52
57
  errors: [
@@ -1,3 +1,3 @@
1
1
  module ForestAdminRails
2
- VERSION = "1.0.0-beta.105"
2
+ VERSION = "1.0.0-beta.106"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.105
4
+ version: 1.0.0.pre.beta.106
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-06-11 00:00:00.000000000 Z
12
+ date: 2025-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-configurable