jwt 2.9.2 → 2.9.3

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: bd2c497012269d18de9e39316124f41be2e7b095fa25068f4eb1a9e82ce74bcb
4
- data.tar.gz: ae2c8d4ad25c8c49aa00c7c3e75ff80fab5eb59be7b76cb9ee4e272200e53b30
3
+ metadata.gz: ce035519b0df530866af63d7dd6cb267490700e9458fc9c32fb0bb15be446f6e
4
+ data.tar.gz: 94fd6a38f0e3c91407b04aa254d568e113877e7dcdcb4b923c28b6a320587119
5
5
  SHA512:
6
- metadata.gz: 20ffc73333a32ef4ff3c15972f9487b16cb191fadd9980ae1895b4a0a2ce3074a5d51e2183b36aa98abd3b1e9822f2546e20fc39dd60d193c08e9f30a3329624
7
- data.tar.gz: 1500f0aef9ba50725c8090021ad5be31e100733a502e069c93b6caa6fce58b0e0b48704cccf0efab7e868655a572ba65eb7c96681f9f184bd0337515bb847966
6
+ metadata.gz: aaf541769af85436646e45a61e0f3a57d75a88e640f4a811eff35d8be61285dc77b1741e79147cf435fed5b51519863fc027722d43805c3457a159d8e235f568
7
+ data.tar.gz: f548c7bcfac5c31520ba0a1cc1b5dd546cf600277667109e7c33fde167138a3a29a930cf127cc51a7546e5b4c14e5e093a8279949107cd0d0062d016067a1723
data/CHANGELOG.md CHANGED
@@ -15,13 +15,21 @@ Notable changes in the upcoming **version 3.0**:
15
15
  - The `::JWT::Claims::verify!` method will be removed in favor of `::JWT::Claims::verify_payload!`.
16
16
  - The `::JWT::JWA.create` method will be removed. No recommended alternatives.
17
17
  - The `::JWT::Verify` class will be removed in favor of the functionality provided by `::JWT::Claims`.
18
- - Calling `::JWT::Claims::Numeric.new` with a payload will be removed in favor of `::JWT::Claims::verify_payload!(payload, :numeric)`
19
- - Calling `::JWT::Claims::Numeric.verify!` with a payload will be removed in favor of `::JWT::Claims::verify_payload!(payload, :numeric)`
18
+ - Calling `::JWT::Claims::Numeric.new` with a payload will be removed in favor of `::JWT::Claims::verify_payload!(payload, :numeric)`.
19
+ - Calling `::JWT::Claims::Numeric.verify!` with a payload will be removed in favor of `::JWT::Claims::verify_payload!(payload, :numeric)`.
20
20
 
21
21
  - The internal algorithms were [restructured](https://github.com/jwt/ruby-jwt/pull/607) to support extensions from separate libraries. The changes lead to a few deprecations and new requirements:
22
22
  - The `sign` and `verify` static methods on all the algorithms (`::JWT::JWA`) will be removed.
23
23
  - Custom algorithms are expected to include the `JWT::JWA::SigningAlgorithm` module.
24
24
 
25
+ ## [v2.9.3](https://github.com/jwt/ruby-jwt/tree/v2.9.3) (2024-10-03)
26
+
27
+ [Full Changelog](https://github.com/jwt/ruby-jwt/compare/v2.9.2...v2.9.3)
28
+
29
+ **Fixes and enhancements:**
30
+
31
+ - Return truthy value for `::JWT::ClaimsValidator#validate!` and `::JWT::Verify.verify_claims` [#628](https://github.com/jwt/ruby-jwt/pull/628) ([@anakinj](https://github.com/anakinj))
32
+
25
33
  ## [v2.9.2](https://github.com/jwt/ruby-jwt/tree/v2.9.2) (2024-10-03)
26
34
 
27
35
  [Full Changelog](https://github.com/jwt/ruby-jwt/compare/v2.9.1...v2.9.2)
@@ -10,6 +10,7 @@ module JWT
10
10
 
11
11
  def validate!
12
12
  Claims.verify_payload!(@payload, :numeric)
13
+ true
13
14
  end
14
15
  end
15
16
  end
data/lib/jwt/verify.rb CHANGED
@@ -16,6 +16,7 @@ module JWT
16
16
 
17
17
  def verify_claims(payload, options)
18
18
  ::JWT::Claims.verify!(payload, options)
19
+ true
19
20
  end
20
21
  end
21
22
 
data/lib/jwt/version.rb CHANGED
@@ -13,7 +13,7 @@ module JWT
13
13
  # minor version
14
14
  MINOR = 9
15
15
  # tiny version
16
- TINY = 2
16
+ TINY = 3
17
17
  # alpha, beta, etc. tag
18
18
  PRE = nil
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.2
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Rudat
@@ -177,7 +177,7 @@ licenses:
177
177
  - MIT
178
178
  metadata:
179
179
  bug_tracker_uri: https://github.com/jwt/ruby-jwt/issues
180
- changelog_uri: https://github.com/jwt/ruby-jwt/blob/v2.9.2/CHANGELOG.md
180
+ changelog_uri: https://github.com/jwt/ruby-jwt/blob/v2.9.3/CHANGELOG.md
181
181
  rubygems_mfa_required: 'true'
182
182
  post_install_message:
183
183
  rdoc_options: []