jets 3.0.20 → 3.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/jets/controller/redirection.rb +5 -5
- data/lib/jets/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: 3528d3aae63a12bcc3b82b0d9666db4b9b621122a8665f2591b655f4283c5368
|
4
|
+
data.tar.gz: edfb967cf885286ec053cb933749a1a378fa7d20fbf8952d81be518c63649d64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5f4a9ed780d249b48488dafa67cdd15e82f0d63cc70c42717a667b0ad6d22fd9b9f07cbd6435a3cdb7f2346d8e49b87c3d6265782b60c0233e608a080a2c363
|
7
|
+
data.tar.gz: a844a49e320d9b9235da7b2e48bf336801aa06f348e039cc49ee5129b173fd8bd0a5e375ca09071f262f25d8532b329cf0c45024a450b26e4b954a96827619a5
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [3.0.21] - 2021-10-21
|
7
|
+
- [#605](https://github.com/boltops-tools/jets/pull/605) use safer 302 redirect as default
|
8
|
+
|
6
9
|
## [3.0.20] - 2021-10-20
|
7
10
|
- [#603](https://github.com/boltops-tools/jets/pull/603) redirect_to: smarter handling of request xhr
|
8
11
|
- [#604](https://github.com/boltops-tools/jets/pull/604) fix redirect_to 301 and keep use default
|
@@ -15,12 +15,12 @@ class Jets::Controller
|
|
15
15
|
isBase64Encoded: false,
|
16
16
|
}
|
17
17
|
if request.xhr?
|
18
|
-
options[:content_type]
|
19
|
-
options[:status]
|
20
|
-
options[:body]
|
18
|
+
options[:content_type] ||= "application/json"
|
19
|
+
options[:status] ||= 200
|
20
|
+
options[:body] ||= JSON.dump(success: true, location: redirect_url)
|
21
21
|
else
|
22
|
-
options[:status]
|
23
|
-
options[:body]
|
22
|
+
options[:status] ||= 302
|
23
|
+
options[:body] ||= ""
|
24
24
|
end
|
25
25
|
Jets.logger.info("redirect_to options #{options}")
|
26
26
|
options = default.merge(options)
|
data/lib/jets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|