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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/rottweiler/authentication.rb +2 -2
- data/lib/rottweiler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99a396d0910e32f92ddfc8bd99666f14aa48e3d0b353b557825e698a0159cb26
|
|
4
|
+
data.tar.gz: 76a396c1a3a93d87bc2a6c590b5e5190174fca143f5d469520c775a35c007319
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
data/lib/rottweiler/version.rb
CHANGED