forest_admin_agent 1.16.0 → 1.16.1

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: 6de67bd422b2a2b19dddbcdcdd2f43f2ab4b4303c05fe2ff3bfa6c67ed9c147e
4
- data.tar.gz: 1a7298c579f005e48554deb0d66618e766cf50d77d8a1b053594bd69f600f16c
3
+ metadata.gz: 15c6cbb6b1cb1d6c35475674167c413353fa3e5fedaf75822629fcfda8159435
4
+ data.tar.gz: a58d74e6e83eebf306c1db260eb09bc894664375f85a2278834c677f8262923c
5
5
  SHA512:
6
- metadata.gz: ead7b18d6f0ae609932a7490ffc3bba2c096f2002d4dbf31f30a6c1a2cbdcb63249b7f2f105a5d70985b068acce9673d07cac44eaa23c626e6ab1bc7c89d108c
7
- data.tar.gz: 7c3e9ccc0c145ac2a10d3c362a6bcc8b9a5ad1facacf3f7732a9d0d9c22fb72c54cd1dc5e98621030b656eb58d64a81226924bb8fcae7eb755ace948c0632e61
6
+ metadata.gz: ed9a6483fb2c21cf4309dc0b27a0877397d8f93e9fa1eeca5ee3a9a000b982c3893f3565a913f59c54916973a2da3066db26a6d60899f0f7937bd6fd80e8d0ce
7
+ data.tar.gz: 84c17c5af3728db42dc5ebf6f359d89b06f902f2da01889fe2bf84e2f2b5d76f2cc30a2de29a0192d00a7b439788ae1f251de943630adbf36179e74f5cdeba66
@@ -38,7 +38,7 @@ module ForestAdminAgent
38
38
  return 400
39
39
  end
40
40
 
41
- error.status if error.respond_to?(:status) && error.status
41
+ return error.status if error.respond_to?(:status) && error.status
42
42
 
43
43
  case error
44
44
  when Exceptions::ValidationError, Exceptions::BadRequestError
@@ -11,7 +11,13 @@ module ForestAdminAgent
11
11
  context.datasource = ForestAdminAgent::Facades::Container.datasource
12
12
 
13
13
  if args[:params]['collection_name']
14
- context.collection = context.datasource.get_collection(args[:params]['collection_name'])
14
+ begin
15
+ context.collection = context.datasource.get_collection(args[:params]['collection_name'])
16
+ rescue ForestAdminDatasourceToolkit::Exceptions::ForestException => e
17
+ raise Http::Exceptions::NotFoundError, e.message if e.message.include?('not found')
18
+
19
+ raise
20
+ end
15
21
  end
16
22
 
17
23
  context
@@ -6,7 +6,7 @@ module ForestAdminAgent
6
6
  module Schema
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "agent-ruby"
9
- LIANA_VERSION = "1.16.0"
9
+ LIANA_VERSION = "1.16.1"
10
10
 
11
11
  def self.generate(datasource)
12
12
  datasource.collections
@@ -1,3 +1,3 @@
1
1
  module ForestAdminAgent
2
- VERSION = "1.16.0"
2
+ VERSION = "1.16.1"
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.16.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-12-02 00:00:00.000000000 Z
12
+ date: 2025-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport