govuk_personalisation 0.14.0 → 0.15.0
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/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/govuk_personalisation.gemspec +1 -1
- data/lib/govuk_personalisation/urls.rb +22 -16
- data/lib/govuk_personalisation/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca12ab61e875bd39261e990560cd16d8957b15c2c4f16d9ffef0a2404cee91b7
|
|
4
|
+
data.tar.gz: e5826ce6cbd13aa29e6861ff15bd69d173313b73f73581e6df15ae8cc775157d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0caf472a2188909e45cbe7720451dc224b9d809a9cf2983d8cb0f10111fd936fd164bbacafefb3c4480565f24d0ad36a87cd740ea5575076283a8ea688b9e307
|
|
7
|
+
data.tar.gz: 678e921c691e474ea7a87b7d1eb96061bceba614c6184c38731caf70e379e6877fb4cf58f5339a44316a616bf596e2634b7df595c93c968b4cd14271898a547f
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
# 0.15.0
|
|
2
|
+
|
|
3
|
+
- Update URLs and method names for One Login ([#56](https://github.com/alphagov/govuk_personalisation/pull/56))
|
|
4
|
+
- Note that this release deprecates the your_account, manage, security, and feedback methods of GovukPersonalisation::Urls, but retains them as aliases to allow easier transition. They will be removed in a later release.
|
|
5
|
+
|
|
1
6
|
# 0.14.0
|
|
2
7
|
|
|
3
8
|
- Use GOVUK_ENVIRONMENT as a backstop for DIGITAL_IDENTITY_ENVIRONMENT ([#53](https://github.com/alphagov/govuk_personalisation/pull/53))
|
|
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
spec.add_development_dependency "pry-byebug"
|
|
34
34
|
spec.add_development_dependency "rake"
|
|
35
35
|
spec.add_development_dependency "rspec-rails"
|
|
36
|
-
spec.add_development_dependency "rubocop-govuk", "4.
|
|
36
|
+
spec.add_development_dependency "rubocop-govuk", "4.12.0"
|
|
37
37
|
end
|
|
@@ -22,32 +22,41 @@ module GovukPersonalisation::Urls
|
|
|
22
22
|
find_govuk_url(var: "SIGN_OUT", application: "email-alert-frontend", path: "/email/manage")
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
# Find the external URL for the "your
|
|
25
|
+
# Find the external URL for the "your services" page on One Login
|
|
26
26
|
#
|
|
27
27
|
# @return [String] the URL
|
|
28
|
+
def self.one_login_your_services
|
|
29
|
+
find_external_url(var: "ONE_LOGIN_YOUR_SERVICES", url: "https://#{digital_identity_domain('home')}")
|
|
30
|
+
end
|
|
31
|
+
|
|
28
32
|
def self.your_account
|
|
29
|
-
|
|
33
|
+
one_login_your_services
|
|
30
34
|
end
|
|
31
35
|
|
|
32
|
-
# Find the external URL for the "
|
|
36
|
+
# Find the external URL for the "security" page on One Login
|
|
33
37
|
#
|
|
34
38
|
# @return [String] the URL
|
|
39
|
+
def self.one_login_security
|
|
40
|
+
find_external_url(var: "ONE_LOGIN_SECURITY", url: "https://#{digital_identity_domain('home')}/security")
|
|
41
|
+
end
|
|
42
|
+
|
|
35
43
|
def self.manage
|
|
36
|
-
|
|
44
|
+
one_login_security
|
|
37
45
|
end
|
|
38
46
|
|
|
39
|
-
# Find the external URL for the "security" page
|
|
40
|
-
#
|
|
41
|
-
# @return [String] the URL
|
|
42
47
|
def self.security
|
|
43
|
-
|
|
48
|
+
one_login_security
|
|
44
49
|
end
|
|
45
50
|
|
|
46
|
-
# Find the external URL for the "feedback" page
|
|
51
|
+
# Find the external URL for the "feedback" page on One Login
|
|
47
52
|
#
|
|
48
53
|
# @return [String] the URL
|
|
54
|
+
def self.one_login_feedback
|
|
55
|
+
find_external_url(var: "ONE_LOGIN_FEEDBACK", url: "https://#{digital_identity_domain('signin')}/support?supportType=PUBLIC")
|
|
56
|
+
end
|
|
57
|
+
|
|
49
58
|
def self.feedback
|
|
50
|
-
|
|
59
|
+
one_login_feedback
|
|
51
60
|
end
|
|
52
61
|
|
|
53
62
|
# Finds a URL on www.gov.uk. This method is used so we can have
|
|
@@ -91,14 +100,11 @@ module GovukPersonalisation::Urls
|
|
|
91
100
|
ENV.fetch("GOVUK_PERSONALISATION_#{var}_URI", url)
|
|
92
101
|
end
|
|
93
102
|
|
|
94
|
-
|
|
95
|
-
#
|
|
96
|
-
# @return [String] the domain
|
|
97
|
-
def self.digital_identity_domain
|
|
103
|
+
def self.digital_identity_domain(host)
|
|
98
104
|
if digital_identity_environment
|
|
99
|
-
"
|
|
105
|
+
"#{host}.#{digital_identity_environment}.account.gov.uk"
|
|
100
106
|
else
|
|
101
|
-
"
|
|
107
|
+
"#{host}.account.gov.uk"
|
|
102
108
|
end
|
|
103
109
|
end
|
|
104
110
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_personalisation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-09-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: plek
|
|
@@ -120,14 +120,14 @@ dependencies:
|
|
|
120
120
|
requirements:
|
|
121
121
|
- - '='
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: 4.
|
|
123
|
+
version: 4.12.0
|
|
124
124
|
type: :development
|
|
125
125
|
prerelease: false
|
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
|
128
128
|
- - '='
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
|
-
version: 4.
|
|
130
|
+
version: 4.12.0
|
|
131
131
|
description: A gem to hold shared code which other GOV.UK apps will use to implement
|
|
132
132
|
accounts-related functionality.
|
|
133
133
|
email:
|
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
177
177
|
- !ruby/object:Gem::Version
|
|
178
178
|
version: '0'
|
|
179
179
|
requirements: []
|
|
180
|
-
rubygems_version: 3.4.
|
|
180
|
+
rubygems_version: 3.4.19
|
|
181
181
|
signing_key:
|
|
182
182
|
specification_version: 4
|
|
183
183
|
summary: A gem to hold shared code which other GOV.UK apps will use to implement accounts-related
|