forest_admin_rails 1.33.1 → 1.34.0
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: fd5c9642aa7d7d8a7f39eacbd32244b7ff19ff0f4add9c4875e3f070aa573074
|
|
4
|
+
data.tar.gz: 14737b76df488fed172c488830950f7bf890d6f368c6d5a3212d8879a7e4d635
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6054d5df5f882f1f319031ff2ee97e8fce630a1dafb7cfc1beb520c49b911b41c31f2a3b4549ba8946096771686bf44e3a2d6234418c08a3cd875d678ea7bbc
|
|
7
|
+
data.tar.gz: 495063d33529bea163e8a3afe41436ec6fa9d39055ebfb138fe34d6722db23dadfa973698c16809b7ce1db32597a1ddd698a5226521bba5ea690ae56d806c956
|
|
@@ -11,7 +11,17 @@ module ForestAdminRails
|
|
|
11
11
|
route = ForestAdminAgent::Http::Router.cached_routes[params['route_alias']]
|
|
12
12
|
|
|
13
13
|
begin
|
|
14
|
-
forest_response route[:closure].call(
|
|
14
|
+
forest_response route[:closure].call(
|
|
15
|
+
{
|
|
16
|
+
params: params.to_unsafe_h,
|
|
17
|
+
headers: request.headers.to_h,
|
|
18
|
+
# Raw request context for verbatim-forwarding routes (workflow executor proxy);
|
|
19
|
+
# other routes ignore these keys.
|
|
20
|
+
method: request.request_method,
|
|
21
|
+
query_string: request.query_string,
|
|
22
|
+
body: request.raw_post
|
|
23
|
+
}
|
|
24
|
+
)
|
|
15
25
|
rescue StandardError => e
|
|
16
26
|
exception_handler e
|
|
17
27
|
end
|
|
@@ -37,6 +47,10 @@ module ForestAdminRails
|
|
|
37
47
|
end
|
|
38
48
|
end
|
|
39
49
|
|
|
50
|
+
# Proxy routes expose response headers at the root (their `content` is the rendered body,
|
|
51
|
+
# so headers can't nest under it like Stream/File do).
|
|
52
|
+
response.headers.merge!(data[:headers]) if data[:headers].is_a?(Hash)
|
|
53
|
+
|
|
40
54
|
respond_to do |format|
|
|
41
55
|
format.json { render json: data[:content], status: data[:status] || data[:content][:status] || 200 }
|
|
42
56
|
format.csv { render plain: data[:content][:export], status: 200, filename: data[:filename] }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forest_admin_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.34.0
|
|
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-06-
|
|
12
|
+
date: 2026-06-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: base64
|