forest_admin_rpc_agent 1.13.0 → 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: 2d9bcccdd6bddaf597c3b6bd64243c76e1bcb225283b17e24dcfe116af71b0af
4
- data.tar.gz: d949ab1e5bb1bab4a316d1dbe33e4404a0faac47a3c849fd0a400fc01118a7fa
3
+ metadata.gz: 0b9690fe0c520b708f1891957bc4eff504eb112ca0755f3f5115c759c9df0f0e
4
+ data.tar.gz: 4bc1800efd4b1386f535caf405f609b3fc2d4401a065560aa22c89e5e56be774
5
5
  SHA512:
6
- metadata.gz: 0454e1d95ebdd070cbabf7cf33f875874f718fb83ac1485bc057cc189ead8b24763113280d70e048751a07076ca3cf6164b3861ab620bc970c7a87dfcadb748d
7
- data.tar.gz: e1defd2edce577bd293ccc247a751e93d0d34abf1e333cb5b7e4de54357290e327beaf42e0f3a6fb35c81c900c993f4a019f3ddecfd489615b9b6f449d66e9f0
6
+ metadata.gz: 683bea372c55e8bbe1c66ffda4b0246d52a7867d9d1ee7b444f23f270eaf48a6b60a13e1bb13c841c10e9f81f4b5ecace95988c076967fb1647a234cb6d200ae
7
+ data.tar.gz: 49889371b22cb5e815078c9470deea7077e71aee3d34b03735d0567386165100eb3d3681194d907e2b12318b3878328f0d56cdcfb7f2fead67db65659397ac1e
@@ -1,27 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'forest_admin_rpc_agent' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile-test", __dir__)
12
-
13
- bundle_binstub = File.expand_path("bundle", __dir__)
4
+ require "rubygems"
14
5
 
15
- if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
17
- load(bundle_binstub)
18
- else
19
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
- end
6
+ # Try to use bundler/setup if we're in a Bundler context (development or app with Gemfile)
7
+ begin
8
+ require "bundler/setup"
9
+ rescue LoadError
10
+ # No bundler available, continue with global gems
22
11
  end
23
12
 
24
- require "rubygems"
25
- require "bundler/setup"
13
+ require_relative '../lib/forest_admin_rpc_agent/thor/install'
26
14
 
27
- load Gem.bin_path("forest_admin_rpc_agent", "forest_admin_rpc_agent")
15
+ ForestAdminRpcAgent::Thor::Install.start(ARGV)
@@ -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.0"
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.0
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-10-31 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