jets 3.0.20 → 3.0.21

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 549f5889b18b5a6dc74ec29259f874a80a6064291b1598ef92c4fd0cdcdc499b
4
- data.tar.gz: 1b6a1b5534296e24729763c26b9c9aeba359412aa13da1fad9912d186c1cbef5
3
+ metadata.gz: 3528d3aae63a12bcc3b82b0d9666db4b9b621122a8665f2591b655f4283c5368
4
+ data.tar.gz: edfb967cf885286ec053cb933749a1a378fa7d20fbf8952d81be518c63649d64
5
5
  SHA512:
6
- metadata.gz: bc852f9754df45b1b8098a44de6d8b238554ad6ac8baacc005d7b2ce7a6d0a352ae12e19c6f232e8eef1d51fd1fc3fca2326025eeb4b3794d6b5c769b9748fa5
7
- data.tar.gz: 818e6be78492e348119d083bc50ac91a34cf63f1e4a1785e4e1f96250418ba391388b876055b1f4916ef9a5c53dab59a1d10732b1d27d2f14ea7d64989ba7b96
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] = "application/json"
19
- options[:status] = 200
20
- options[:body] = JSON.dump(success: true, location: redirect_url)
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] = 301
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
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "3.0.20"
2
+ VERSION = "3.0.21"
3
3
  end
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.20
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-20 00:00:00.000000000 Z
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer