usps-jwt_auth 1.0.4 → 1.0.6

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: c781ed4980c3faac1cfeb90f7253612f679727339ef373533f576baddd5e4ad8
4
- data.tar.gz: cad560a810473ce7a876341d1887f4c522c454bfe35006f309109b35d49df69c
3
+ metadata.gz: 2b570538c78235e550ff7903dfb293cbf8d7116ee050af858a963db6ddc84c2e
4
+ data.tar.gz: e41a91e29de1b8449780e39d0bf93b8ca61f3f08eb43ff08f470ac244a2675ea
5
5
  SHA512:
6
- metadata.gz: 14fa9a4ccdb56ad702875f4ac8a61215f52e06546abceb59be1f739b370609fad1a74738c1984cd0576604bb3222f1ed6a67019ad386ebc8bcc714a5ab155dec
7
- data.tar.gz: 31eaeb93a98ebbc98064d05f8c5f1fc8befe331e632f3e26f4730fa6c5f5d317014d57edf934719329a29c64d79b1825d60012f39658fba60f59d443685c6e48
6
+ metadata.gz: 8eaf955b197330910784b35669dec3ef5d6cd073f910f66623188f2e6fa672c588e84ec45bea8f2e045b1809ff39241f356e398b501217d9a743a7f69b0b192f
7
+ data.tar.gz: 73f575a6f21f5efa3fdbdf485f208d163d7d25b2de288ce641048acaf27b9f4809a36478278c785bb148843f470d503fbf5fb8e9395b71e089b149e0686248f2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- usps-jwt_auth (1.0.4)
4
+ usps-jwt_auth (1.0.6)
5
5
  activesupport (~> 8.0)
6
6
  colorize (~> 1.1)
7
7
  fileutils (~> 1.7)
@@ -78,11 +78,8 @@ module Usps
78
78
  end
79
79
 
80
80
  def redirect_to_path!
81
- if params.key?(:query_string)
82
- redirect_to(params[:path] || root_path, query_string: params[:query_string])
83
- else
84
- redirect_to(params[:path] || root_path)
85
- end
81
+ path = params[:path] || root_path
82
+ redirect_to(params.key?(:query_string) ? "#{path}?query_string=#{CGI.escape(params[:query_string])}" : path)
86
83
  end
87
84
 
88
85
  def store_jwt(token)
@@ -114,7 +111,7 @@ module Usps
114
111
  def redirect_to_login
115
112
  return if @set_new_jwt
116
113
 
117
- url = 'https://www.usps.org/jwt'
114
+ url = 'https://www.usps.org/jwt/'
118
115
  local = "#{url}?local&port=#{ENV.fetch('PORT', '3000')}"
119
116
  production = "#{url}?application=#{JwtAuth.config.audience}"
120
117
  url = JwtAuth.config.environment.development? ? local : production
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module JwtAuth
5
- VERSION = '1.0.4'
5
+ VERSION = '1.0.6'
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: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander