usps-jwt_auth 0.2.4.pre.1 → 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: f86b88ea077b3879e241b5299b1d5aa694c45c0aaa35db253c3a5c2d7b0f48ea
4
- data.tar.gz: dafe92a708012acd5fbe542939fde3fc038a08c01716525f8672125c67cf83d9
3
+ metadata.gz: d3e117b892e93bc204b114ee74d57d091b9c1d74d880cb3cd20aa538faa1888a
4
+ data.tar.gz: d33118d95aaae11f9537aca25b9a75fa7f3580b9818fc6796ca6b5196d6d7663
5
5
  SHA512:
6
- metadata.gz: d4e03a9aa9ba476923a8e59128abf1c888ed282fff161f3a32aa1b06a6275ec6e0bffc6c03c60ee1dafbfc74fd31920a692a2da5b93743d547138d3651ef8dff
7
- data.tar.gz: 0d26ebb2f9333d203538f2933f98d8aaf9249f42812f268ee42a34a52249710184dc662fedab977d5112db266b492453b1afe268c610e6167bfec892b4d0de0e
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.pre.1)
4
+ usps-jwt_auth (0.2.5)
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.3'
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-1'
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.pre.1
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander