rottweiler 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c168adefd023647e716ea26926b56a2638d891ff0aa1dd8688addd88a20a4ca
4
- data.tar.gz: 2b2b56b75d112dc7eade9a30f70af065e1ca1cb97f7d91459c73b11f12cb20ca
3
+ metadata.gz: 99a396d0910e32f92ddfc8bd99666f14aa48e3d0b353b557825e698a0159cb26
4
+ data.tar.gz: 76a396c1a3a93d87bc2a6c590b5e5190174fca143f5d469520c775a35c007319
5
5
  SHA512:
6
- metadata.gz: 2735ce8274ce05879a251631052737cc601f7a528baf74d0716d27bcf5ee69fbcf89a47d53aad94d5aadee4352bf5e4732412873c569dcac61a13a88bdd3b773
7
- data.tar.gz: 7ddfacb3026d5f91c98349f76bfb0fac012db5f759f0910cc76d35d3b671bbaf753bd5dd2e2146186754715b11ef33db44aa793af29bf46749ff56df44695607
6
+ metadata.gz: af765e0dae58623a680030b40b444a1224d2f344da6889eb333fa98370235e719d10139f3dbab5c9c3cb7d7941e1cc75bbf421d7911639189f1f4d9a66adaf9f
7
+ data.tar.gz: 998b6286ea7f1aa54860289e9300a22b3dc831bbef083053f37b74b3e61c96ec971a823e7422481b2a2d287b465f453a65ed8d30f0187efaf130fec8a333a38a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1] - 2023-02-22
4
+
5
+ - [FIX] Correctly set the response body on authentication failure when `on_authentication_failed` is set but `render` is not called from inside the block.
6
+
3
7
  ## [0.2.0] - 2023-02-22
4
8
 
5
9
  - [NEW] Changed the way response status is set on authentication failure, which now gives more controll over response status when using `on_authentication_failed` helper.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rottweiler (0.2.0)
4
+ rottweiler (0.2.1)
5
5
  jwt (>= 2.0)
6
6
  rails (>= 5.0)
7
7
 
@@ -64,9 +64,9 @@ module Rottweiler
64
64
  instance_exec(errors, &rottweiler.auth_failed_cbk)
65
65
  elsif rottweiler.auth_failed_cbk
66
66
  send(rottweiler.auth_failed_cbk, errors)
67
- else
68
- render json: { status: response.status, path: request.path, errors: errors }
69
67
  end
68
+
69
+ render json: { status: response.status, path: request.path, errors: errors } unless performed?
70
70
  end
71
71
  end
72
72
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rottweiler
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rottweiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Demetra Opinioni.net S.r.l.