usps-jwt_auth 0.2.4 → 0.2.5

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: 3234aa60bdc40f77d5ffbfba7c47d5836f57d9aeffe67508f13a03146ec963be
4
- data.tar.gz: '0853671498c9ef621fc7f6f112a98d146b6690bb65e4d1dc16c25c5bc3d2d795'
3
+ metadata.gz: d3e117b892e93bc204b114ee74d57d091b9c1d74d880cb3cd20aa538faa1888a
4
+ data.tar.gz: d33118d95aaae11f9537aca25b9a75fa7f3580b9818fc6796ca6b5196d6d7663
5
5
  SHA512:
6
- metadata.gz: 4fe2b1029bb951a115897235d122d0d6ae5c547f6c4d62d2ea23325fc604ac5c8c0e2c9fb494fb5d985866c2058490bcc60860f423285f5528f19a21dc939d03
7
- data.tar.gz: da1de46ac9c47f87f3c8bf20881971cca746764a690bdd786854e96e4f4298506a0d970adccdad45c822f5ed237fa1794a6cdd9f878c2348fb84e1683279f019
6
+ metadata.gz: 3765f8cc19d7e78081c5a327be6a9c2501bf6e48583f95156b7546c1d5c9b4b368e2bf82477f48ae8e48fd54a6a5a564d123af310295887233890e21894c3485
7
+ data.tar.gz: 2fc854ea47fe0013d0053512716d68e48182839d6e40c07705d543c8fd0e04641facb1437fe0d4880fa464a061811f911860aeffc80d91fc347fcb2004fcc92b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps-jwt_auth (0.2.4)
4
+ usps-jwt_auth (0.2.5)
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.4'
10
+ gem 'usps-jwt_auth', '>= 0.2.5'
11
11
  ```
12
12
 
13
13
  Then run the install task:
@@ -8,7 +8,6 @@ module Usps
8
8
  REQUIRED_OPTIONS = %i[audience is_admin find_member].freeze
9
9
 
10
10
  attr_accessor :environment, :key_size, :algorithm, :issuer_base, :issuers, :audience, :is_admin, :find_member
11
- attr_reader :keys_path, :public_keys_path
12
11
 
13
12
  def initialize
14
13
  @environment = ActiveSupport::StringInquirer.new('development')
@@ -23,10 +22,18 @@ module Usps
23
22
  yield self if block_given? # Also support setting options on initialize
24
23
  end
25
24
 
25
+ def keys_path
26
+ defined?(Rails) ? Rails.root.join(@keys_path) : @keys_path
27
+ end
28
+
26
29
  def keys_path=(path)
27
30
  @keys_path = path.is_a?(Pathname) ? path : Pathname.new(path)
28
31
  end
29
32
 
33
+ def public_keys_path
34
+ defined?(Rails) ? Rails.root.join(@public_keys_path) : @public_keys_path
35
+ end
36
+
30
37
  def public_keys_path=(path)
31
38
  @public_keys_path = path.is_a?(Pathname) ? path : Pathname.new(path)
32
39
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module JwtAuth
5
- VERSION = '0.2.4'
5
+ VERSION = '0.2.5'
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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander