forest_admin_rpc_agent 1.36.1 → 1.36.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: b3418a53decf5cd484472c85d08d6c3137f4c8d04edc3f8218c5c4aae1c5e80e
4
- data.tar.gz: 72d1f5acb21c7a3a67690c2623ca77a99fa624efb328f966707c98eac7ae323c
3
+ metadata.gz: f04508029e636eddbfc86cf80339a1ec5279a953d1e9672c2654505bd7a7360e
4
+ data.tar.gz: 61145ffbabe48cfe3271ce34a06121c3a96422ba1febbc1aab106154b55a4b70
5
5
  SHA512:
6
- metadata.gz: d8e77dc4aea33b4a3c9dc8b9c417d9bfaa25fb305edff3b2505e69dfa66e17a0ecf7e66ae0bac23d49e658119cc978110648071c58b9b7abdceca2a48cf59169
7
- data.tar.gz: d15cad3f9e1d2b78eed3c503d4ee3d70e6c0949ad0d904bd296d30365948309fc8b1ffac6ac6331ebc1f92f3c314129f79eb5eb86f156287c16f2e75aa2ef83d
6
+ metadata.gz: 7c9c3921bda85041af2e330330969898305f1e7d953c7f13dccae48e71baaf70302641099a294dc07511566dfb8ccc1165cdfe3f48adb13036618ae7791dc22d
7
+ data.tar.gz: ff9ff2f54148d05f223872f0f8843056d6f94812290cf0e341665b7dcdce568fa3b23396891445b514bd92ebef0fca444fbda98d66bed5ff1d83ecca614f2b6d
@@ -0,0 +1,32 @@
1
+ module ForestAdminRpcAgent
2
+ module Routes
3
+ class BindingSymbol < BaseRoute
4
+ MAX_BINDS_COUNT = 10_000
5
+
6
+ def initialize
7
+ super('rpc-binding-symbol', 'post', 'rpc_binding_symbol')
8
+ end
9
+
10
+ def handle_request(args)
11
+ connection_name = args[:params]['connection_name']
12
+ datasource = ForestAdminRpcAgent::Facades::Container.datasource
13
+
14
+ datasource.build_binding_symbol(connection_name, Array.new(parse_binds_count(args[:params]['binds_count'])))
15
+ end
16
+
17
+ private
18
+
19
+ def parse_binds_count(value)
20
+ count = Integer(value, exception: false) || 0
21
+ return 0 if count.negative?
22
+
23
+ if count > MAX_BINDS_COUNT
24
+ raise ForestAdminDatasourceToolkit::Exceptions::ForestException,
25
+ "binds_count (#{count}) exceeds the maximum supported value of #{MAX_BINDS_COUNT}."
26
+ end
27
+
28
+ count
29
+ end
30
+ end
31
+ end
32
+ end
@@ -1,3 +1,3 @@
1
1
  module ForestAdminRpcAgent
2
- VERSION = "1.36.1"
2
+ VERSION = "1.36.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_rpc_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.1
4
+ version: 1.36.2
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: 2026-07-31 00:00:00.000000000 Z
12
+ date: 2026-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: base64
@@ -211,6 +211,7 @@ files:
211
211
  - lib/forest_admin_rpc_agent/routes/action_form.rb
212
212
  - lib/forest_admin_rpc_agent/routes/aggregate.rb
213
213
  - lib/forest_admin_rpc_agent/routes/base_route.rb
214
+ - lib/forest_admin_rpc_agent/routes/binding_symbol.rb
214
215
  - lib/forest_admin_rpc_agent/routes/chart.rb
215
216
  - lib/forest_admin_rpc_agent/routes/create.rb
216
217
  - lib/forest_admin_rpc_agent/routes/datasource_chart.rb