yes-core 2.4.5 → 2.5.0

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: 1015d6ea5414383b562af2eee6665410cbf5e434e849015bc679eb30c7677a28
4
- data.tar.gz: cba436f63754c8d5b74c371d83558f4deb16353fbde8d502a1e45d757971f161
3
+ metadata.gz: 657f96d2dc9f3d762a91b42976783cfead117aae5be6473e547b4e1568cc8e83
4
+ data.tar.gz: 0c5b51b64f133b09cf14ef1d9c99fc7fcdd94f67f479f410dca443545b13ce56
5
5
  SHA512:
6
- metadata.gz: 3d9abb7576fb11421f5d8a85e67c421947659d70eb73d45317208f8f08a616778cba920fe431e6798d2ffcbeee24085c89aea89659b4579b74afa84464630cf0
7
- data.tar.gz: fb8e7e151455887d7c7175778508be1c357c47e517ed170bca6e6f535bbf338c32c50698e6e8bdc37ab7b991f9f3e7a912aefc7bd3c12eb3e0dc3310d59f6258
6
+ metadata.gz: cecd619ffb8384612a3ad7a1640fbe6ed9f8d8b73b01f0da6bc8d1892bce474af92274444d8a3c7b16e1bfc622a1cadccbc793f51d61196dd48a57abbd3e0ec5
7
+ data.tar.gz: a8f5aee284c9e77715b839b395e4aefa99375275d76d47f9003e9aaf510cd77db88c5fc39c37046523247a01e958c8e1e689da8afc0044bb0928692bd311147c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.5.0] - 2026-10-08
4
+ - See root CHANGELOG.md for details.
5
+
3
6
  ## [2.4.5] - 2026-09-23
4
7
  - See root CHANGELOG.md for details.
5
8
 
@@ -104,6 +104,15 @@ module Yes
104
104
  # #verify_token(token) and #error_classes (returns array of error classes).
105
105
  attr_accessor :auth_adapter
106
106
 
107
+ # Error classes an API controller should rescue as authentication failures: the gem's own
108
+ # AuthenticationError plus the classes of the configured auth adapter (if any). Computed on
109
+ # each call because the adapter is assigned in an initializer after controllers may load.
110
+ #
111
+ # @return [Array<Class>] deduplicated error classes
112
+ def auth_error_classes
113
+ [Yes::Core::AuthenticationError, *auth_adapter&.error_classes].uniq
114
+ end
115
+
107
116
  # Initializes a new configuration instance with nested hashes for class storage.
108
117
  def initialize
109
118
  @registered_classes = Hash.new do |h, k|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yes
4
4
  module Core
5
- VERSION = '2.4.5'
5
+ VERSION = '2.5.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yes-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.5
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Ritsche