keyless 2.3.0 → 2.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 -39
- data/CHANGELOG.md +4 -0
- data/Envfile +1 -0
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/keyless/jwt.rb +1 -1
- data/lib/keyless/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: 4a1c1ff59e0ef496566e14afa53b74aadf81b4581f02853bf6bb78c0a3faaf36
|
|
4
|
+
data.tar.gz: 0a5ae6290337659356209b0f9a22281c2c8c2add1541dfd8b6c1d04e8637ba1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b977633e74432ac6e0b5178c3041bfe8a00bcba5559e27c3d14626f167e09cb9d8f086a99b3f1724566115d72d6cbc8398ca5705d21f257286a4a4f0a28eab7
|
|
7
|
+
data.tar.gz: e8b8fa8df3d6c65263ec8dad91fc134c1782c2047ae99d654d71031968c2d98ee151757419d53489c6fbea2f20690efc91966bd2e43d6891e887acd83651a65a
|
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,8 +34,3 @@ Rails/FilePath:
|
|
|
64
34
|
# Because we just implemented the ActiveRecord API.
|
|
65
35
|
Rails/SkipsModelValidations:
|
|
66
36
|
Enabled: false
|
|
67
|
-
|
|
68
|
-
# We use memoized helpers all over the place to construct inputs and output
|
|
69
|
-
# which can be customized at nested contexts easily.
|
|
70
|
-
RSpec/MultipleMemoizedHelpers:
|
|
71
|
-
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
|
+
### 2.4.0 (19 December 2025)
|
|
6
|
+
|
|
7
|
+
* Migrated to a shared Rubocop configuration for HAUSGOLD gems ([#19](https://github.com/hausgold/keyless/pull/19))
|
|
8
|
+
|
|
5
9
|
### 2.3.0 (16 December 2025)
|
|
6
10
|
|
|
7
11
|
* Switched from `httparty` to the `http` gem and added support for retries on
|
data/Envfile
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -75,8 +75,8 @@ end
|
|
|
75
75
|
### RSA public key helper
|
|
76
76
|
|
|
77
77
|
We provide a straightforward solution to deal with the provision of RSA public
|
|
78
|
-
keys.
|
|
79
|
-
a local access, and
|
|
78
|
+
keys. Sometimes you want to distribute them by file to each machine and have
|
|
79
|
+
a local access, and sometimes you provide an endpoint on your identity
|
|
80
80
|
provider to fetch the RSA public key via HTTP/HTTPS. The `RsaPublicKey` class
|
|
81
81
|
helps you to fulfill this task easily.
|
|
82
82
|
|
data/lib/keyless/jwt.rb
CHANGED
|
@@ -51,7 +51,7 @@ module Keyless
|
|
|
51
51
|
payload.typ == 'refresh'
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
#
|
|
54
|
+
# Retrieves the expiration date from the payload when set.
|
|
55
55
|
#
|
|
56
56
|
# @return [nil|ActiveSupport::TimeWithZone] The expiration date
|
|
57
57
|
def expires_at
|
data/lib/keyless/version.rb
CHANGED