jwk-loader 1.0.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc35d8bbe5c77c12e387ee48e54543073527d3851148d6c313cd062e7da5de5d
4
- data.tar.gz: 9ee9af3ebd760f4608265ba99a845427d5a047c0a5fe1ded70297f6f408a8838
3
+ metadata.gz: e77eb1ce66789b0d37f9d200ae80d5af43b7de7745f00bfe0548b87301120c79
4
+ data.tar.gz: 5d71e2e2cc5f4caa96b076c7528e03e6e257e306176f935e2683d3781cb1f8db
5
5
  SHA512:
6
- metadata.gz: 7c1da1b6d607b9006a3b8efe55bac39bf8d61db95d137db6705d9eb08ba5eb3340bb66fbad2b15945c4abdf8550143a75b8d34b80975c159baeb11728808c0e6
7
- data.tar.gz: 2d14daadf7bf995b2324b3c9ccf46bc2cc67ecc4c00314e20dcc0d01a866dda2056d0b3f5e83a4df00d9f7c0ca02c9154714f2299481c41707a35f80b763cfc6
6
+ metadata.gz: c3d808d24e6c331db89d5cd8cad4bce5ce94e36e9d8ad99c2a18588bcb8043416b04239da6a0b899d4c193591e6736cee0198358bbb5abc163b007251e445397
7
+ data.tar.gz: 025ce184c452c2d8dcf632ee823d98e215a80c011db6d75bd253d44ad4a66e8a4f95dd1eb013fd2fdb51a6dbc1540ea59fbaef931e8239a8b18951da327b86f1
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.1.0"
3
+ }
data/CHANGELOG.md CHANGED
@@ -1,14 +1,21 @@
1
- ## [Unreleased]
1
+ # Changelog
2
2
 
3
- ## [1.0.0] - 2023-12-28
3
+ ## [1.1.0](https://github.com/anakinj/jwk-loader/compare/v1.0.0...v1.1.0) (2024-08-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * Official support for Ruby 3.2 and 3.3 ([2f6079f](https://github.com/anakinj/jwk-loader/commit/2f6079fd490a4918524974ffb1d897abbf875787))
9
+
10
+ ## [1.0.0](https://github.com/anakinj/jwk-loader/compare/v0.1.1...v1.0.0) (2023-12-28)
11
+
12
+ ### Features
4
13
 
5
14
  - `jwk_loader/test` for convenience for testing without external dependencies. [#6](https://github.com/anakinj/jwk-loader/pull/6) ([@anakinj](https://github.com/anakinj))
6
15
  - Serialize the cached key sets into `JWT::JWK:Set` to avoid generating OpenSSL PKeys for each time the keys are used. [#6](https://github.com/anakinj/jwk-loader/pull/6) ([@anakinj](https://github.com/anakinj))
7
16
 
8
- ## [0.1.1] - 2022-08-26
9
-
10
- - make sure 'net/http' is required [#2](https://github.com/anakinj/jwk-loader/pull/2) ([@lukad](https://github.com/lukad)).
17
+ ## [1.0.0](https://github.com/anakinj/jwk-loader/compare/v0.1.0...v0.1.1) (2022-08-26)
11
18
 
12
- ## [0.1.0] - 2022-07-06
19
+ ### Fixes
13
20
 
14
- - Initial release
21
+ - make sure 'net/http' is required [#2](https://github.com/anakinj/jwk-loader/pull/2) ([@lukad](https://github.com/lukad)).
data/Gemfile CHANGED
@@ -2,12 +2,11 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in jwk-loader.gemspec
6
5
  gemspec
7
6
 
8
- gem "rake", "~> 13.0"
9
- gem "rspec", "~> 3.0"
10
- gem "rubocop", "~> 1.32.0"
7
+ gem "rake"
8
+ gem "rspec"
9
+ gem "rubocop"
11
10
  gem "simplecov"
12
11
  gem "vcr"
13
12
  gem "webmock"
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
- # JwkLoader
1
+ # jwk-loader
2
2
 
3
- This gem can be used in combination with the [jwt](https://rubygems.org/gems/jwt) gem as the mechanism to load and cache the JWKs in the application.
3
+ [![Gem Version](https://badge.fury.io/rb/jwk-loader.svg)](https://badge.fury.io/rb/jwk-loader)
4
+ [![Build status](https://github.com/anakinj/jwk-loader/actions/workflows/test.yml/badge.svg)](https://github.com/anakinj/jwk-loader/actions/workflows/test.yml)
5
+
6
+ This gem can be used in combination with the [ruby-jwt](https://rubygems.org/gems/jwt) gem as the mechanism to load and cache the JWKs.
4
7
 
5
8
  ## Installation
6
9
 
@@ -34,7 +37,7 @@ RSpec.describe 'GET /protected' do
34
37
  include JwkLoader::Test
35
38
 
36
39
  context 'when called with a valid token' do
37
- let(:token) { sign_test_token(token_payload: { user_id: 'user' }, jwk_endpoint: 'https://url/to/public/jwks') }
40
+ let(:token) { sign_test_token(token_payload: { user_id: "user" }, jwk_endpoint: "https://url/to/public/jwks") }
38
41
  subject(:response) { get('/protected', { 'HTTP_AUTHORIZATION' => "Bearer #{token}" }) }
39
42
 
40
43
  it 'is a success' do
@@ -4,7 +4,7 @@ module JwkLoader
4
4
  class Config
5
5
  class ConfigurationNotFound < JwkLoader::Error
6
6
  def initialize(key)
7
- super "Configuration for #{key} not available"
7
+ super("Configuration for #{key} not available")
8
8
  end
9
9
  end
10
10
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JwkLoader
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.0"
5
5
  end
@@ -0,0 +1,9 @@
1
+ {
2
+ "release-type": "ruby",
3
+ "include-v-in-tag": true,
4
+ "packages": {
5
+ ".": {
6
+ "version-file": "lib/jwk_loader/version.rb"
7
+ }
8
+ }
9
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwk-loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Antman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-28 00:00:00.000000000 Z
11
+ date: 2024-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -38,13 +38,14 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.6'
41
- description:
41
+ description:
42
42
  email:
43
43
  - antmanj@gmail.com
44
44
  executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - ".release-please-manifest.json"
48
49
  - ".rspec"
49
50
  - ".rubocop.yml"
50
51
  - CHANGELOG.md
@@ -62,6 +63,7 @@ files:
62
63
  - lib/jwk_loader/memory_cache.rb
63
64
  - lib/jwk_loader/test.rb
64
65
  - lib/jwk_loader/version.rb
66
+ - release-please-config.json
65
67
  homepage: https://github.com/anakinj/jwk-loader
66
68
  licenses:
67
69
  - MIT
@@ -69,9 +71,9 @@ metadata:
69
71
  allowed_push_host: https://rubygems.org
70
72
  homepage_uri: https://github.com/anakinj/jwk-loader
71
73
  source_code_uri: https://github.com/anakinj/jwk-loader
72
- changelog_uri: https://github.com/anakinj/jwk-loader/blob/1.0.0/CHANGELOG.md
74
+ changelog_uri: https://github.com/anakinj/jwk-loader/blob/1.1.0/CHANGELOG.md
73
75
  rubygems_mfa_required: 'true'
74
- post_install_message:
76
+ post_install_message:
75
77
  rdoc_options: []
76
78
  require_paths:
77
79
  - lib
@@ -86,8 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
88
  - !ruby/object:Gem::Version
87
89
  version: '0'
88
90
  requirements: []
89
- rubygems_version: 3.3.7
90
- signing_key:
91
+ rubygems_version: 3.5.11
92
+ signing_key:
91
93
  specification_version: 4
92
94
  summary: Tooling for handling JWK loading, parsing and caching
93
95
  test_files: []