jwt 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d98e35d5343562d2f47fd7d89dfae4f4cf28b22eb10bb2e4454d28e38a09bdfa
4
- data.tar.gz: d0856bbf4805814fea4b370473a8d4f26381b8c5f8b76720bafb87b0a1e0119a
3
+ metadata.gz: 52634c4d49dde601c2061590da9c75e1202c6f457d7e72f86081b9ff1ab4bd66
4
+ data.tar.gz: 9b6ce357479e71e5c04b390d2fcb03ae7bdde4f1fd028de2c59a988aca3aba9b
5
5
  SHA512:
6
- metadata.gz: a97780005e6bc459d164aadbad6bfe43a524a836cdfb78d0578dadbca124ac900f1067e40bdbb713af821f7500994a7e4ade3e02c4d8b6fe386312fb969dea84
7
- data.tar.gz: 58707c50cbba56548049f05a79363ac8d69e0489a3a32dbcc7caafc7f75125d14b04c0d8123fd62648cf7697cedabced3cdbc5f83cf8c78dc7c241686cdf524f
6
+ metadata.gz: dd81e85c470265ae1f91bd263e52e1d4dc5448274fdfc3233f074fec75a9e4752699653244814bc6d4e7d1d0d15bd65daee70012d542165185486903fa52be76
7
+ data.tar.gz: 116dc782f864cfbfe742b85fc7a9a487df580540f50efe120841bc5576093f6f18f684e65dc3a0f107c45c11145ae8cb37ba77e3bd8fd2a1f70e44c331043382
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: test
3
+ on:
4
+ push:
5
+ branches:
6
+ - "*"
7
+ pull_request:
8
+ branches:
9
+ - "*"
10
+ jobs:
11
+ lint:
12
+ name: RuboCop
13
+ timeout-minutes: 30
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: "2.4"
21
+ bundler-cache: true
22
+ - name: Run RuboCop
23
+ run: bundle exec rubocop
24
+ test:
25
+ strategy:
26
+ fail-fast: false
27
+ matrix:
28
+ ruby:
29
+ - 2.3
30
+ - 2.4
31
+ - 2.5
32
+ - 2.6
33
+ - 2.7
34
+ - 3.0
35
+ gemfile:
36
+ - gemfiles/standalone.gemfile
37
+ - gemfiles/openssl.gemfile
38
+ - gemfiles/rbnacl.gemfile
39
+ experimental: [false]
40
+ include:
41
+ - ruby: 2.1
42
+ gemfile: 'gemfiles/rbnacl.gemfile'
43
+ experimental: false
44
+ - ruby: 2.2
45
+ gemfile: 'gemfiles/rbnacl.gemfile'
46
+ experimental: false
47
+ - ruby: 2.7
48
+ coverage: "true"
49
+ gemfile: 'gemfiles/rbnacl.gemfile'
50
+ - ruby: "ruby-head"
51
+ experimental: true
52
+ - ruby: "truffleruby-head"
53
+ experimental: true
54
+ runs-on: ubuntu-20.04
55
+ continue-on-error: ${{ matrix.experimental }}
56
+ env:
57
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
58
+
59
+ steps:
60
+ - uses: actions/checkout@v2
61
+
62
+ - name: Install libsodium
63
+ run: |
64
+ sudo apt-get update -q
65
+ sudo apt-get install libsodium-dev -y
66
+
67
+ - name: Set up Ruby
68
+ uses: ruby/setup-ruby@v1
69
+ with:
70
+ ruby-version: ${{ matrix.ruby }}
71
+ bundler-cache: true
72
+
73
+ - name: Run tests
74
+ run: bundle exec rspec
data/.rspec CHANGED
@@ -1 +1,2 @@
1
+ --require spec_helper
1
2
  --color
data/.rubocop.yml CHANGED
@@ -1,23 +1,18 @@
1
- AllCops:
2
- Exclude:
3
- - 'bin/**/*'
4
- - 'db/**/*'
5
- - 'config/**/*'
6
- - 'script/**/*'
1
+ inherit_from: .rubocop_todo.yml
7
2
 
8
- Rails:
9
- Enabled: true
3
+ AllCops:
4
+ TargetRubyVersion: 2.1
10
5
 
11
- Style/AlignParameters:
6
+ Layout/AlignParameters:
12
7
  EnforcedStyle: with_fixed_indentation
13
8
 
14
- Style/CaseIndentation:
9
+ Layout/CaseIndentation:
15
10
  EnforcedStyle: end
16
11
 
17
12
  Style/AsciiComments:
18
13
  Enabled: false
19
14
 
20
- Style/IndentHash:
15
+ Layout/IndentHash:
21
16
  Enabled: false
22
17
 
23
18
  Style/CollectionMethods:
@@ -42,7 +37,7 @@ Style/GuardClause:
42
37
  Style/IfUnlessModifier:
43
38
  Enabled: false
44
39
 
45
- Style/SpaceInsideHashLiteralBraces:
40
+ Layout/SpaceInsideHashLiteralBraces:
46
41
  Enabled: false
47
42
 
48
43
  Style/Lambda:
@@ -58,7 +53,7 @@ Metrics/AbcSize:
58
53
  Max: 20
59
54
 
60
55
  Metrics/ClassLength:
61
- Max: 100
56
+ Max: 101
62
57
 
63
58
  Metrics/ModuleLength:
64
59
  Max: 100
@@ -66,6 +61,10 @@ Metrics/ModuleLength:
66
61
  Metrics/LineLength:
67
62
  Enabled: false
68
63
 
64
+ Metrics/BlockLength:
65
+ Exclude:
66
+ - spec/**/*_spec.rb
67
+
69
68
  Metrics/MethodLength:
70
69
  Max: 15
71
70
 
@@ -78,10 +77,10 @@ Lint/EndAlignment:
78
77
  Style/FormatString:
79
78
  Enabled: false
80
79
 
81
- Style/MultilineMethodCallIndentation:
80
+ Layout/MultilineMethodCallIndentation:
82
81
  EnforcedStyle: indented
83
82
 
84
- Style/MultilineOperationIndentation:
83
+ Layout/MultilineOperationIndentation:
85
84
  EnforcedStyle: indented
86
85
 
87
86
  Style/WordArray:
@@ -90,7 +89,7 @@ Style/WordArray:
90
89
  Style/RedundantSelf:
91
90
  Enabled: false
92
91
 
93
- Style/AlignHash:
92
+ Layout/AlignHash:
94
93
  Enabled: true
95
94
  EnforcedLastArgumentHashStyle: always_ignore
96
95
 
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,191 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2020-12-21 23:11:43 +0200 using RuboCop version 0.52.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 2
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
+ # Include: **/*.gemspec
13
+ Gemspec/OrderedDependencies:
14
+ Exclude:
15
+ - 'ruby-jwt.gemspec'
16
+
17
+ # Offense count: 1
18
+ # Cop supports --auto-correct.
19
+ Layout/EmptyLines:
20
+ Exclude:
21
+ - 'spec/integration/readme_examples_spec.rb'
22
+
23
+ # Offense count: 1
24
+ # Cop supports --auto-correct.
25
+ # Configuration parameters: EnforcedStyle.
26
+ # SupportedStyles: empty_lines, no_empty_lines
27
+ Layout/EmptyLinesAroundBlockBody:
28
+ Exclude:
29
+ - 'spec/jwt_spec.rb'
30
+
31
+ # Offense count: 1
32
+ # Cop supports --auto-correct.
33
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
34
+ Layout/ExtraSpacing:
35
+ Exclude:
36
+ - 'spec/jwk_spec.rb'
37
+
38
+ # Offense count: 2
39
+ # Cop supports --auto-correct.
40
+ # Configuration parameters: EnforcedStyle.
41
+ # SupportedStyles: normal, rails
42
+ Layout/IndentationConsistency:
43
+ Exclude:
44
+ - 'spec/jwt_spec.rb'
45
+
46
+ # Offense count: 1
47
+ # Cop supports --auto-correct.
48
+ # Configuration parameters: Width, IgnoredPatterns.
49
+ Layout/IndentationWidth:
50
+ Exclude:
51
+ - 'spec/jwt_spec.rb'
52
+
53
+ # Offense count: 3
54
+ # Cop supports --auto-correct.
55
+ Layout/SpaceAfterComma:
56
+ Exclude:
57
+ - 'spec/jwt_spec.rb'
58
+
59
+ # Offense count: 2
60
+ # Cop supports --auto-correct.
61
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
62
+ # SupportedStyles: space, no_space
63
+ # SupportedStylesForEmptyBraces: space, no_space
64
+ Layout/SpaceBeforeBlockBraces:
65
+ Exclude:
66
+ - 'spec/jwk/ec_spec.rb'
67
+ - 'spec/jwt/verify_spec.rb'
68
+
69
+ # Offense count: 1
70
+ # Cop supports --auto-correct.
71
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
72
+ # SupportedStyles: space, no_space
73
+ # SupportedStylesForEmptyBraces: space, no_space
74
+ Layout/SpaceInsideBlockBraces:
75
+ Exclude:
76
+ - 'spec/jwt/verify_spec.rb'
77
+
78
+ # Offense count: 1
79
+ # Cop supports --auto-correct.
80
+ # Configuration parameters: EnforcedStyle.
81
+ # SupportedStyles: final_newline, final_blank_line
82
+ Layout/TrailingBlankLines:
83
+ Exclude:
84
+ - 'bin/console.rb'
85
+
86
+ # Offense count: 3
87
+ # Cop supports --auto-correct.
88
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
89
+ Lint/UnusedBlockArgument:
90
+ Exclude:
91
+ - 'spec/jwk/decode_with_jwk_spec.rb'
92
+ - 'spec/jwk/ec_spec.rb'
93
+ - 'spec/jwt/verify_spec.rb'
94
+
95
+ # Offense count: 2
96
+ Metrics/CyclomaticComplexity:
97
+ Max: 7
98
+
99
+ # Offense count: 1
100
+ Metrics/PerceivedComplexity:
101
+ Max: 8
102
+
103
+ # Offense count: 1
104
+ # Cop supports --auto-correct.
105
+ # Configuration parameters: MaxKeyValuePairs.
106
+ Performance/RedundantMerge:
107
+ Exclude:
108
+ - 'spec/jwt_spec.rb'
109
+
110
+ # Offense count: 1
111
+ # Cop supports --auto-correct.
112
+ Style/Encoding:
113
+ Exclude:
114
+ - 'lib/jwt/version.rb'
115
+
116
+ # Offense count: 1
117
+ # Cop supports --auto-correct.
118
+ # Configuration parameters: InverseMethods, InverseBlocks.
119
+ Style/InverseMethods:
120
+ Exclude:
121
+ - 'spec/jwk/ec_spec.rb'
122
+
123
+ # Offense count: 2
124
+ # Cop supports --auto-correct.
125
+ Style/MethodCallWithoutArgsParentheses:
126
+ Exclude:
127
+ - 'spec/jwt_spec.rb'
128
+
129
+ # Offense count: 2
130
+ # Configuration parameters: EnforcedStyle.
131
+ # SupportedStyles: module_function, extend_self
132
+ Style/ModuleFunction:
133
+ Exclude:
134
+ - 'lib/jwt/algos.rb'
135
+ - 'lib/jwt/signature.rb'
136
+
137
+ # Offense count: 1
138
+ # Cop supports --auto-correct.
139
+ Style/MultilineIfModifier:
140
+ Exclude:
141
+ - 'spec/integration/readme_examples_spec.rb'
142
+
143
+ # Offense count: 1
144
+ # Cop supports --auto-correct.
145
+ Style/MutableConstant:
146
+ Exclude:
147
+ - 'lib/jwt/version.rb'
148
+
149
+ # Offense count: 1
150
+ # Cop supports --auto-correct.
151
+ # Configuration parameters: Strict.
152
+ Style/NumericLiterals:
153
+ MinDigits: 6
154
+
155
+ # Offense count: 1
156
+ # Cop supports --auto-correct.
157
+ Style/ParallelAssignment:
158
+ Exclude:
159
+ - 'spec/integration/readme_examples_spec.rb'
160
+
161
+ # Offense count: 11
162
+ # Cop supports --auto-correct.
163
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
164
+ # SupportedStyles: single_quotes, double_quotes
165
+ Style/StringLiterals:
166
+ Exclude:
167
+ - 'bin/console.rb'
168
+ - 'spec/jwk/ec_spec.rb'
169
+ - 'spec/jwk/rsa_spec.rb'
170
+ - 'spec/jwk_spec.rb'
171
+ - 'spec/jwt_spec.rb'
172
+
173
+ # Offense count: 1
174
+ # Cop supports --auto-correct.
175
+ # Configuration parameters: EnforcedStyleForMultiline.
176
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
177
+ Style/TrailingCommaInArguments:
178
+ Exclude:
179
+ - 'spec/jwt_spec.rb'
180
+
181
+ # Offense count: 1
182
+ # Cop supports --auto-correct.
183
+ Style/UnlessElse:
184
+ Exclude:
185
+ - 'spec/jwt_spec.rb'
186
+
187
+ # Offense count: 162
188
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
189
+ # URISchemes: http, https
190
+ Metrics/LineLength:
191
+ Max: 420
@@ -6,7 +6,7 @@ engines:
6
6
  enabled: true
7
7
  rubocop:
8
8
  enabled: true
9
- channel: rubocop-0-49
9
+ channel: rubocop-0-52
10
10
  duplication:
11
11
  config:
12
12
  languages:
data/AUTHORS CHANGED
@@ -1,84 +1,101 @@
1
1
  Tim Rudat
2
2
  Jeff Lindsay
3
+ Joakim Antman
3
4
  A.B
4
- Emilio Cristalli
5
+ shields
5
6
  Bob Aman
7
+ Emilio Cristalli
8
+ Egon Zemmer
6
9
  Zane Shannon
10
+ Nikita Shatov
7
11
  Oliver
8
12
  Paul Battley
9
- Nikita Shatov
10
13
  blackanger
11
- Tyler Pickett
12
- James Stonehill
13
14
  Adam Michael
14
15
  Ville Lautanala
16
+ Tyler Pickett
17
+ James Stonehill
15
18
  Peter M. Goldstein
16
- Joakim Antman
19
+ Martin Emde
20
+ Richard Larocque
17
21
  Korstiaan de Ridder
18
22
  Klaas Jan Wierenga
23
+ Antonis Berkakis
19
24
  Steve Sloan
25
+ Yason Khaburzaniya
20
26
  Bill Mill
21
- Erik Michaels-Ober
22
- Brian Flethcer
23
- Jurriaan Pruis
24
- Kevin Olbrich
25
- Larry Lv
26
- Rodrigo López Dato
27
- Steven Davidovitz
28
- Tom Wey
27
+ jb08
29
28
  lukas
29
+ Rodrigo López Dato
30
30
  ojab
31
31
  sawyerzhang
32
+ Kevin Olbrich
33
+ smudge
32
34
  wohlgejm
35
+ Tom Wey
33
36
  yann ARMAND
34
- Jordan Brough
35
- Juanito Fatas
36
- Julio Lopez
37
- Zuzanna Stolińska
38
- Katelyn Kasperowicz
39
- aarongray
40
- B
41
- Adam Greene
42
- Lowell Kirsh
43
- Lucas Mazza
44
- Makoto Chiba
45
- Manuel Bustillo
46
- Marco Adkins
47
- Micah Gates
48
- Mike Eirih
49
- Mike Pastore
37
+ Brian Flethcer
38
+ Erik Michaels-Ober
39
+ Steven Davidovitz
40
+ Jurriaan Pruis
41
+ Larry Lv
50
42
  Mingan
51
43
  Mitch Birti
52
44
  Nicolas Leger
53
- Austin Kabiru
54
- Artsiom Kuts
55
- Arnaud Mesureur
56
- Ariel Salomon
57
45
  Rob Wygand
58
- danielgrippi
59
46
  Ryan Brushett
60
47
  Ryan McIlmoyl
61
- Aman Gupta
48
+ Ryan Metzler
62
49
  Steve Teti
63
- revodoge
50
+ T.J. Schuck
64
51
  Taiki Sugawara
65
- nycvotes-dev
66
- Alexandr Kostrikov
52
+ Takehiro Adachi
67
53
  Tobias Haar
68
54
  Toby Pinder
69
- rono23
70
55
  Tomé Duarte
71
56
  Travis Hunter
72
- Alexander Boyd
73
57
  Yuji Yaginuma
58
+ Zuzanna Stolińska
59
+ aarongray
60
+ danielgrippi
61
+ nycvotes-dev
62
+ revodoge
63
+ rono23
64
+ RahulBajaj
65
+ Adam Greene
66
+ Alexander Boyd
67
+ Alexandr Kostrikov
68
+ Aman Gupta
69
+ Ariel Salomon
70
+ Arnaud Mesureur
71
+ Artsiom Kuts
72
+ Austin Kabiru
73
+ B
74
+ Brandon Keepers
75
+ Dan Leyden
76
+ Dave Grijalva
77
+ Dorian Marié
74
78
  Ernie Miller
75
79
  Evgeni Golov
76
80
  Ewoud Kohl van Wijngaarden
81
+ HoneyryderChuck
82
+ Igor Victor
77
83
  Ilyaaaaaaaaaaaaa Zhitomirskiy
78
- Dorian Marié
79
- Dave Grijalva
80
84
  Jens Hausherr
81
85
  Jeremiah Wuenschel
82
- Brandon Keepers
83
86
  John Downey
87
+ Jordan Brough
84
88
  Josh Bodah
89
+ JotaSe
90
+ Juanito Fatas
91
+ Julio Lopez
92
+ Katelyn Kasperowicz
93
+ Lowell Kirsh
94
+ Lucas Mazza
95
+ Makoto Chiba
96
+ Manuel Bustillo
97
+ Marco Adkins
98
+ Micah Gates
99
+ Michał Begejowicz
100
+ Mike Eirih
101
+ Mike Pastore