vert-core 1.0.13 → 1.0.14

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: efcc19b5c1872506cb9d75e59020db09984c94d24cd690709c26db3c4f966194
4
- data.tar.gz: a21f57805634a5f6fbb14bfcf6513c92382309d2ee004f73c955e997a7f7b932
3
+ metadata.gz: 43861cbbafbe1e9d6410050fda4af949e74e31b2eed69d9d780e18b4762e1f0b
4
+ data.tar.gz: c638c39ff50c9c564c6f8c38d6150e661a17103519097ce7fb44db567f3a56f8
5
5
  SHA512:
6
- metadata.gz: 8fe2af573b8f87f8ee20c65944a9aa1fc74c0f3ceab41ae355d627d41d294d1c90e195fd77c0ae2a2813d6bbdf8638ac6c5f724beee917b0d21e1527eb75c54e
7
- data.tar.gz: 709adf6c940017b3cf322a35d810cedff4fe73126c5e3483668592cb21cfffb830d0889b09ddd791fd95c2bdbc7508cad129b4d67bfe3adbb68caf49fc5176e2
6
+ metadata.gz: f12d181a2866e0bd90d6934c2fc453b840a542401bdd863b5f1e77c69df2743ddaa96949b9ac0f493264931004f790ec827d18fdd0f8240588b5b88e5f600860
7
+ data.tar.gz: 172bb3d173c04219c4c211f188ba2d74085caadb872705d44f4be50f7b2975951d68b87e7a98185ebbe8930f2e8aca6351b67da49feddf1288c4a209f47587b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.14] - 2026-05-24
4
+
5
+ ### Added
6
+
7
+ - `Vert::Auth::JwtAuthenticatable#jwt_authenticated?` — helper que retorna `true` após `authenticate_jwt!` ter populado o payload com sucesso. Necessário durante o rollout para usar em `before_action :foo, if: :jwt_authenticated?` (callbacks que dependem de `Vert::Current` já populado).
8
+
3
9
  ## [1.0.13] - 2026-05-24
4
10
 
5
11
  ### Added
@@ -170,6 +170,13 @@ module Vert
170
170
  @jwt_payload
171
171
  end
172
172
 
173
+ # True após `authenticate_jwt!` ter populado o payload com sucesso.
174
+ # Útil para `before_action :foo, if: :jwt_authenticated?` em callbacks
175
+ # que dependem de Vert::Current já populado.
176
+ def jwt_authenticated?
177
+ @jwt_payload.present?
178
+ end
179
+
173
180
  # Override no serviço para retornar o registro User correspondente
174
181
  # ao `sub` do JWT.
175
182
  def current_jwt_user
data/lib/vert/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vert
4
- VERSION = "1.0.13"
4
+ VERSION = "1.0.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vert-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vert Team