inertia_rails 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac66be3f6a11b3caa5d6fec8057f75e4be257e154b3ce77f3f2c7b8ddb38d4bc
4
- data.tar.gz: cd9891492a338447f41f10016656c369d8870dd71eacd55ce8d4c6be92f08464
3
+ metadata.gz: 3e99464a3b4534b1ccb484be532f15a11cf6883a13ea3e25643e6546a6934cc9
4
+ data.tar.gz: da8e75d1927615db2b2421cffeec4b34ce4a01649756294be11520a910baeb54
5
5
  SHA512:
6
- metadata.gz: '09beccfde8d305ae45d9afa84d9ace59337e7ae6521984f3047c10723c2ff70dcf01fe66667e51b4ab3bdd52c6d09a915d9edaace24d5aab83db571aa60fca10'
7
- data.tar.gz: 7f25e813e9bec9bd513f2608bd5892728a504b76b2cab5fb43d2067af78411a12fe02baab6f0dded2591fb095536d6dda5ee7f65d6c4691c1affdce767458c80
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
 
@@ -1,3 +1,3 @@
1
1
  module InertiaRails
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
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.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-06-20 00:00:00.000000000 Z
13
+ date: 2022-07-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails