Skip to content

Commit 98e1d30

Browse files
committed
Documentation for modules and classes
1 parent 7ea4a36 commit 98e1d30

25 files changed

+31
-6
lines changed

.rubocop.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ AllCops:
66
- 'gemfiles/*.gemfile'
77
- 'vendor/**/*'
88

9-
Style/Documentation:
10-
Enabled: false
11-
129
Metrics/AbcSize:
1310
Max: 25
1411

lib/jwt/deprecations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module JWT
44
# Deprecations module to handle deprecation warnings in the gem
5+
# @api private
56
module Deprecations
67
class << self
78
def context

lib/jwt/encoded_token.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ def valid_signature?(algorithm:, key:)
111111
def decode_payload
112112
raise JWT::DecodeError, 'Encoded payload is empty' if encoded_payload == ''
113113

114-
if unecoded_payload?
114+
if unencoded_payload?
115115
verify_claims!(crit: ['b64'])
116116
return parse_unencoded(encoded_payload)
117117
end
118118

119119
parse_and_decode(encoded_payload)
120120
end
121121

122-
def unecoded_payload?
122+
def unencoded_payload?
123123
header['b64'] == false
124124
end
125125

lib/jwt/json.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'json'
44

55
module JWT
6-
# JSON wrapper
6+
# @api private
77
class JSON
88
class << self
99
def generate(data)

lib/jwt/jwa/ecdsa.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module JWT
44
module JWA
5+
# ECDSA signing algorithm
56
class Ecdsa
67
include JWT::JWA::SigningAlgorithm
78

lib/jwt/jwa/eddsa.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module JWT
44
module JWA
5+
# Implementation of the EdDSA family of algorithms
56
class Eddsa
67
include JWT::JWA::SigningAlgorithm
78

lib/jwt/jwa/hmac.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module JWT
44
module JWA
5+
# Implementation of the HMAC family of algorithms
56
class Hmac
67
include JWT::JWA::SigningAlgorithm
78

lib/jwt/jwa/hmac_rbnacl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module JWT
44
module JWA
5+
# Implementation of the HMAC family of algorithms (using RbNaCl)
56
class HmacRbNaCl
67
include JWT::JWA::SigningAlgorithm
78

lib/jwt/jwa/hmac_rbnacl_fixed.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module JWT
44
module JWA
5+
# Implementation of the HMAC family of algorithms (using RbNaCl prior to a certain version)
56
class HmacRbNaClFixed
67
include JWT::JWA::SigningAlgorithm
78

lib/jwt/jwa/none.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module JWT
44
module JWA
5+
# Implementation of the none algorithm
56
class None
67
include JWT::JWA::SigningAlgorithm
78

0 commit comments

Comments
 (0)