ccs-frontend_helpers 2.0.0 → 2.2.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/.rubocop.yml +9 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +16 -1
- data/Gemfile +5 -5
- data/Gemfile.lock +44 -35
- data/README.md +2 -0
- data/ccs-frontend_helpers.gemspec +1 -1
- data/lib/ccs/components/ccs/contact_us.rb +2 -2
- data/lib/ccs/components/ccs/dashboard_section/panel.rb +2 -2
- data/lib/ccs/components/ccs/dashboard_section.rb +2 -2
- data/lib/ccs/components/ccs/footer/link.rb +2 -2
- data/lib/ccs/components/ccs/footer.rb +2 -2
- data/lib/ccs/components/ccs/header/link.rb +2 -2
- data/lib/ccs/components/ccs/header.rb +2 -2
- data/lib/ccs/components/ccs/logo.rb +175 -9
- data/lib/ccs/components/ccs/password_strength.rb +2 -2
- data/lib/ccs/components/govuk/back_link.rb +2 -2
- data/lib/ccs/components/govuk/breadcrumbs/link.rb +2 -2
- data/lib/ccs/components/govuk/breadcrumbs.rb +2 -2
- data/lib/ccs/components/govuk/button.rb +2 -2
- data/lib/ccs/components/govuk/cookie_banner/action.rb +2 -2
- data/lib/ccs/components/govuk/cookie_banner/message.rb +2 -2
- data/lib/ccs/components/govuk/cookie_banner.rb +2 -2
- data/lib/ccs/components/govuk/details.rb +2 -2
- data/lib/ccs/components/govuk/error_message.rb +2 -2
- data/lib/ccs/components/govuk/error_summary/item.rb +2 -2
- data/lib/ccs/components/govuk/error_summary.rb +2 -2
- data/lib/ccs/components/govuk/field/input/character_count.rb +2 -0
- data/lib/ccs/components/govuk/field/input/file_upload.rb +60 -4
- data/lib/ccs/components/govuk/field/input/select.rb +2 -2
- data/lib/ccs/components/govuk/field/input/text_input/fix.rb +2 -2
- data/lib/ccs/components/govuk/field/input/text_input.rb +2 -2
- data/lib/ccs/components/govuk/field/input/textarea.rb +2 -2
- data/lib/ccs/components/govuk/field/inputs/checkboxes.rb +2 -2
- data/lib/ccs/components/govuk/field/inputs/item/checkbox.rb +2 -2
- data/lib/ccs/components/govuk/field/inputs/item/radio.rb +2 -2
- data/lib/ccs/components/govuk/field/inputs/item.rb +2 -2
- data/lib/ccs/components/govuk/field/inputs/radios.rb +2 -2
- data/lib/ccs/components/govuk/field/inputs.rb +1 -1
- data/lib/ccs/components/govuk/field.rb +2 -2
- data/lib/ccs/components/govuk/fieldset/legend.rb +2 -2
- data/lib/ccs/components/govuk/fieldset.rb +2 -2
- data/lib/ccs/components/govuk/footer/link.rb +2 -2
- data/lib/ccs/components/govuk/footer.rb +2 -2
- data/lib/ccs/components/govuk/form_group.rb +2 -2
- data/lib/ccs/components/govuk/header/link.rb +2 -2
- data/lib/ccs/components/govuk/header.rb +2 -2
- data/lib/ccs/components/govuk/hint.rb +2 -2
- data/lib/ccs/components/govuk/inset_text.rb +2 -2
- data/lib/ccs/components/govuk/label.rb +2 -2
- data/lib/ccs/components/govuk/notification_banner.rb +2 -2
- data/lib/ccs/components/govuk/pagination/increment/next.rb +2 -2
- data/lib/ccs/components/govuk/pagination/increment/previous.rb +2 -2
- data/lib/ccs/components/govuk/pagination/increment.rb +2 -2
- data/lib/ccs/components/govuk/pagination/item/form.rb +2 -2
- data/lib/ccs/components/govuk/pagination/item/tag.rb +2 -2
- data/lib/ccs/components/govuk/pagination/item.rb +2 -2
- data/lib/ccs/components/govuk/pagination.rb +2 -2
- data/lib/ccs/components/govuk/panel.rb +2 -2
- data/lib/ccs/components/govuk/phase_banner.rb +2 -2
- data/lib/ccs/components/govuk/service_navigation.rb +2 -2
- data/lib/ccs/components/govuk/skip_link.rb +2 -2
- data/lib/ccs/components/govuk/step_by_step_navigation.rb +2 -2
- data/lib/ccs/components/govuk/summary_list/action/link.rb +2 -2
- data/lib/ccs/components/govuk/summary_list/card/actions.rb +2 -2
- data/lib/ccs/components/govuk/summary_list/card/title.rb +2 -2
- data/lib/ccs/components/govuk/summary_list/card.rb +2 -2
- data/lib/ccs/components/govuk/summary_list/row/actions.rb +2 -2
- data/lib/ccs/components/govuk/summary_list/row/key.rb +2 -2
- data/lib/ccs/components/govuk/summary_list/row/value.rb +2 -2
- data/lib/ccs/components/govuk/summary_list/row.rb +2 -2
- data/lib/ccs/components/govuk/summary_list.rb +2 -2
- data/lib/ccs/components/govuk/table/body/data_cell.rb +2 -2
- data/lib/ccs/components/govuk/table/body/head_cell.rb +2 -2
- data/lib/ccs/components/govuk/table/header/head_cell.rb +2 -2
- data/lib/ccs/components/govuk/table.rb +2 -2
- data/lib/ccs/components/govuk/tabs/panel.rb +2 -2
- data/lib/ccs/components/govuk/tabs/tab.rb +2 -2
- data/lib/ccs/components/govuk/tabs.rb +2 -2
- data/lib/ccs/components/govuk/tag.rb +2 -2
- data/lib/ccs/components/govuk/task_list/item/status.rb +2 -2
- data/lib/ccs/components/govuk/task_list/item/title.rb +2 -2
- data/lib/ccs/components/govuk/task_list/item.rb +2 -2
- data/lib/ccs/components/govuk/task_list.rb +2 -2
- data/lib/ccs/components/govuk/warning_text.rb +2 -2
- data/lib/ccs/frontend_helpers/ccs_frontend/contact_us.rb +2 -2
- data/lib/ccs/frontend_helpers/ccs_frontend/dashboard_section.rb +2 -2
- data/lib/ccs/frontend_helpers/ccs_frontend/footer.rb +2 -2
- data/lib/ccs/frontend_helpers/ccs_frontend/header.rb +2 -2
- data/lib/ccs/frontend_helpers/ccs_frontend/password_strength.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/accordion.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/back_link.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/breadcrumbs.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/button.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/character_count.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/checkboxes.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/cookie_banner.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/date_input.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/details.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/error_message.rb +4 -4
- data/lib/ccs/frontend_helpers/govuk_frontend/error_summary.rb +4 -4
- data/lib/ccs/frontend_helpers/govuk_frontend/exit_this_page.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/fieldset.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/file_upload.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/footer.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/header.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/hint.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/input.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/inset_text.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/label.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/notification_banner.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/pagination.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/panel.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/password_input.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/phase_banner.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/radios.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/select.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/service_navigation.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/step_by_step_navigation.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/summary_list.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/table.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/tabs.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/tag.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/task_list.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/textarea.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/warning_text.rb +2 -2
- data/lib/ccs/frontend_helpers/version.rb +1 -1
- data/package.json +2 -2
- data/yarn.lock +8 -8
- metadata +4 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5da91f1cead5cea0d782242299e6290cc1c93a9513deba6b3866f696bd5a067c
|
4
|
+
data.tar.gz: 1e923993ff4a79465bf172007bfacca7d37a13d7122eb47d0fe6643d3f865080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4d556815d54978dd0c5a5d835dd41a6cfb5ec59330fdc1efe19cc62dadb2b151c4f12798c15941c400e9299a1fd789ed493d2b74bd3a4e8575ae5b729f1ab78
|
7
|
+
data.tar.gz: c763041c52a41d534e3d286e8e84e866a8b6121455a901f9916961efc17da22008bf951b26e9523574a2d780d5f55b408c2aa9736704935f6d9c0758e4230b89
|
data/.rubocop.yml
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
- rubocop-capybara
|
4
|
-
- rubocop-rspec
|
2
|
+
plugins:
|
5
3
|
- rubocop-rails
|
6
4
|
- rubocop-rake
|
5
|
+
- rubocop-rspec
|
6
|
+
|
7
|
+
require:
|
8
|
+
- rubocop-capybara
|
7
9
|
|
8
10
|
AllCops:
|
9
11
|
NewCops: enable
|
10
|
-
TargetRubyVersion: 3.
|
12
|
+
TargetRubyVersion: 3.2
|
11
13
|
Exclude:
|
12
14
|
- "bin/**/*"
|
13
15
|
- "tmp/**/*"
|
@@ -119,6 +121,9 @@ Layout/LineLength:
|
|
119
121
|
- "context .* do$"
|
120
122
|
- "scenario .* do$"
|
121
123
|
|
124
|
+
Lint/UselessConstantScoping:
|
125
|
+
Enabled: false
|
126
|
+
|
122
127
|
Metrics/ClassLength:
|
123
128
|
Enabled: false
|
124
129
|
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.4.1
|
data/CHANGELOG.md
CHANGED
@@ -7,12 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [2.2.0] - 2025-03-21
|
11
|
+
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- Add support for to ruby v3.4
|
15
|
+
- Updated GOV.UK Frontend to v5.9.0
|
16
|
+
- Updated CCS Frontend to v1.3.3
|
17
|
+
|
18
|
+
## [2.1.0] - 2025-01-08
|
19
|
+
|
20
|
+
### Changed
|
21
|
+
|
22
|
+
- Updated CCS Frontend to v1.3.2 (update to the CCS logo)
|
23
|
+
- Updated minimum Ruby version to v3.2
|
24
|
+
|
10
25
|
## [2.0.0] - 2024-11-05
|
11
26
|
|
12
27
|
### Changed
|
13
28
|
|
14
29
|
- Update minimum required Rails version to v7.0
|
15
|
-
- Updated minimum Ruby version to
|
30
|
+
- Updated minimum Ruby version to v3.1
|
16
31
|
|
17
32
|
### Added
|
18
33
|
|
data/Gemfile
CHANGED
@@ -16,11 +16,11 @@ gem 'simplecov', '~> 0.21'
|
|
16
16
|
gem 'nokogiri-diff', '~> 0.3.0'
|
17
17
|
|
18
18
|
# Gems for linting/formatting the package
|
19
|
-
gem 'rubocop', '~> 1.
|
20
|
-
gem 'rubocop-capybara', '~> 2.
|
21
|
-
gem 'rubocop-rails', '~> 2.
|
22
|
-
gem 'rubocop-rake', '~> 0.
|
23
|
-
gem 'rubocop-rspec', '~> 3.
|
19
|
+
gem 'rubocop', '~> 1.74'
|
20
|
+
gem 'rubocop-capybara', '~> 2.22'
|
21
|
+
gem 'rubocop-rails', '~> 2.30'
|
22
|
+
gem 'rubocop-rake', '~> 0.7'
|
23
|
+
gem 'rubocop-rspec', '~> 3.5'
|
24
24
|
|
25
25
|
# Gems for documenting the package
|
26
26
|
gem 'yard', '~> 0.9'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ccs-frontend_helpers (2.
|
4
|
+
ccs-frontend_helpers (2.2.0)
|
5
5
|
rails (>= 7.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -85,7 +85,7 @@ GEM
|
|
85
85
|
public_suffix (>= 2.0.2, < 6.0)
|
86
86
|
ast (2.4.2)
|
87
87
|
base64 (0.2.0)
|
88
|
-
bigdecimal (3.1.
|
88
|
+
bigdecimal (3.1.9)
|
89
89
|
builder (3.3.0)
|
90
90
|
capybara (3.40.0)
|
91
91
|
addressable
|
@@ -96,8 +96,8 @@ GEM
|
|
96
96
|
rack-test (>= 0.6.3)
|
97
97
|
regexp_parser (>= 1.5, < 3.0)
|
98
98
|
xpath (~> 3.2)
|
99
|
-
concurrent-ruby (1.3.
|
100
|
-
connection_pool (2.
|
99
|
+
concurrent-ruby (1.3.5)
|
100
|
+
connection_pool (2.5.0)
|
101
101
|
crass (1.0.6)
|
102
102
|
date (3.3.4)
|
103
103
|
diff-lcs (1.5.1)
|
@@ -106,14 +106,15 @@ GEM
|
|
106
106
|
erubi (1.13.0)
|
107
107
|
globalid (1.2.1)
|
108
108
|
activesupport (>= 6.1)
|
109
|
-
i18n (1.14.
|
109
|
+
i18n (1.14.7)
|
110
110
|
concurrent-ruby (~> 1.0)
|
111
111
|
io-console (0.7.2)
|
112
112
|
irb (1.14.0)
|
113
113
|
rdoc (>= 4.0.0)
|
114
114
|
reline (>= 0.4.2)
|
115
|
-
json (2.
|
116
|
-
language_server-protocol (3.17.0.
|
115
|
+
json (2.10.2)
|
116
|
+
language_server-protocol (3.17.0.4)
|
117
|
+
lint_roller (1.1.0)
|
117
118
|
loofah (2.22.0)
|
118
119
|
crass (~> 1.0.2)
|
119
120
|
nokogiri (>= 1.12.0)
|
@@ -125,8 +126,8 @@ GEM
|
|
125
126
|
marcel (1.0.4)
|
126
127
|
matrix (0.4.2)
|
127
128
|
mini_mime (1.1.5)
|
128
|
-
minitest (5.25.
|
129
|
-
mutex_m (0.
|
129
|
+
minitest (5.25.4)
|
130
|
+
mutex_m (0.3.0)
|
130
131
|
net-imap (0.4.15)
|
131
132
|
date
|
132
133
|
net-protocol
|
@@ -137,22 +138,22 @@ GEM
|
|
137
138
|
net-smtp (0.5.0)
|
138
139
|
net-protocol
|
139
140
|
nio4r (2.7.3)
|
140
|
-
nokogiri (1.
|
141
|
+
nokogiri (1.18.1-x86_64-darwin)
|
141
142
|
racc (~> 1.4)
|
142
|
-
nokogiri (1.
|
143
|
+
nokogiri (1.18.1-x86_64-linux-gnu)
|
143
144
|
racc (~> 1.4)
|
144
145
|
nokogiri-diff (0.3.0)
|
145
146
|
nokogiri (~> 1.5)
|
146
147
|
tdiff (~> 0.4)
|
147
148
|
parallel (1.26.3)
|
148
|
-
parser (3.3.
|
149
|
+
parser (3.3.7.1)
|
149
150
|
ast (~> 2.4.1)
|
150
151
|
racc
|
151
152
|
psych (5.1.2)
|
152
153
|
stringio
|
153
154
|
public_suffix (5.0.4)
|
154
155
|
racc (1.8.1)
|
155
|
-
rack (3.1.
|
156
|
+
rack (3.1.11)
|
156
157
|
rack-session (2.0.0)
|
157
158
|
rack (>= 3.0.0)
|
158
159
|
rack-test (2.1.0)
|
@@ -193,7 +194,7 @@ GEM
|
|
193
194
|
rake (13.2.1)
|
194
195
|
rdoc (6.7.0)
|
195
196
|
psych (>= 4.0.0)
|
196
|
-
regexp_parser (2.
|
197
|
+
regexp_parser (2.10.0)
|
197
198
|
reline (0.5.9)
|
198
199
|
io-console (~> 0.5)
|
199
200
|
rspec (3.13.0)
|
@@ -209,29 +210,34 @@ GEM
|
|
209
210
|
diff-lcs (>= 1.2.0, < 2.0)
|
210
211
|
rspec-support (~> 3.13.0)
|
211
212
|
rspec-support (3.13.1)
|
212
|
-
rubocop (1.
|
213
|
+
rubocop (1.74.0)
|
213
214
|
json (~> 2.3)
|
214
|
-
language_server-protocol (
|
215
|
+
language_server-protocol (~> 3.17.0.2)
|
216
|
+
lint_roller (~> 1.1.0)
|
215
217
|
parallel (~> 1.10)
|
216
218
|
parser (>= 3.3.0.2)
|
217
219
|
rainbow (>= 2.2.2, < 4.0)
|
218
|
-
regexp_parser (>= 2.
|
219
|
-
rubocop-ast (>= 1.
|
220
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
221
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
220
222
|
ruby-progressbar (~> 1.7)
|
221
|
-
unicode-display_width (>= 2.4.0, <
|
222
|
-
rubocop-ast (1.
|
223
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
224
|
+
rubocop-ast (1.39.0)
|
223
225
|
parser (>= 3.3.1.0)
|
224
|
-
rubocop-capybara (2.
|
225
|
-
|
226
|
-
|
226
|
+
rubocop-capybara (2.22.1)
|
227
|
+
lint_roller (~> 1.1)
|
228
|
+
rubocop (~> 1.72, >= 1.72.1)
|
229
|
+
rubocop-rails (2.30.3)
|
227
230
|
activesupport (>= 4.2.0)
|
231
|
+
lint_roller (~> 1.1)
|
228
232
|
rack (>= 1.1)
|
229
|
-
rubocop (>= 1.
|
230
|
-
rubocop-ast (>= 1.
|
231
|
-
rubocop-rake (0.
|
232
|
-
|
233
|
-
|
234
|
-
|
233
|
+
rubocop (>= 1.72.1, < 2.0)
|
234
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
235
|
+
rubocop-rake (0.7.1)
|
236
|
+
lint_roller (~> 1.1)
|
237
|
+
rubocop (>= 1.72.1)
|
238
|
+
rubocop-rspec (3.5.0)
|
239
|
+
lint_roller (~> 1.1)
|
240
|
+
rubocop (~> 1.72, >= 1.72.1)
|
235
241
|
ruby-progressbar (1.13.0)
|
236
242
|
simplecov (0.22.0)
|
237
243
|
docile (~> 1.1)
|
@@ -245,7 +251,9 @@ GEM
|
|
245
251
|
timeout (0.4.1)
|
246
252
|
tzinfo (2.0.6)
|
247
253
|
concurrent-ruby (~> 1.0)
|
248
|
-
unicode-display_width (
|
254
|
+
unicode-display_width (3.1.4)
|
255
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
256
|
+
unicode-emoji (4.0.4)
|
249
257
|
webrick (1.8.1)
|
250
258
|
websocket-driver (0.7.6)
|
251
259
|
websocket-extensions (>= 0.1.0)
|
@@ -259,6 +267,7 @@ PLATFORMS
|
|
259
267
|
x86_64-darwin-19
|
260
268
|
x86_64-darwin-20
|
261
269
|
x86_64-darwin-22
|
270
|
+
x86_64-darwin-23
|
262
271
|
x86_64-linux
|
263
272
|
|
264
273
|
DEPENDENCIES
|
@@ -268,11 +277,11 @@ DEPENDENCIES
|
|
268
277
|
nokogiri-diff (~> 0.3.0)
|
269
278
|
rake (~> 13.2)
|
270
279
|
rspec (~> 3.13)
|
271
|
-
rubocop (~> 1.
|
272
|
-
rubocop-capybara (~> 2.
|
273
|
-
rubocop-rails (~> 2.
|
274
|
-
rubocop-rake (~> 0.
|
275
|
-
rubocop-rspec (~> 3.
|
280
|
+
rubocop (~> 1.74)
|
281
|
+
rubocop-capybara (~> 2.22)
|
282
|
+
rubocop-rails (~> 2.30)
|
283
|
+
rubocop-rake (~> 0.7)
|
284
|
+
rubocop-rspec (~> 3.5)
|
276
285
|
simplecov (~> 0.21)
|
277
286
|
yard (~> 0.9)
|
278
287
|
|
data/README.md
CHANGED
@@ -14,6 +14,8 @@ The following table shows the version of CCS Frontend Helpers that you should us
|
|
14
14
|
|
15
15
|
| CCS Frontend Helpers Version | Target GOV.UK Frontend Version | Target CCS Frontend Version |
|
16
16
|
| ----------------------------- | ------------------------------ | --------------------------- |
|
17
|
+
| [2.2.0](https://github.com/Crown-Commercial-Service/ccs-frontend_helpers/releases/tag/v2.2.0) | [5.9.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.9.0) | [1.3.3](https://github.com/Crown-Commercial-Service/ccs-frontend-project/releases/tag/v1.3.3) |
|
18
|
+
| [2.1.0](https://github.com/Crown-Commercial-Service/ccs-frontend_helpers/releases/tag/v2.1.0) | [5.7.1](https://github.com/alphagov/govuk-frontend/releases/tag/v5.7.1) | [1.3.2](https://github.com/Crown-Commercial-Service/ccs-frontend-project/releases/tag/v1.3.2) |
|
17
19
|
| [2.0.0](https://github.com/Crown-Commercial-Service/ccs-frontend_helpers/releases/tag/v2.0.0) | [5.7.1](https://github.com/alphagov/govuk-frontend/releases/tag/v5.7.1) | [1.2.0](https://github.com/Crown-Commercial-Service/ccs-frontend-project/releases/tag/v1.2.0) |
|
18
20
|
| [1.2.0](https://github.com/Crown-Commercial-Service/ccs-frontend_helpers/releases/tag/v1.2.0) | [5.6.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.6.0) | [1.1.3](https://github.com/Crown-Commercial-Service/ccs-frontend-project/releases/tag/v1.1.3) |
|
19
21
|
| [1.1.2](https://github.com/Crown-Commercial-Service/ccs-frontend_helpers/releases/tag/v1.1.2) | [5.5.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.5.0) | [1.1.2](https://github.com/Crown-Commercial-Service/ccs-frontend-project/releases/tag/v1.1.2) |
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.description = 'Gem containing view helpers for CCS Ruby on Rails projects'
|
12
12
|
spec.homepage = 'https://github.com/Crown-Commercial-Service/ccs-frontend_helpers'
|
13
13
|
spec.license = 'MIT'
|
14
|
-
spec.required_ruby_version = '>= 3.
|
14
|
+
spec.required_ruby_version = '>= 3.2.0'
|
15
15
|
|
16
16
|
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
17
17
|
|
@@ -32,8 +32,8 @@ module CCS
|
|
32
32
|
# @option options [String] :classes additional CSS classes for the contact us HTML
|
33
33
|
# @option options [Hash] :attributes additional attributes that will added as part of the contact us HTML
|
34
34
|
|
35
|
-
def initialize(contact_us_link_href:, having_problems_text: nil, contact_us_link_text: nil, contact_us_text: nil, **
|
36
|
-
super(**
|
35
|
+
def initialize(contact_us_link_href:, having_problems_text: nil, contact_us_link_text: nil, contact_us_text: nil, **)
|
36
|
+
super(**)
|
37
37
|
|
38
38
|
@contact_us_link_href = contact_us_link_href
|
39
39
|
@contact_us_link_text = contact_us_link_text || 'Contact us (opens in a new tab)'
|
@@ -30,8 +30,8 @@ module CCS
|
|
30
30
|
# @option options [String] :width (default: 'one-third') the width of the panel
|
31
31
|
# @option options [Hash] :attributes any additional attributes that will added as part of the HTML.
|
32
32
|
|
33
|
-
def initialize(title:, href:, description:, **
|
34
|
-
super(**
|
33
|
+
def initialize(title:, href:, description:, **)
|
34
|
+
super(**)
|
35
35
|
|
36
36
|
@options[:attributes][:class] << " govuk-grid-column-#{@options[:width] || 'one-third'}"
|
37
37
|
|
@@ -29,8 +29,8 @@ module CCS
|
|
29
29
|
# @option options [String] :width (default: 'full') the width of the dashboard section
|
30
30
|
# @option options [Hash] :attributes any additional attributes that will added as part of the HTML
|
31
31
|
|
32
|
-
def initialize(dashboard_section_panels:, title_text: nil, **
|
33
|
-
super(**
|
32
|
+
def initialize(dashboard_section_panels:, title_text: nil, **)
|
33
|
+
super(**)
|
34
34
|
|
35
35
|
@options[:width] ||= 'full'
|
36
36
|
|
@@ -29,8 +29,8 @@ module CCS
|
|
29
29
|
#
|
30
30
|
# @option options [Hash] :attributes any additional attributes that will added as part of the HTML
|
31
31
|
|
32
|
-
def initialize(text:, href:, li_class:, **
|
33
|
-
super(**
|
32
|
+
def initialize(text:, href:, li_class:, **)
|
33
|
+
super(**)
|
34
34
|
|
35
35
|
@text = text
|
36
36
|
@href = href
|
@@ -36,8 +36,8 @@ module CCS
|
|
36
36
|
# @option options [ActiveSupport::SafeBuffer,String] :copyright The copyright information, (default: '© Crown copyright')
|
37
37
|
# @option options [Hash] :attributes additional attributes that will added as part of the HTML
|
38
38
|
|
39
|
-
def initialize(navigation: nil, meta: nil, **
|
40
|
-
super(**
|
39
|
+
def initialize(navigation: nil, meta: nil, **)
|
40
|
+
super(**)
|
41
41
|
|
42
42
|
@options[:copyright] ||= '© Crown copyright'
|
43
43
|
|
@@ -30,8 +30,8 @@ module CCS
|
|
30
30
|
# @option options [Boolean] :active flag to mark the navigation item as active or not
|
31
31
|
# @option options [Hash] :attributes any additional attributes that will added as part of the HTML
|
32
32
|
|
33
|
-
def initialize(text:, li_class:, href: nil, **
|
34
|
-
super(**
|
33
|
+
def initialize(text:, li_class:, href: nil, **)
|
34
|
+
super(**)
|
35
35
|
|
36
36
|
@text = text
|
37
37
|
@href = href
|
@@ -44,8 +44,8 @@ module CCS
|
|
44
44
|
# @option options [String] :homepage_url URL of the homepage. Defaults to +/https://www.crowncommercial.gov.uk+
|
45
45
|
# @option options [Hash] :attributes additional attributes that will added as part of the header HTML
|
46
46
|
|
47
|
-
def initialize(service_authentication_items: nil, navigation: nil, menu_button: nil, service: nil, **
|
48
|
-
super(**
|
47
|
+
def initialize(service_authentication_items: nil, navigation: nil, menu_button: nil, service: nil, **)
|
48
|
+
super(**)
|
49
49
|
|
50
50
|
@options[:container_classes] ||= 'govuk-width-container'
|
51
51
|
@options[:homepage_url] ||= 'https://www.crowncommercial.gov.uk'
|