symphonia 6.0.0 → 6.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: e5e174021378849dc3fd8cbe38f9b407c140d93aadea592e7fd532385ecc02e6
4
- data.tar.gz: 0ac31c792dbbf173f3fd765225bd315b60bf9c9ef7bdd7f9032fd30e06f998dc
3
+ metadata.gz: f034a817b0bd541952d88dc3cba25f070c3cae9f1b41b3af8bca9fde726e5619
4
+ data.tar.gz: 73f459bc41f83962e7d4cae3025d0b14a73d8cacf7a213b657da2c481aa287b1
5
5
  SHA512:
6
- metadata.gz: a87909e917f27627228a90ae3125c08334ab391542ebb1ae1e1cf0415c2935365c3ad8cec30e3f41ca7028c250aac42839533e8ee85c316f1f8ef8208ad0cf5d
7
- data.tar.gz: ff8e4ddd13b3ba30ec4db1cfd2a2b789da0ee6a97d2787a77ca0fb5878e78bce744a282e9aa19b099a8813ea0e6551374488273899744b9906c7fd72858ecd5a
6
+ metadata.gz: 791777de872efd8f029e91ba45840d783b82be97e184d046f6becbef28317d2de307a75d8013f69c256fafc4f15ee93c56409135278fd5f18f5b816263644585
7
+ data.tar.gz: 67aceb9801e3acf318c4227d7bf41046d0a3304533493a649d80cb187369725d710aa18bd4ebdbd7c477bed5afbba64377d0b65e27b207549d2e23ad75eb3e00
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ 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
7
  ## [Unreleased]
8
+ ## [6.0.1] - 2023-07-17
9
+ ### Fixed
10
+ - fix InvalidAuthenticityToken error for json request
11
+
8
12
  ## [6.0.0] - 2023-07-11
9
13
  ### Changed
10
14
  - Upgrade to Rails 7
@@ -150,11 +150,12 @@ module Symphonia
150
150
  end
151
151
 
152
152
  def handle_unverified_request
153
- # raise an exception
154
- raise ActionController::InvalidAuthenticityToken
155
- # or destroy session, redirect
153
+ return true if current_user&.logged_in? && request.format&.json?
154
+
156
155
  current_user_session&.destroy
157
- redirect_to main_app.root_url
156
+ raise ActionController::InvalidAuthenticityToken
157
+
158
+ # redirect_to main_app.root_url
158
159
  end
159
160
 
160
161
  def store_location
@@ -1,5 +1,5 @@
1
1
  module Symphonia
2
2
 
3
- VERSION = '6.0.0'
3
+ VERSION = '6.0.1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: symphonia
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Pokorny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-13 00:00:00.000000000 Z
11
+ date: 2023-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api-pagination