usps-support 0.2.61 → 0.2.62

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: c5df100f657cd2bf0ad1e32873c7e0cc6f2e24f828a72df32c8283e3c1fea987
4
- data.tar.gz: 3d15f2808d6dfe420ad2d97897ddc4162b051d7c711e90b4e01a49865202bd13
3
+ metadata.gz: acc3e4385da15a2e80126ab94765c0910208af0c7513a99d911660d08a726f53
4
+ data.tar.gz: e86444d4e152908574efbac4cd71cb50055afb90c5d5d863ee3106310cdbaebd
5
5
  SHA512:
6
- metadata.gz: 42c4e0226379f4960173c3000fef43c1d3a2d74c8b7087578ccb30e86ca52bc94236616be87d282895c28307cd195bd760bb2537d5dafdfacbd0e6aa23d5d5d4
7
- data.tar.gz: '093a40a13f2ae5d14b99d843db8012e6bd4a96c44024aeafb855f1c00d361bbb6c43a0cae2a4b8104b25964df6bdbf956f90a84b3067462fd0ea27027e373191'
6
+ metadata.gz: df73c0b9737978d3a14ba52bccb278c1aed46047805e978c484b586ad97e36219d1c14fde85ff21dcde2c7a2fa302536969477321765b42eb4f0a2e94625dbbe
7
+ data.tar.gz: '069cd911a93d9b9848b0dc99d2c57604a1e4a1d04aabcc1437154db0b4f02a26ace11e353bc4e3026842dd6d51615f43f3cdc3aadfd83b8e94f00c58a0eda59e'
@@ -68,11 +68,13 @@ module Usps::Support
68
68
  [302, { 'Location' => url, 'Content-Type' => 'text/html' }, []]
69
69
  end
70
70
 
71
- def login_url_base
71
+ def login_url_base = "#{LOGIN_URL}?#{login_target}&v=#{Usps::JwtAuth::LOGIN_VERSION}"
72
+
73
+ def login_target
72
74
  if Usps::JwtAuth.config.environment.development?
73
- "#{LOGIN_URL}?local&port=#{ENV.fetch('PORT', '3000')}"
75
+ "local&port=#{ENV.fetch('PORT', '3000')}"
74
76
  else
75
- "#{LOGIN_URL}?application=#{Usps::JwtAuth.config.audience}"
77
+ "application=#{Usps::JwtAuth.config.audience}"
76
78
  end
77
79
  end
78
80
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Support
5
- VERSION = '0.2.61'
5
+ VERSION = '0.2.62'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.61
4
+ version: 0.2.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: '1'
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.2.4
69
+ version: 1.5.0
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '1'
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 1.2.4
79
+ version: 1.5.0
80
80
  description: Shared support for USPS Rails applications
81
81
  email:
82
82
  - jsfiander@gmail.com