json-jwt 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of json-jwt might be problematic. Click here for more details.

Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/json/jwk/set.rb +5 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 393c87ad2b36883b90bf57ee4b79e0fd43c7462b
4
- data.tar.gz: 81ced2dc972bedaf304ab791dc48850fa53bfec8
3
+ metadata.gz: 05de8b3155d7e83d6f5fa6e4e9f157a775049cd5
4
+ data.tar.gz: 08e6eea95c7e4b7fcfef3df410c9180bb1687042
5
5
  SHA512:
6
- metadata.gz: 421c8a8601deb9f96658c578d66ad49007d59ffc8747478f110e3ed71d69ae95b2bdda80171cc0c1505c90df1868d9fddf696bd04fa162b3c8aed83090407203
7
- data.tar.gz: 9d5b2c367038b83ed08bd255c1d2776228dd60e9cf965e33435ef600fca5ca76f990fcca3ff2ce346deaf9fcd2f079797cdcb8764546d3639192462327e23880
6
+ metadata.gz: d9267cdcd5e667ababeb3924d22ff9f883ecae48152be82201dbf9a4ac7243bc950d737db479904a84936123ac5127847b3089219e8cc57d6e382ab9bb46aec7
7
+ data.tar.gz: 57299440c5fb636ee600d13112b21a97b512afb5d581e2719fce6cc0bdd6e9449c7a0bb6f0978f26951b20bf91e8a0a77817586eef7ea86259f84c250538ab43
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
data/lib/json/jwk/set.rb CHANGED
@@ -4,6 +4,11 @@ module JSON
4
4
  class KidNotFound < JWT::Exception; end
5
5
 
6
6
  def initialize(*jwks)
7
+ jwks = if jwks.first.is_a?(Hash) && (keys = jwks.first.with_indifferent_access[:keys])
8
+ keys
9
+ else
10
+ jwks
11
+ end
7
12
  jwks = Array(jwks).flatten.collect do |jwk|
8
13
  JWK.new jwk
9
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake