usps-jwt_auth 0.2.2 → 0.2.4

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: 3234aa60bdc40f77d5ffbfba7c47d5836f57d9aeffe67508f13a03146ec963be
4
+ data.tar.gz: '0853671498c9ef621fc7f6f112a98d146b6690bb65e4d1dc16c25c5bc3d2d795'
5
5
  SHA512:
6
- metadata.gz: 7c9b35aa03f7444a8c50d0522a98acd80cbb90a4ad0e0d04156657646111a6ef58a14fd8860bcc3b11caecf3a741779ab7ca71b9bc4f80313a4f83648058fb04
7
- data.tar.gz: 32cedad0d2a28fb036e502bce1b86979c7b7e1faa2ad26b79c37258b7e424457601a10b360db093158e4ea3191527dc5e23f85ca931fa010f95d871e87022a1a
6
+ metadata.gz: 4fe2b1029bb951a115897235d122d0d6ae5c547f6c4d62d2ea23325fc604ac5c8c0e2c9fb494fb5d985866c2058490bcc60860f423285f5528f19a21dc939d03
7
+ data.tar.gz: da1de46ac9c47f87f3c8bf20881971cca746764a690bdd786854e96e4f4298506a0d970adccdad45c822f5ed237fa1794a6cdd9f878c2348fb84e1683279f019
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)
5
5
  activesupport (~> 8.0)
6
6
  fileutils (~> 1.7)
7
7
  jwt (~> 3.1)
@@ -96,6 +96,12 @@ GEM
96
96
  rubocop-ast (1.47.1)
97
97
  parser (>= 3.3.7.2)
98
98
  prism (~> 1.4)
99
+ rubocop-rake (0.7.1)
100
+ lint_roller (~> 1.1)
101
+ rubocop (>= 1.72.1)
102
+ rubocop-rspec (3.7.0)
103
+ lint_roller (~> 1.1)
104
+ rubocop (~> 1.72, >= 1.72.1)
99
105
  ruby-progressbar (1.13.0)
100
106
  securerandom (0.4.1)
101
107
  simplecov (0.22.0)
@@ -122,6 +128,8 @@ DEPENDENCIES
122
128
  rake (~> 13.0)
123
129
  rspec (~> 3.0)
124
130
  rubocop (~> 1.81)
131
+ rubocop-rake (~> 0.7)
132
+ rubocop-rspec (~> 3.7)
125
133
  simplecov (~> 0.22)
126
134
  usps-jwt_auth!
127
135
 
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.4'
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'
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
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander