usps-jwt_auth 1.0.4 → 1.0.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: c781ed4980c3faac1cfeb90f7253612f679727339ef373533f576baddd5e4ad8
4
- data.tar.gz: cad560a810473ce7a876341d1887f4c522c454bfe35006f309109b35d49df69c
3
+ metadata.gz: 24f41ef10037b668bfc2e1b087353114d28378e8943c6955a6c70643c97daead
4
+ data.tar.gz: bba1d61d553578b30b1921c24ba8b63a834016ba637a0cdaaa5b03f677fa535c
5
5
  SHA512:
6
- metadata.gz: 14fa9a4ccdb56ad702875f4ac8a61215f52e06546abceb59be1f739b370609fad1a74738c1984cd0576604bb3222f1ed6a67019ad386ebc8bcc714a5ab155dec
7
- data.tar.gz: 31eaeb93a98ebbc98064d05f8c5f1fc8befe331e632f3e26f4730fa6c5f5d317014d57edf934719329a29c64d79b1825d60012f39658fba60f59d443685c6e48
6
+ metadata.gz: fc48cc4b42745d1ab17730e1d6d0d4e2ce42e411f8993fb302c2213c2bb298d223751ddd66ae4e157de96378306c2b8f8ba3bd30d7d87a5bcde7c90c412427df
7
+ data.tar.gz: 847a4e4c374788a75607e6cf92d7e6e79f1da6625fd843ea5a04064376149cf4d872f1eabd4cedc7adc48ca318cd5aad9d210ae44deae53943725351569dfa1b
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.5)
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module JwtAuth
5
- VERSION = '1.0.4'
5
+ VERSION = '1.0.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: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander