forest_admin_agent 1.15.2 → 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: 63db5b9399d5504f015f261009c17374297261b38cf31bf0ebbb4d531c3792ae
4
- data.tar.gz: c20b23c63d3543a13d06cda0fd1e6d21a2a9d676d206fc48458c3a79d7f2e737
3
+ metadata.gz: 15c6cbb6b1cb1d6c35475674167c413353fa3e5fedaf75822629fcfda8159435
4
+ data.tar.gz: a58d74e6e83eebf306c1db260eb09bc894664375f85a2278834c677f8262923c
5
5
  SHA512:
6
- metadata.gz: da7a7d4579e8b93dc4dd74d154ce1195c9f6970f26df41d53a1b8e10ee2be3295e0f11208d44e96a67dc03805ce4d466abd070520ab0ec508b3030ddee8c9b1f
7
- data.tar.gz: 73db5c79356e3abc0f03f866555d4d5d060f84098f3bc4ca7ddd2840f37e41bbff5da673dc77989c2af0966fabd1f32adbbb1b1177bd681283da98c0e9781c73
6
+ metadata.gz: ed9a6483fb2c21cf4309dc0b27a0877397d8f93e9fa1eeca5ee3a9a000b982c3893f3565a913f59c54916973a2da3066db26a6d60899f0f7937bd6fd80e8d0ce
7
+ data.tar.gz: 84c17c5af3728db42dc5ebf6f359d89b06f902f2da01889fe2bf84e2f2b5d76f2cc30a2de29a0192d00a7b439788ae1f251de943630adbf36179e74f5cdeba66
@@ -8,6 +8,7 @@ module ForestAdminAgent
8
8
  include ForestAdminAgent::Utils::Schema
9
9
  include ForestAdminAgent::Http::Exceptions
10
10
  include ForestAdminDatasourceToolkit::Exceptions
11
+ include ForestAdminDatasourceCustomizer::DSL::DatasourceHelpers
11
12
 
12
13
  attr_reader :customizer, :container, :has_env_secret
13
14
 
@@ -37,7 +38,7 @@ module ForestAdminAgent
37
38
  end
38
39
 
39
40
  def customize_collection(name, &handle)
40
- @customizer.customize_collection(name, handle)
41
+ @customizer.customize_collection(name, &handle)
41
42
 
42
43
  self
43
44
  end
@@ -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.15.2"
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.15.2"
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.15.2
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-11-28 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