forest_admin_rpc_agent 1.13.1 → 1.13.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: 89fc9c7c92447f12f1d4396c5e28a5c9a29de0f77238a939571a01bf929f0015
4
- data.tar.gz: 13179e6d72eba67b24d216bda40674da184e64fba9e8323eb6a21e2041007267
3
+ metadata.gz: 0b9690fe0c520b708f1891957bc4eff504eb112ca0755f3f5115c759c9df0f0e
4
+ data.tar.gz: 4bc1800efd4b1386f535caf405f609b3fc2d4401a065560aa22c89e5e56be774
5
5
  SHA512:
6
- metadata.gz: ac40b4f680c2264a91613a01af958d43d27d1e0ada443f88a73e4de7a7ad7e03e17bf8af27d36a7b0dc00e570fda0151608618bb2cbe0df682a85f7808cfc58f
7
- data.tar.gz: ffb59e929fb895829e6f1006280944911ab6872cf42f02015b62b5b1b493a02bdea8886e9fb7145ca070202e3681bfb4b13ba3d2558b446d9574721305ac964f
6
+ metadata.gz: 683bea372c55e8bbe1c66ffda4b0246d52a7867d9d1ee7b444f23f270eaf48a6b60a13e1bb13c841c10e9f81f4b5ecace95988c076967fb1647a234cb6d200ae
7
+ data.tar.gz: 49889371b22cb5e815078c9470deea7077e71aee3d34b03735d0567386165100eb3d3681194d907e2b12318b3878328f0d56cdcfb7f2fead67db65659397ac1e
@@ -16,7 +16,7 @@ module ForestAdminRpcAgent
16
16
  datasource = ForestAdminRpcAgent::Facades::Container.datasource
17
17
  collection = datasource.get_collection(args[:params]['collection_name'])
18
18
 
19
- collection.create(caller, args[:params]['data']).to_json
19
+ [collection.create(caller, args[:params]['data'])].to_json
20
20
  end
21
21
  end
22
22
  end
@@ -4,7 +4,7 @@ module ForestAdminRpcAgent
4
4
  module Routes
5
5
  class DatasourceChart < BaseRoute
6
6
  def initialize
7
- super('rpc/datasource-chart', 'post', 'rpc_chart_datasource')
7
+ super('rpc-datasource-chart', 'post', 'rpc_chart_datasource')
8
8
  end
9
9
 
10
10
  def handle_request(args)
@@ -4,7 +4,7 @@ module ForestAdminRpcAgent
4
4
  module Routes
5
5
  class NativeQuery < BaseRoute
6
6
  def initialize
7
- super('rpc/native-query', 'post', 'rpc_native_query')
7
+ super('rpc-native-query', 'post', 'rpc_native_query')
8
8
  end
9
9
 
10
10
  def handle_request(args)
@@ -24,7 +24,7 @@ module ForestAdminRpcAgent
24
24
  root_datasource.live_query_connections.keys.map { |connection_name| { name: connection_name } }
25
25
  )
26
26
  end
27
- schema[:nativeQueryConnections] = connections
27
+ schema[:native_query_connections] = connections
28
28
 
29
29
  schema.to_json
30
30
  end
@@ -5,7 +5,7 @@ module ForestAdminRpcAgent
5
5
  class Sse
6
6
  DEFAULT_HEARTBEAT_INTERVAL = 1
7
7
 
8
- def initialize(url = 'rpc/sse', method = 'get', name = 'rpc_sse', heartbeat_interval: DEFAULT_HEARTBEAT_INTERVAL)
8
+ def initialize(url = 'rpc-sse', method = 'get', name = 'rpc_sse', heartbeat_interval: DEFAULT_HEARTBEAT_INTERVAL)
9
9
  @url = url
10
10
  @method = method
11
11
  @name = name
@@ -1,3 +1,3 @@
1
1
  module ForestAdminRpcAgent
2
- VERSION = "1.13.1"
2
+ VERSION = "1.13.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.13.1
4
+ version: 1.13.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: 2025-11-03 00:00:00.000000000 Z
12
+ date: 2025-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: base64