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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/rails_jsdom/test_helper.rb +1 -1
- data/lib/rails_jsdom/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e994edad2df89164bf6c258b89b869184d5d724bdd71bad8b1cf075ded08b566
|
|
4
|
+
data.tar.gz: 78b8bf908d342b08dafe80de1423b9474fac4f6b63c8acd507c4f0371210eba2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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)
|
data/lib/rails_jsdom/version.rb
CHANGED