govuk_personalisation 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3027b7bc4c484759eed32262b7988b2a6f8953b57634d35174002881dedbd806
4
- data.tar.gz: f504185b2dee2d3c4cd0c9627a54872c4cb10744ea19bb96a9ceea22bed1cd75
3
+ metadata.gz: 1c39459eaa24cf0a206d262a3b22012f27d4717ed72d5be1edebfdea0c2062f6
4
+ data.tar.gz: a8a864122c8f6b5af39b80d205f42b1c9224db3cd9e34ecdbbf8c326d5f05681
5
5
  SHA512:
6
- metadata.gz: 83785705cddaee76e6804d2d4f64cfb2cedc1ac5dbeab91e5f07e982e4fd1a1ffbcbc0d8f56e26afb9551298be122aed9cc36a42b58690b405440ed86f4c0dd2
7
- data.tar.gz: 39f5a7677091f18583ebc374541af421a61f70968cedd4954ba7ac69444d1758a394430c80308ab38976a9633de2e71406b9221e446e3950853b896b267ec88f
6
+ metadata.gz: a37a0367677c4e78a7833155a8ba24c00170f7bc1888ca3871eda809e2c47639e18e78e0e57923a4a108e5330e4bcce6ec73f5bafa33d5c5d8366a9497234419
7
+ data.tar.gz: 270b9fa63d894ad378821791fad8fa7073f437573f9c15a935959c9eb072a5caa551733906d41281932a44931357bc3f2f3f39bed0a9c9b576f2712a845a038f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
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
+
1
7
  # 0.11.2
2
8
 
3
9
  - Add support for Rails 7 ([#33](https://github.com/alphagov/govuk_personalisation/pull/33))
@@ -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 "your account" page
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
- find_govuk_url(var: "YOUR_ACCOUNT", application: "frontend", path: "/account/home")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GovukPersonalisation
4
- VERSION = "0.11.2"
4
+ VERSION = "0.12.0"
5
5
  end
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.11.2
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: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek