grape-jwt-authentication 3.3.0 → 3.4.0
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 +4 -4
- data/.rubocop.yml +4 -38
- data/CHANGELOG.md +4 -0
- data/Envfile +1 -0
- data/LICENSE +1 -1
- data/lib/grape/jwt/authentication/jwt_handler.rb +1 -1
- data/lib/grape/jwt/authentication/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d8de4079fc4825d5b7d3e42491d6a5434427c5a5245fb881111b26cabbe0f02
|
|
4
|
+
data.tar.gz: ac90a48ecef9ae3b46b007d393469fceccf37d803f893d82b618668e3f05a95d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5b669dd46c76a1e8a98fc1c7cf86cd46953b51879ed82a10868691a1a93b97d51c96547626fa12199735972a7f24c54cd272eeed73af9c4d7d0507a484b4504
|
|
7
|
+
data.tar.gz: e85c43874d86d66b8b0fe2ad3a01c2b3b0a052ad2e9bcf05f756832eab537684bf8617d667cba8fad8c6d14b6e205bb168d204bdd1e49ca2b3c4fd4905fc22a7
|
data/.rubocop.yml
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
inherit_from:
|
|
2
|
+
- https://potpourri.hausgold.de/config/rubocop.yml
|
|
3
|
+
- https://potpourri.hausgold.de/config/rubocop-gem.yml
|
|
4
|
+
|
|
1
5
|
plugins:
|
|
2
6
|
- rubocop-rspec
|
|
3
7
|
- rubocop-rails
|
|
@@ -5,9 +9,6 @@ plugins:
|
|
|
5
9
|
Rails:
|
|
6
10
|
Enabled: true
|
|
7
11
|
|
|
8
|
-
Style/Documentation:
|
|
9
|
-
Enabled: true
|
|
10
|
-
|
|
11
12
|
AllCops:
|
|
12
13
|
NewCops: enable
|
|
13
14
|
SuggestExtensions: false
|
|
@@ -20,43 +21,12 @@ AllCops:
|
|
|
20
21
|
- build/**/*
|
|
21
22
|
- gemfiles/**/*
|
|
22
23
|
|
|
23
|
-
Metrics/BlockLength:
|
|
24
|
-
Exclude:
|
|
25
|
-
- Rakefile
|
|
26
|
-
- '*.gemspec'
|
|
27
|
-
- spec/**/*.rb
|
|
28
|
-
- '**/*.rake'
|
|
29
|
-
- doc/**/*.rb
|
|
30
|
-
|
|
31
|
-
# MFA is not yet enabled for our gems yet.
|
|
32
|
-
Gemspec/RequireMFA:
|
|
33
|
-
Enabled: false
|
|
34
|
-
|
|
35
|
-
# We stay with the original Ruby Style Guide recommendation.
|
|
36
|
-
Layout/LineLength:
|
|
37
|
-
Max: 80
|
|
38
|
-
|
|
39
|
-
# Document all the things.
|
|
40
|
-
Style/DocumentationMethod:
|
|
41
|
-
Enabled: true
|
|
42
|
-
RequireForNonPublicMethods: true
|
|
43
|
-
|
|
44
24
|
# It's a deliberate idiom in RSpec.
|
|
45
25
|
# See: https://github.com/bbatsov/rubocop/issues/4222
|
|
46
26
|
Lint/AmbiguousBlockAssociation:
|
|
47
27
|
Exclude:
|
|
48
28
|
- "spec/**/*"
|
|
49
29
|
|
|
50
|
-
# Because +expect_any_instance_of().to have_received()+ is not
|
|
51
|
-
# supported with the +with(hash_including)+ matchers
|
|
52
|
-
RSpec/MessageSpies:
|
|
53
|
-
EnforcedStyle: receive
|
|
54
|
-
|
|
55
|
-
# Because nesting makes sense here to group the feature tests
|
|
56
|
-
# more effective. This increases maintainability.
|
|
57
|
-
RSpec/NestedGroups:
|
|
58
|
-
Max: 4
|
|
59
|
-
|
|
60
30
|
# Disable regular Rails spec paths.
|
|
61
31
|
Rails/FilePath:
|
|
62
32
|
Enabled: false
|
|
@@ -64,7 +34,3 @@ Rails/FilePath:
|
|
|
64
34
|
# Because we just implemented the ActiveRecord API.
|
|
65
35
|
Rails/SkipsModelValidations:
|
|
66
36
|
Enabled: false
|
|
67
|
-
|
|
68
|
-
# We highly depend on memoized helpers across the specs.
|
|
69
|
-
RSpec/MultipleMemoizedHelpers:
|
|
70
|
-
Enabled: false
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
|
4
4
|
|
|
5
|
+
### 3.4.0 (19 December 2025)
|
|
6
|
+
|
|
7
|
+
* Migrated to a shared Rubocop configuration for HAUSGOLD gems ([#30](https://github.com/hausgold/grape-jwt-authentication/pull/30))
|
|
8
|
+
|
|
5
9
|
### 3.3.0 (16 December 2025)
|
|
6
10
|
|
|
7
11
|
* Dropped the unused `httparty` gem ([#29](https://github.com/hausgold/grape-jwt-authentication/pull/29))
|
data/Envfile
CHANGED
data/LICENSE
CHANGED
|
@@ -122,7 +122,7 @@ module Grape
|
|
|
122
122
|
inject_token_into_env(env, token)
|
|
123
123
|
|
|
124
124
|
# Give the parsed token to the user defined block
|
|
125
|
-
# for
|
|
125
|
+
# for further verification. The user given block MUST return
|
|
126
126
|
# a positive result to allow the request to be further
|
|
127
127
|
# processed, or a negative result to stop processing.
|
|
128
128
|
raise AuthenticationError unless authenticator.call(token)
|