govuk_personalisation 0.3.0 → 0.4.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: dfc2b7eaa63dff171682233c9a9aeb902e2e888b1ad3bba5bb6a1f0556d1c1e1
4
- data.tar.gz: a8641359718d30bc54f193cdf902108c1de52b3167e7028c972ba228383807d9
3
+ metadata.gz: 267d1e8727e692cb953532c2064e3730455845c95a78caa468e82525b5800864
4
+ data.tar.gz: 1d303703827774ca360100948fbd3a2a98c7145ae02153b1faaa801107a961f3
5
5
  SHA512:
6
- metadata.gz: 84c745bb3cd6b4b7d0e9ea6c420d4e9fb233e2be8342fe9a95d4afa47194d9b5686ffa783012a45ec48e976e52893ef3f2c091105659bf390f851604909a3939
7
- data.tar.gz: b314b9488c92e1fce28082af10b876b47bfbad0e5f589fc33c301882af12a0a3cbf2cb61dfdf8273b4bbdc92b17fe1cebf790e15f50574d07985c521841d5411
6
+ metadata.gz: 29720a981741b63b503fd28affdf48b41f9f2ab0e7f28368db85d9d4e81726a3264e771dc1b4e5696d4190470cbe2450f949735795f88e2c9182dbc35a370f9d
7
+ data.tar.gz: ff365c527b710f736e34470364b3679c37328734f80ebfc5d09e25a50c833e410e3cd2472f90a86ebc35cf456c34632128f6b590beb43bc425a37de82de56682
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.4.0
2
+
3
+ - Add ability to set GOVUK-Account-Session ([#6](https://github.com/alphagov/govuk_personalisation/pull/6))
4
+
1
5
  # 0.3.0
2
6
 
3
7
  - Always set `Vary: GOVUK-Account-Session` response header ([#4](https://github.com/alphagov/govuk_personalisation/pull/4))
@@ -2,6 +2,8 @@
2
2
 
3
3
  require "govuk_personalisation/version"
4
4
  require "govuk_personalisation/account_concern"
5
+ require "govuk_personalisation/test_helpers/features"
6
+ require "govuk_personalisation/test_helpers/requests"
5
7
 
6
8
  module GovukPersonalisation
7
9
  class Error < StandardError; end
@@ -0,0 +1,9 @@
1
+ module GovukPersonalisation
2
+ module TestHelpers
3
+ module Features
4
+ def mock_logged_in_session(value = "placeholder")
5
+ page.driver.header("GOVUK-Account-Session", value)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module GovukPersonalisation
2
+ module TestHelpers
3
+ module Requests
4
+ def mock_logged_in_session(value = "placeholder")
5
+ request.headers["GOVUK-Account-Session"] = value
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GovukPersonalisation
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.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.3.0
4
+ version: 0.4.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-06-02 00:00:00.000000000 Z
11
+ date: 2021-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -117,6 +117,8 @@ files:
117
117
  - govuk_personalisation.gemspec
118
118
  - lib/govuk_personalisation.rb
119
119
  - lib/govuk_personalisation/account_concern.rb
120
+ - lib/govuk_personalisation/test_helpers/features.rb
121
+ - lib/govuk_personalisation/test_helpers/requests.rb
120
122
  - lib/govuk_personalisation/version.rb
121
123
  homepage: https://github.com/alphagov/govuk_personalisation
122
124
  licenses:
@@ -137,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
139
  - !ruby/object:Gem::Version
138
140
  version: '0'
139
141
  requirements: []
140
- rubygems_version: 3.1.6
142
+ rubygems_version: 3.0.3
141
143
  signing_key:
142
144
  specification_version: 4
143
145
  summary: A gem to hold shared code which other GOV.UK apps will use to implement accounts-related