inertia_rails 1.9.0 → 1.9.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/inertia_rails.gemspec +1 -0
- data/lib/inertia_rails/controller.rb +7 -7
- data/lib/inertia_rails/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b998cadfc3e3285f53cee917e812536b2d735099b738cde2c6aa215480d0a78
|
|
4
|
+
data.tar.gz: e4bbfbdfafbb994db348d3ef7d6c6082227b54a92f2f5588e0eaa72b833b7491
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3afe130f99ae9d4c22976c4aca5ab5309aa407da431551432c2d150066c8f8914a8f6a30995f36bf70326f6880cdaafe9727183dcd7b63dc77c130039ecfc06c
|
|
7
|
+
data.tar.gz: 7d68480b6f781ae9533d40a891f470dbb0478b9db6b037abe267c5b32ac661152790a4ae6c7b904356dd597e1aed6804ef0609c9f96064275b91a9cde89835af
|
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
|
+
## [1.9.1] - 2021-02-10
|
|
8
|
+
|
|
9
|
+
* Define `redirect_to` and `redirect_back` as public methods for compatibility with other code using them
|
|
10
|
+
|
|
7
11
|
## [1.9.0] - 2021-01-17
|
|
8
12
|
|
|
9
13
|
* Added the same inertia awareness that redirect_to has to redirect_back
|
data/inertia_rails.gemspec
CHANGED
|
@@ -20,13 +20,6 @@ module InertiaRails
|
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
private
|
|
24
|
-
|
|
25
|
-
def inertia_location(url)
|
|
26
|
-
headers['X-Inertia-Location'] = url
|
|
27
|
-
head :conflict
|
|
28
|
-
end
|
|
29
|
-
|
|
30
23
|
def redirect_to(options = {}, response_options = {})
|
|
31
24
|
capture_inertia_errors(response_options)
|
|
32
25
|
super(options, response_options)
|
|
@@ -41,6 +34,13 @@ module InertiaRails
|
|
|
41
34
|
)
|
|
42
35
|
end
|
|
43
36
|
|
|
37
|
+
private
|
|
38
|
+
|
|
39
|
+
def inertia_location(url)
|
|
40
|
+
headers['X-Inertia-Location'] = url
|
|
41
|
+
head :conflict
|
|
42
|
+
end
|
|
43
|
+
|
|
44
44
|
def capture_inertia_errors(options)
|
|
45
45
|
if (inertia_errors = options.dig(:inertia, :errors))
|
|
46
46
|
session[:inertia_errors] = inertia_errors
|
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: 1.9.
|
|
4
|
+
version: 1.9.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: 2021-
|
|
13
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|
|
@@ -110,6 +110,20 @@ dependencies:
|
|
|
110
110
|
- - ">="
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
112
|
version: '0'
|
|
113
|
+
- !ruby/object:Gem::Dependency
|
|
114
|
+
name: responders
|
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
|
116
|
+
requirements:
|
|
117
|
+
- - ">="
|
|
118
|
+
- !ruby/object:Gem::Version
|
|
119
|
+
version: '0'
|
|
120
|
+
type: :development
|
|
121
|
+
prerelease: false
|
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
123
|
+
requirements:
|
|
124
|
+
- - ">="
|
|
125
|
+
- !ruby/object:Gem::Version
|
|
126
|
+
version: '0'
|
|
113
127
|
description:
|
|
114
128
|
email:
|
|
115
129
|
- brain@bellawatt.com
|