usps-jwt_auth 0.2.2 → 0.2.4.pre.1

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: b47c67acb15725e8c917939e63221c4ccce7b7349ef6dc646cddbe4d20bf9f6a
4
- data.tar.gz: 295d13e0324e375fb220867d87b81f278fb94cbc92b973901cd1b1a40f5cbb7e
3
+ metadata.gz: f86b88ea077b3879e241b5299b1d5aa694c45c0aaa35db253c3a5c2d7b0f48ea
4
+ data.tar.gz: dafe92a708012acd5fbe542939fde3fc038a08c01716525f8672125c67cf83d9
5
5
  SHA512:
6
- metadata.gz: 7c9b35aa03f7444a8c50d0522a98acd80cbb90a4ad0e0d04156657646111a6ef58a14fd8860bcc3b11caecf3a741779ab7ca71b9bc4f80313a4f83648058fb04
7
- data.tar.gz: 32cedad0d2a28fb036e502bce1b86979c7b7e1faa2ad26b79c37258b7e424457601a10b360db093158e4ea3191527dc5e23f85ca931fa010f95d871e87022a1a
6
+ metadata.gz: d4e03a9aa9ba476923a8e59128abf1c888ed282fff161f3a32aa1b06a6275ec6e0bffc6c03c60ee1dafbfc74fd31920a692a2da5b93743d547138d3651ef8dff
7
+ data.tar.gz: 0d26ebb2f9333d203538f2933f98d8aaf9249f42812f268ee42a34a52249710184dc662fedab977d5112db266b492453b1afe268c610e6167bfec892b4d0de0e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps-jwt_auth (0.2.2)
4
+ usps-jwt_auth (0.2.4.pre.1)
5
5
  activesupport (~> 8.0)
6
6
  fileutils (~> 1.7)
7
7
  jwt (~> 3.1)
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  Add the gem to your Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'usps-jwt_auth', '>= 0.2.1'
10
+ gem 'usps-jwt_auth', '>= 0.2.3'
11
11
  ```
12
12
 
13
13
  Then run the install task:
@@ -96,7 +96,7 @@ module Usps
96
96
  Decode.decode(
97
97
  fetch_jwt,
98
98
  audience: [JwtAuth.config.audience],
99
- issuer: JwtAuth.config.issuer
99
+ issuer: Regexp.union(JwtAuth.config.issuers)
100
100
  )
101
101
  end
102
102
 
@@ -31,10 +31,6 @@ module Usps
31
31
  @public_keys_path = path.is_a?(Pathname) ? path : Pathname.new(path)
32
32
  end
33
33
 
34
- def issuer
35
- /\A#{issuer_base}(?::#{Regexp.union(issuers)})?\z/
36
- end
37
-
38
34
  def validate!
39
35
  missing_required_options = REQUIRED_OPTIONS.select { public_send(it).nil? }
40
36
  return unless missing_required_options.any?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module JwtAuth
5
- VERSION = '0.2.2'
5
+ VERSION = '0.2.4-1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-jwt_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander