forest_admin_datasource_customizer 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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d947738b0dd9c654c63284c7e23527c7e1bf2333ec74e5cf8ddb02385fc484f7
|
|
4
|
+
data.tar.gz: 2c00b56095a393336d4a02ffc4e5892f5deb6acc518c98945a5ac738a6ca9fb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1eb95940ccae55c58de6cd0338ef21fb1a611f29510f782e7085ff09a5f0a41f2f54f8fa906dabb8cfaba7b37154abf45b4ec30de5383a0f0ecec88f1e45070c
|
|
7
|
+
data.tar.gz: f6471ac5e09a41ebe8981c71c8d62db9b74ba4f7c635bf885046ad5a7b271402a95aabb4b946bdb3f3d1b5ba11fa2bfc2c48243949009055c1b567c168a73b0a
|
|
@@ -53,6 +53,19 @@ module ForestAdminDatasourceCustomizer
|
|
|
53
53
|
ds.execute_native_query(connection_name, query, context_variables)
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
+
def build_binding_symbol(connection_name, binds)
|
|
57
|
+
unless live_query_connections.key?(connection_name)
|
|
58
|
+
raise ForestAdminDatasourceToolkit::Exceptions::ForestException,
|
|
59
|
+
"Native query connection '#{connection_name}' is unknown."
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
ds = @datasources.find do |d|
|
|
63
|
+
(d.live_query_connections || {}).key?(connection_name)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
ds.build_binding_symbol(connection_name, binds)
|
|
67
|
+
end
|
|
68
|
+
|
|
56
69
|
def add_data_source(datasource)
|
|
57
70
|
existing_names = collections.keys
|
|
58
71
|
datasource.collections.each_key do |name|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forest_admin_datasource_customizer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.36.
|
|
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: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-08-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|