jwt_signed_request 2.6.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -0
- data/lib/jwt_signed_request/middlewares/faraday.rb +6 -1
- data/lib/jwt_signed_request/version.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a232713f444aa93fe62190f100a0ee0b74550c5f8426095c131b79ec035c1260
|
4
|
+
data.tar.gz: df9755b248452d267d2a0631ea16af0d81476a501dde8367b980fe53e6b9c210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e8ca9735e699cb864d1a73869d8b09cfda8e8decebae2b7343bd2168f1f4fe2baed43c02ee52e7d76c761de3af66aacdf69667805a097d14ae04f4896db238a
|
7
|
+
data.tar.gz: ffb84c36f824f1e8d4ad22718136fa4350ea56a28e842c098f7038abd9c31e3c3b1e168f0546ed281018cd54c91abfbd24add657cf2f705ba230db87f89ab17c
|
data/README.md
CHANGED
@@ -269,3 +269,33 @@ For bug fixes, documentation changes, and small features:
|
|
269
269
|
5. Create a new Pull Request
|
270
270
|
|
271
271
|
For larger new features: Do everything as above, but first also make contact with the project maintainers to be sure your change fits with the project direction and you won't be wasting effort going in the wrong direction
|
272
|
+
|
273
|
+
### Compatibility
|
274
|
+
|
275
|
+
Compatibility with multiple versions of the [JWT gem] is tested via the [appraisal gem].
|
276
|
+
|
277
|
+
Configured versions are defined in [Appraisals](./Appraisals), which at time of writing looked like this:
|
278
|
+
|
279
|
+
```ruby
|
280
|
+
# Latest JWT minor versions
|
281
|
+
# Source: https://rubygems.org/gems/jwt/versions
|
282
|
+
%w[
|
283
|
+
1.5.6
|
284
|
+
2.0.0
|
285
|
+
2.1.0
|
286
|
+
2.2.1
|
287
|
+
].each do |jwt_version|
|
288
|
+
```
|
289
|
+
|
290
|
+
Run the test suite like this:
|
291
|
+
|
292
|
+
```sh
|
293
|
+
# Test all configured versions
|
294
|
+
bundle exec appraisal rspec
|
295
|
+
|
296
|
+
# Target a specific configured version
|
297
|
+
bundle exec appraisal jwt-1.5.6 rspec
|
298
|
+
```
|
299
|
+
|
300
|
+
[JWT gem]: https://github.com/jwt/ruby-jwt
|
301
|
+
[appraisal gem]: https://github.com/thoughtbot/appraisal
|
@@ -9,7 +9,8 @@ module JWTSignedRequest
|
|
9
9
|
def initialize(app, bearer_schema: nil, **options)
|
10
10
|
@bearer_schema = bearer_schema
|
11
11
|
@options = options
|
12
|
-
|
12
|
+
|
13
|
+
initializer_args_requires_options? ? super(app, options) : super(app)
|
13
14
|
end
|
14
15
|
|
15
16
|
def call(env)
|
@@ -39,6 +40,10 @@ module JWTSignedRequest
|
|
39
40
|
def bearer_schema?
|
40
41
|
bearer_schema == true
|
41
42
|
end
|
43
|
+
|
44
|
+
def initializer_args_requires_options?
|
45
|
+
Gem::Version.new(::Faraday::VERSION) >= Gem::Version.new('1.2.0')
|
46
|
+
end
|
42
47
|
end
|
43
48
|
end
|
44
49
|
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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Envato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: appraisal
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,21 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rack-test
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
@@ -67,7 +81,7 @@ dependencies:
|
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: rake
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - ">="
|