jwt_signed_request 3.0.0 → 4.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: a232713f444aa93fe62190f100a0ee0b74550c5f8426095c131b79ec035c1260
4
- data.tar.gz: df9755b248452d267d2a0631ea16af0d81476a501dde8367b980fe53e6b9c210
3
+ metadata.gz: fec5e1348f0f1c6f1c0af31b3109b1a1602863f034f636bc9942852ea2c7cde9
4
+ data.tar.gz: e8efd84088c7b3ceb12db716606692d08d312ba89215a13a71062cefe6e3fc26
5
5
  SHA512:
6
- metadata.gz: 6e8ca9735e699cb864d1a73869d8b09cfda8e8decebae2b7343bd2168f1f4fe2baed43c02ee52e7d76c761de3af66aacdf69667805a097d14ae04f4896db238a
7
- data.tar.gz: ffb84c36f824f1e8d4ad22718136fa4350ea56a28e842c098f7038abd9c31e3c3b1e168f0546ed281018cd54c91abfbd24add657cf2f705ba230db87f89ab17c
6
+ metadata.gz: 52792781ac61108ea1bbc1b4f3cb6d931012a16a10f5cfd6458b8250ad65413e2e15c1adcb490b968281b87ea60357a5886709457782e3fac31d9ca4f6d2c8b0
7
+ data.tar.gz: b86783098ab3c512d7eba496ea92e2c7c128ae9d103bd266ae7abbacf1e1ae25fb08e6503a8da02f54440a38bd7c679410fa46f7d9bf8f6db4c209b676d71aa5
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # JWT Signed Request
2
- [![travis ci build](https://api.travis-ci.org/envato/jwt_signed_request.svg)](https://travis-ci.org/envato/jwt_signed_request)
2
+
3
+ [![License MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/envato/jwt_signed_request/blob/master/LICENSE.txt)
4
+ [![Gem Version](https://img.shields.io/gem/v/jwt_signed_request.svg?maxAge=2592000)](https://rubygems.org/gems/jwt_signed_request)
5
+ [![Gem Downloads](https://img.shields.io/gem/dt/jwt_signed_request.svg?maxAge=2592000)](https://rubygems.org/gems/jwt_signed_request)
6
+ [![Test Suite](https://github.com/envato/jwt_signed_request/workflows/tests/badge.svg?branch=master)](https://github.com/envato/jwt_signed_request/actions?query=branch%3Amaster+workflow%3Atests)
3
7
 
4
8
  Request signing and verification for Internal APIs using JWT.
5
9
 
@@ -17,6 +21,14 @@ then run:
17
21
  $ bundle
18
22
  ```
19
23
 
24
+ ## Stale PRs
25
+
26
+ We use the "stale" workflow to manage our PRs.
27
+ If you have a PR open for 60 days without any activity, it will automatically be labelled `stale-pr`.
28
+ If there is no activity for 7 days after this label is applied, the PR will be automatically closed.
29
+
30
+ If you have a PR that has a sensible reason for being open for a long period of time with no activity, you can apply the `do-not-auto-close` label to avoid it being automatically closed.
31
+
20
32
  ## Generating EC Keys
21
33
 
22
34
  We should be using a public key encryption algorithm such as **ES256**. To generate your public/private key pair using **ES256** run:
@@ -287,6 +299,12 @@ Configured versions are defined in [Appraisals](./Appraisals), which at time of
287
299
  ].each do |jwt_version|
288
300
  ```
289
301
 
302
+ Ensure you set up your local environment by running:
303
+
304
+ ```sh
305
+ bundle exec appraisal install
306
+ ```
307
+
290
308
  Run the test suite like this:
291
309
 
292
310
  ```sh
@@ -109,6 +109,9 @@ module JWTSignedRequest
109
109
  end
110
110
 
111
111
  def request_body
112
+ return '' if request.body.nil?
113
+
114
+ request.body.rewind
112
115
  string = request.body.read
113
116
  request.body.rewind
114
117
  string
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JWTSignedRequest
4
- VERSION = '3.0.0'
4
+ VERSION = '4.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt_signed_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2025-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubygems_version: 3.1.2
164
+ rubygems_version: 3.5.16
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: JWT request signing and verification for Internal APIs