usps-jwt_auth 1.0.1.pre.1 → 1.0.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/usps/jwt_auth/config.rb +3 -3
- data/lib/usps/jwt_auth/decode.rb +1 -1
- data/lib/usps/jwt_auth/railtie.rb +1 -1
- data/lib/usps/jwt_auth/version.rb +1 -1
- data/pkg/.keep +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6834ab05dff7e13a36167170c9540830542bb4c7eb0f259d6d504931d157dad3
|
|
4
|
+
data.tar.gz: f9e6b213d2e07d86e51f9ca2cdd05e7aeeb9a7093e65aa48f8f239eaff56c4e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae5a78f313a212dc6b994a6cfa97ea7855f1841c009f9136bd7882e3e32f7d5608ce3b74790a2fc1a15928404f5f09b6ecd6cd7dbbc16184029a65cd8c0b4cdd
|
|
7
|
+
data.tar.gz: 50b558173a359ca51c729e74294278f6d90f56daf2fb34f39d93f3d4cdeead1b7226692c5a50c137aca853ebbdfd5831186b2c591a32b023b9316ab0aec3d794
|
data/Gemfile.lock
CHANGED
data/lib/usps/jwt_auth/config.rb
CHANGED
|
@@ -11,7 +11,7 @@ module Usps
|
|
|
11
11
|
attr_reader :environment
|
|
12
12
|
|
|
13
13
|
def initialize
|
|
14
|
-
@environment = defined?(
|
|
14
|
+
@environment = defined?(Rails) ? Rails.env : ActiveSupport::StringInquirer.new('development')
|
|
15
15
|
@keys_path = Pathname.new('config/keys')
|
|
16
16
|
@public_keys_path = Pathname.new('config/public_keys')
|
|
17
17
|
@key_size = ENV.fetch('JWT_KEY_SIZE', '4096').to_i
|
|
@@ -28,7 +28,7 @@ module Usps
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def keys_path
|
|
31
|
-
defined?(
|
|
31
|
+
defined?(Rails) ? Rails.root.join(@keys_path) : @keys_path
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def raw_keys_path
|
|
@@ -40,7 +40,7 @@ module Usps
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def public_keys_path
|
|
43
|
-
defined?(
|
|
43
|
+
defined?(Rails) ? Rails.root.join(@public_keys_path) : @public_keys_path
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def raw_public_keys_path
|
data/lib/usps/jwt_auth/decode.rb
CHANGED
data/pkg/.keep
ADDED
|
File without changes
|
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: 1.0.1
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julian Fiander
|
|
@@ -89,6 +89,7 @@ files:
|
|
|
89
89
|
- lib/usps/jwt_auth/incorrect_login.rb
|
|
90
90
|
- lib/usps/jwt_auth/railtie.rb
|
|
91
91
|
- lib/usps/jwt_auth/version.rb
|
|
92
|
+
- pkg/.keep
|
|
92
93
|
- sig/usps_jwt/auth.rbs
|
|
93
94
|
- tmp/keys/.keep
|
|
94
95
|
- tmp/public_keys/.keep
|