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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72e80d8e2a45cc9b258a963263e91468d69372505d0452205393eb735cf569fa
4
- data.tar.gz: 6cb230637923f915ef5117b812f6790ba244a07c45a29823ad52c51e6ae33f03
3
+ metadata.gz: 1c39459eaa24cf0a206d262a3b22012f27d4717ed72d5be1edebfdea0c2062f6
4
+ data.tar.gz: a8a864122c8f6b5af39b80d205f42b1c9224db3cd9e34ecdbbf8c326d5f05681
5
5
  SHA512:
6
- metadata.gz: f527d1acb925660f6b975ceab7bfc87b188578ddecef6e5af15dd340128daed02a84d2c5d042248c79a8b9c9e007a2238c7242fe41cf1dbd4070bea481230eca
7
- data.tar.gz: 67b6f46b435a2e9480515cd41f98e6381286ede5d0f2c16d97e4f30f248dd52657d2bd95de056515c1c2a3ec5e24a9f51076cf71cdad285d41bdf5d3fb0e9d2a
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", "~> 6"
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 url_with_analytics(url)
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: "/sign-in/redirect")
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 "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.0"
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.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: 2021-12-08 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
@@ -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