rails-jsdom 0.2.0 → 0.2.1

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: 45f86b929ef671b63c8e6b8b9a842d7e7e2d4c4a8ac9dd220a2da8029fa1939a
4
- data.tar.gz: cac180571f1c66c1115c5790dede3ce340715f28148781ca830da4bff9d5170d
3
+ metadata.gz: e994edad2df89164bf6c258b89b869184d5d724bdd71bad8b1cf075ded08b566
4
+ data.tar.gz: 78b8bf908d342b08dafe80de1423b9474fac4f6b63c8acd507c4f0371210eba2
5
5
  SHA512:
6
- metadata.gz: 0af64879018f7f30e987f75bf503cb5cf9492d09ec5818599f8cd9187683640555c677cbf92c4b7cc4a9077c627ef504de8feeb2dce5690296ebd0cb2298b031
7
- data.tar.gz: cd1b748ef45109c7ff91abea238abf408212a261b59ea01df6a2e9f1a276c4f0157206a02e94fc22156211be4073225f459fc9801abd03377c2d7f9b0f83161b
6
+ metadata.gz: 9f3317df6c4401589b032c5aa07e7d5ca29a7ce82033df5722645f71c70f31543457c6ff020d267bbdc5dc021a3f5953fe5684ef3e1276bbe9108a8fce955839
7
+ data.tar.gz: f9b5a3bb28b8f161ad5069591d56ad83d0930562a174453b1cef568e5fa9276eea40b48d2e7d8b968ed72573ba4c59bf8306b18e254ba34881bfc2b87168948d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1 (2026-11-14)
4
+
5
+ ### Fixed
6
+
7
+ - A redirect after a page fetch keeps the request's headers, except the ones that describe its body, as in a browser. A form in a Turbo Frame that redirects after saving is still a frame request, so Rails renders the frame layout (#7).
8
+
3
9
  ## 0.2.0 (2026-11-14)
4
10
 
5
11
  ### Breaking changes
@@ -829,7 +829,7 @@ module RailsJsdom
829
829
 
830
830
  def rails_jsdom_request(method, path, headers:, params: nil)
831
831
  process(method.downcase.to_sym, path, params: params, headers: headers)
832
- rails_jsdom_follow_redirects(headers.slice("accept"), false)
832
+ rails_jsdom_follow_redirects(headers.except("content-type", "content-encoding", "content-language", "content-location"), false)
833
833
  end
834
834
 
835
835
  def rails_jsdom_follow_redirects(headers, redirected)
@@ -1,4 +1,4 @@
1
1
  module RailsJsdom
2
2
  # The version of the rails-jsdom gem.
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.2.1".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-jsdom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Howerton