Skip to content

Commit

Permalink
Do not warn about deprecations yet
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Oct 3, 2024
1 parent bb66d8c commit c0f45c5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/jwt/claims.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module Claims
class << self
# @deprecated Use {verify_payload!} instead. Will be removed in the next major version of ruby-jwt.
def verify!(payload, options)
Deprecations.warning('The ::JWT::Claims.verify! method is deprecated will be removed in the next major version of ruby-jwt')
DecodeVerifier.verify!(payload, options)
end

Expand Down
2 changes: 0 additions & 2 deletions lib/jwt/claims/numeric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def verify!
def self.new(*args)
return super if args.empty?

Deprecations.warning('Calling ::JWT::Claims::Numeric.new with the payload will be removed in the next major version of ruby-jwt')
Compat.new(*args)
end

Expand All @@ -31,7 +30,6 @@ def verify!(context:)
end

def self.verify!(payload:, **_args)
Deprecations.warning('Calling ::JWT::Claims::Numeric.verify! with the payload will be removed in the next major version of ruby-jwt')
JWT::Claims.verify_payload!(payload, :numeric)
end

Expand Down
1 change: 0 additions & 1 deletion lib/jwt/claims_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
module JWT
class ClaimsValidator
def initialize(payload)
Deprecations.warning('The ::JWT::ClaimsValidator class is deprecated and will be removed in the next major version of ruby-jwt')
@payload = payload
end

Expand Down
1 change: 0 additions & 1 deletion lib/jwt/jwa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def resolve(algorithm)
end

def create(algorithm)
Deprecations.warning('The ::JWT::JWA.create method is deprecated and will be removed in the next major version of ruby-jwt.')
resolve(algorithm)
end
end
Expand Down
2 changes: 0 additions & 2 deletions lib/jwt/verify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ class << self
end

def verify_claims(payload, options)
Deprecations.warning('The ::JWT::Verify.verify_claims method is deprecated and will be removed in the next major version of ruby-jwt')
::JWT::Claims.verify!(payload, options)
end
end

def initialize(payload, options)
Deprecations.warning('The ::JWT::Verify class is deprecated and will be removed in the next major version of ruby-jwt')
@payload = payload
@options = DEFAULTS.merge(options)
end
Expand Down

0 comments on commit c0f45c5

Please sign in to comment.