README.md in jwk-loader-1.0.0 vs README.md in jwk-loader-1.1.0

- old
+ new

@@ -1,9 +1,12 @@ -# JwkLoader +# jwk-loader -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. +[![Gem Version](https://badge.fury.io/rb/jwk-loader.svg)](https://badge.fury.io/rb/jwk-loader) +[![Build status](https://github.com/anakinj/jwk-loader/actions/workflows/test.yml/badge.svg)](https://github.com/anakinj/jwk-loader/actions/workflows/test.yml) +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. + ## Installation Install the gem and add to the application's Gemfile by executing: $ bundle add jwk-loader @@ -32,10 +35,10 @@ RSpec.describe 'GET /protected' do include JwkLoader::Test context 'when called with a valid token' do - let(:token) { sign_test_token(token_payload: { user_id: 'user' }, jwk_endpoint: 'https://url/to/public/jwks') } + let(:token) { sign_test_token(token_payload: { user_id: "user" }, jwk_endpoint: "https://url/to/public/jwks") } subject(:response) { get('/protected', { 'HTTP_AUTHORIZATION' => "Bearer #{token}" }) } it 'is a success' do expect(response.status).to eq(200) end