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: 9aada4c054b5826da771079e657cad91af9f4c6e3caf39e736dab87740d687f1
4
- data.tar.gz: 2f640269d20960a354ae2a1bc78864a2b96d8f53c411e5106983b00fac1c06ad
3
+ metadata.gz: fd5c9642aa7d7d8a7f39eacbd32244b7ff19ff0f4add9c4875e3f070aa573074
4
+ data.tar.gz: 14737b76df488fed172c488830950f7bf890d6f368c6d5a3212d8879a7e4d635
5
5
  SHA512:
6
- metadata.gz: 618cb74cb74e5e6c384ef70d1a6ae4cd8c6c08d4fd414c413bf431bde8f118cf168ef6f50f19965205221c97d48a9336cf58f8b486d8eac040fa4eea015a3bbb
7
- data.tar.gz: b3bb183a3267889467b6482b7ef0d9cb0c891f5cf00a5713974a1ca37a4db9922827dec5f9417ec75eceb4a8367355c7097c05abafd2c41e6e37867b884d4865
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({ params: params.to_unsafe_h, headers: request.headers.to_h })
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] }
@@ -1,3 +1,3 @@
1
1
  module ForestAdminRails
2
- VERSION = "1.33.1"
2
+ VERSION = "1.34.0"
3
3
  end
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.33.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-16 00:00:00.000000000 Z
12
+ date: 2026-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: base64