govuk_personalisation 0.11.0 → 0.12.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/CHANGELOG.md +14 -0
- data/govuk_personalisation.gemspec +1 -1
- data/lib/govuk_personalisation/controller_concern.rb +2 -2
- data/lib/govuk_personalisation/urls.rb +10 -3
- data/lib/govuk_personalisation/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c39459eaa24cf0a206d262a3b22012f27d4717ed72d5be1edebfdea0c2062f6
|
4
|
+
data.tar.gz: a8a864122c8f6b5af39b80d205f42b1c9224db3cd9e34ecdbbf8c326d5f05681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a37a0367677c4e78a7833155a8ba24c00170f7bc1888ca3871eda809e2c47639e18e78e0e57923a4a108e5330e4bcce6ec73f5bafa33d5c5d8366a9497234419
|
7
|
+
data.tar.gz: 270b9fa63d894ad378821791fad8fa7073f437573f9c15a935959c9eb072a5caa551733906d41281932a44931357bc3f2f3f39bed0a9c9b576f2712a845a038f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# 0.12.0
|
2
|
+
|
3
|
+
- Set account home to Digital Identity URI ([#36](https://github.com/alphagov/govuk_personalisation/pull/36))
|
4
|
+
- Add `GovukPersonalisation::Urls.manage_email` link ([#38](https://github.com/alphagov/govuk_personalisation/pull/38))
|
5
|
+
|
6
|
+
|
7
|
+
# 0.11.2
|
8
|
+
|
9
|
+
- Add support for Rails 7 ([#33](https://github.com/alphagov/govuk_personalisation/pull/33))
|
10
|
+
|
11
|
+
# 0.11.1
|
12
|
+
|
13
|
+
- Change sign in path to `/account` ([#28](https://github.com/alphagov/govuk_personalisation/pull/28))
|
14
|
+
|
1
15
|
# 0.11.0
|
2
16
|
|
3
17
|
- Remove references to the account manager from the URLs module ([#26](https://github.com/alphagov/govuk_personalisation/pull/26))
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.require_paths = %w[lib]
|
27
27
|
|
28
28
|
spec.add_dependency "plek", ">= 1.9.0"
|
29
|
-
spec.add_dependency "rails", "
|
29
|
+
spec.add_dependency "rails", ">= 6", "< 8"
|
30
30
|
|
31
31
|
spec.add_development_dependency "bundler"
|
32
32
|
spec.add_development_dependency "climate_control"
|
@@ -135,8 +135,8 @@ module GovukPersonalisation
|
|
135
135
|
# and cookie consent
|
136
136
|
#
|
137
137
|
# @param url [String] The URL to redirect to
|
138
|
-
def redirect_with_analytics(url)
|
139
|
-
redirect_to
|
138
|
+
def redirect_with_analytics(url, allow_other_host: true)
|
139
|
+
redirect_to(url_with_analytics(url), allow_other_host: allow_other_host)
|
140
140
|
end
|
141
141
|
|
142
142
|
# Build a URL adding parameters necessary for cross-domain analytics
|
@@ -5,7 +5,7 @@ module GovukPersonalisation::Urls
|
|
5
5
|
#
|
6
6
|
# @return [String] the URL
|
7
7
|
def self.sign_in
|
8
|
-
find_govuk_url(var: "SIGN_IN", application: "frontend", path: "/
|
8
|
+
find_govuk_url(var: "SIGN_IN", application: "frontend", path: "/account")
|
9
9
|
end
|
10
10
|
|
11
11
|
# Find the GOV.UK URL for the "sign out" page
|
@@ -15,11 +15,18 @@ module GovukPersonalisation::Urls
|
|
15
15
|
find_govuk_url(var: "SIGN_OUT", application: "frontend", path: "/sign-out")
|
16
16
|
end
|
17
17
|
|
18
|
-
# Find the GOV.UK URL for the "
|
18
|
+
# Find the GOV.UK URL for the "email manager" page
|
19
|
+
#
|
20
|
+
# @return [String] the URL
|
21
|
+
def self.manage_email
|
22
|
+
find_govuk_url(var: "SIGN_OUT", application: "email-alert-frontend", path: "/email/manage")
|
23
|
+
end
|
24
|
+
|
25
|
+
# Find the external URL for the "your account" page
|
19
26
|
#
|
20
27
|
# @return [String] the URL
|
21
28
|
def self.your_account
|
22
|
-
|
29
|
+
find_external_url(var: "YOUR_ACCOUNT", url: "https://#{digital_identity_domain}")
|
23
30
|
end
|
24
31
|
|
25
32
|
# Find the external URL for the "manage" page
|
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.12.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:
|
11
|
+
date: 2022-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plek
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '6'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '8'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '6'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '8'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: bundler
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|