inertia_rails 2.0.0 → 2.0.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 +4 -0
- data/lib/inertia_rails/middleware.rb +2 -2
- data/lib/inertia_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e99464a3b4534b1ccb484be532f15a11cf6883a13ea3e25643e6546a6934cc9
|
4
|
+
data.tar.gz: da8e75d1927615db2b2421cffeec4b34ce4a01649756294be11520a910baeb54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da00b4ce0a9652fdc6b68988fcae4d6ad70caafd39574e6dd369e4e71f24c9a283323910aaeaef55fe17c50521d933bac3198e999806fd6629719795228ce5a6
|
7
|
+
data.tar.gz: '08b1a351fb8314ae370323dd9f374f59c507a4f8d9e9504e1bab8904d633bcfa4b9dc4f92c4ee2facd1d469deded86923067f315ca7b4cce184162d783151e21'
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [2.0.1] - 2022-07-12
|
8
|
+
|
9
|
+
* Fix for a middleware issue where global state could be polluted if an exception occurs in a request. Thanks @ElMassimo!
|
10
|
+
|
7
11
|
## [2.0.0] - 2022-06-20
|
8
12
|
|
9
13
|
* Fix an issue with Rails 7.0. Thanks @0xDing and @aviemet!
|
@@ -7,6 +7,8 @@ module InertiaRails
|
|
7
7
|
def call(env)
|
8
8
|
InertiaRailsRequest.new(@app, env)
|
9
9
|
.response
|
10
|
+
ensure
|
11
|
+
::InertiaRails.reset!
|
10
12
|
end
|
11
13
|
|
12
14
|
class InertiaRailsRequest
|
@@ -19,8 +21,6 @@ module InertiaRails
|
|
19
21
|
status, headers, body = @app.call(@env)
|
20
22
|
request = ActionDispatch::Request.new(@env)
|
21
23
|
|
22
|
-
::InertiaRails.reset!
|
23
|
-
|
24
24
|
# Inertia errors are added to the session via redirect_to
|
25
25
|
request.session.delete(:inertia_errors) unless keep_inertia_errors?(status)
|
26
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inertia_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Knoles
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|