ccs-frontend_helpers 1.2.0 → 2.0.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 +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +12 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +70 -70
- data/README.md +1 -0
- data/ccs-frontend_helpers.gemspec +2 -2
- data/lib/ccs/components/govuk/field.rb +2 -2
- data/lib/ccs/components/govuk/pagination/increment.rb +3 -3
- data/lib/ccs/components/govuk/pagination/item.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/details.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/fieldset.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/form_group.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/hint.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/panel.rb +2 -2
- data/lib/ccs/frontend_helpers/govuk_frontend/phase_banner.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 +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e09c05f35265d0a0818888f98fc01eac5c19d7d8383e328d6ebec40616a58fe7
|
4
|
+
data.tar.gz: a4439bb27706ccb279e5c1fc4ff4336d0a2bef57b09f5dd4f2adad2e045430e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79c572690bae3d82a2c72642ef22f576ab54155a03e2ef1b4c54acfb6d7eddf5da6175080c8aa05fc134ef32b2bb83dc2f9ce50cdefe19c6b530666bc18b02be
|
7
|
+
data.tar.gz: 6cbe9e413665a50a585e2728c0dd3aefa7a5f36722f2dff1e1eab0e2c5123f0f28594f0095e98b89523761bfcd1e767bbb0f8081609925e74793dbef1a355751
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.5
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [2.0.0] - 2024-11-05
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
|
14
|
+
- Update minimum required Rails version to v7.0
|
15
|
+
- Updated minimum Ruby version to 3.1
|
16
|
+
|
17
|
+
### Added
|
18
|
+
|
19
|
+
- Updated GOV.UK Frontend to v5.7.1
|
20
|
+
- Updated CCS Frontend to v1.2.0
|
21
|
+
|
10
22
|
## [1.2.0] - 2024-09-02
|
11
23
|
|
12
24
|
### Added
|
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.
|
19
|
+
gem 'rubocop', '~> 1.68'
|
20
20
|
gem 'rubocop-capybara', '~> 2.20'
|
21
|
-
gem 'rubocop-rails', '~> 2.
|
21
|
+
gem 'rubocop-rails', '~> 2.27'
|
22
22
|
gem 'rubocop-rake', '~> 0.6'
|
23
|
-
gem 'rubocop-rspec', '~> 3.
|
23
|
+
gem 'rubocop-rspec', '~> 3.2'
|
24
24
|
|
25
25
|
# Gems for documenting the package
|
26
26
|
gem 'yard', '~> 0.9'
|
data/Gemfile.lock
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ccs-frontend_helpers (
|
5
|
-
rails (>=
|
4
|
+
ccs-frontend_helpers (2.0.0)
|
5
|
+
rails (>= 7.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (7.1.4)
|
11
|
-
actionpack (= 7.1.4)
|
12
|
-
activesupport (= 7.1.4)
|
10
|
+
actioncable (7.1.4.2)
|
11
|
+
actionpack (= 7.1.4.2)
|
12
|
+
activesupport (= 7.1.4.2)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
15
|
zeitwerk (~> 2.6)
|
16
|
-
actionmailbox (7.1.4)
|
17
|
-
actionpack (= 7.1.4)
|
18
|
-
activejob (= 7.1.4)
|
19
|
-
activerecord (= 7.1.4)
|
20
|
-
activestorage (= 7.1.4)
|
21
|
-
activesupport (= 7.1.4)
|
16
|
+
actionmailbox (7.1.4.2)
|
17
|
+
actionpack (= 7.1.4.2)
|
18
|
+
activejob (= 7.1.4.2)
|
19
|
+
activerecord (= 7.1.4.2)
|
20
|
+
activestorage (= 7.1.4.2)
|
21
|
+
activesupport (= 7.1.4.2)
|
22
22
|
mail (>= 2.7.1)
|
23
23
|
net-imap
|
24
24
|
net-pop
|
25
25
|
net-smtp
|
26
|
-
actionmailer (7.1.4)
|
27
|
-
actionpack (= 7.1.4)
|
28
|
-
actionview (= 7.1.4)
|
29
|
-
activejob (= 7.1.4)
|
30
|
-
activesupport (= 7.1.4)
|
26
|
+
actionmailer (7.1.4.2)
|
27
|
+
actionpack (= 7.1.4.2)
|
28
|
+
actionview (= 7.1.4.2)
|
29
|
+
activejob (= 7.1.4.2)
|
30
|
+
activesupport (= 7.1.4.2)
|
31
31
|
mail (~> 2.5, >= 2.5.4)
|
32
32
|
net-imap
|
33
33
|
net-pop
|
34
34
|
net-smtp
|
35
35
|
rails-dom-testing (~> 2.2)
|
36
|
-
actionpack (7.1.4)
|
37
|
-
actionview (= 7.1.4)
|
38
|
-
activesupport (= 7.1.4)
|
36
|
+
actionpack (7.1.4.2)
|
37
|
+
actionview (= 7.1.4.2)
|
38
|
+
activesupport (= 7.1.4.2)
|
39
39
|
nokogiri (>= 1.8.5)
|
40
40
|
racc
|
41
41
|
rack (>= 2.2.4)
|
@@ -43,35 +43,35 @@ GEM
|
|
43
43
|
rack-test (>= 0.6.3)
|
44
44
|
rails-dom-testing (~> 2.2)
|
45
45
|
rails-html-sanitizer (~> 1.6)
|
46
|
-
actiontext (7.1.4)
|
47
|
-
actionpack (= 7.1.4)
|
48
|
-
activerecord (= 7.1.4)
|
49
|
-
activestorage (= 7.1.4)
|
50
|
-
activesupport (= 7.1.4)
|
46
|
+
actiontext (7.1.4.2)
|
47
|
+
actionpack (= 7.1.4.2)
|
48
|
+
activerecord (= 7.1.4.2)
|
49
|
+
activestorage (= 7.1.4.2)
|
50
|
+
activesupport (= 7.1.4.2)
|
51
51
|
globalid (>= 0.6.0)
|
52
52
|
nokogiri (>= 1.8.5)
|
53
|
-
actionview (7.1.4)
|
54
|
-
activesupport (= 7.1.4)
|
53
|
+
actionview (7.1.4.2)
|
54
|
+
activesupport (= 7.1.4.2)
|
55
55
|
builder (~> 3.1)
|
56
56
|
erubi (~> 1.11)
|
57
57
|
rails-dom-testing (~> 2.2)
|
58
58
|
rails-html-sanitizer (~> 1.6)
|
59
|
-
activejob (7.1.4)
|
60
|
-
activesupport (= 7.1.4)
|
59
|
+
activejob (7.1.4.2)
|
60
|
+
activesupport (= 7.1.4.2)
|
61
61
|
globalid (>= 0.3.6)
|
62
|
-
activemodel (7.1.4)
|
63
|
-
activesupport (= 7.1.4)
|
64
|
-
activerecord (7.1.4)
|
65
|
-
activemodel (= 7.1.4)
|
66
|
-
activesupport (= 7.1.4)
|
62
|
+
activemodel (7.1.4.2)
|
63
|
+
activesupport (= 7.1.4.2)
|
64
|
+
activerecord (7.1.4.2)
|
65
|
+
activemodel (= 7.1.4.2)
|
66
|
+
activesupport (= 7.1.4.2)
|
67
67
|
timeout (>= 0.4.0)
|
68
|
-
activestorage (7.1.4)
|
69
|
-
actionpack (= 7.1.4)
|
70
|
-
activejob (= 7.1.4)
|
71
|
-
activerecord (= 7.1.4)
|
72
|
-
activesupport (= 7.1.4)
|
68
|
+
activestorage (7.1.4.2)
|
69
|
+
actionpack (= 7.1.4.2)
|
70
|
+
activejob (= 7.1.4.2)
|
71
|
+
activerecord (= 7.1.4.2)
|
72
|
+
activesupport (= 7.1.4.2)
|
73
73
|
marcel (~> 1.0)
|
74
|
-
activesupport (7.1.4)
|
74
|
+
activesupport (7.1.4.2)
|
75
75
|
base64
|
76
76
|
bigdecimal
|
77
77
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -106,13 +106,13 @@ 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.6)
|
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.7.
|
115
|
+
json (2.7.5)
|
116
116
|
language_server-protocol (3.17.0.3)
|
117
117
|
loofah (2.22.0)
|
118
118
|
crass (~> 1.0.2)
|
@@ -145,14 +145,14 @@ GEM
|
|
145
145
|
nokogiri (~> 1.5)
|
146
146
|
tdiff (~> 0.4)
|
147
147
|
parallel (1.26.3)
|
148
|
-
parser (3.3.
|
148
|
+
parser (3.3.5.1)
|
149
149
|
ast (~> 2.4.1)
|
150
150
|
racc
|
151
151
|
psych (5.1.2)
|
152
152
|
stringio
|
153
153
|
public_suffix (5.0.4)
|
154
154
|
racc (1.8.1)
|
155
|
-
rack (3.1.
|
155
|
+
rack (3.1.8)
|
156
156
|
rack-session (2.0.0)
|
157
157
|
rack (>= 3.0.0)
|
158
158
|
rack-test (2.1.0)
|
@@ -160,20 +160,20 @@ GEM
|
|
160
160
|
rackup (2.1.0)
|
161
161
|
rack (>= 3)
|
162
162
|
webrick (~> 1.8)
|
163
|
-
rails (7.1.4)
|
164
|
-
actioncable (= 7.1.4)
|
165
|
-
actionmailbox (= 7.1.4)
|
166
|
-
actionmailer (= 7.1.4)
|
167
|
-
actionpack (= 7.1.4)
|
168
|
-
actiontext (= 7.1.4)
|
169
|
-
actionview (= 7.1.4)
|
170
|
-
activejob (= 7.1.4)
|
171
|
-
activemodel (= 7.1.4)
|
172
|
-
activerecord (= 7.1.4)
|
173
|
-
activestorage (= 7.1.4)
|
174
|
-
activesupport (= 7.1.4)
|
163
|
+
rails (7.1.4.2)
|
164
|
+
actioncable (= 7.1.4.2)
|
165
|
+
actionmailbox (= 7.1.4.2)
|
166
|
+
actionmailer (= 7.1.4.2)
|
167
|
+
actionpack (= 7.1.4.2)
|
168
|
+
actiontext (= 7.1.4.2)
|
169
|
+
actionview (= 7.1.4.2)
|
170
|
+
activejob (= 7.1.4.2)
|
171
|
+
activemodel (= 7.1.4.2)
|
172
|
+
activerecord (= 7.1.4.2)
|
173
|
+
activestorage (= 7.1.4.2)
|
174
|
+
activesupport (= 7.1.4.2)
|
175
175
|
bundler (>= 1.15.0)
|
176
|
-
railties (= 7.1.4)
|
176
|
+
railties (= 7.1.4.2)
|
177
177
|
rails-dom-testing (2.2.0)
|
178
178
|
activesupport (>= 5.0.0)
|
179
179
|
minitest
|
@@ -181,9 +181,9 @@ GEM
|
|
181
181
|
rails-html-sanitizer (1.6.0)
|
182
182
|
loofah (~> 2.21)
|
183
183
|
nokogiri (~> 1.14)
|
184
|
-
railties (7.1.4)
|
185
|
-
actionpack (= 7.1.4)
|
186
|
-
activesupport (= 7.1.4)
|
184
|
+
railties (7.1.4.2)
|
185
|
+
actionpack (= 7.1.4.2)
|
186
|
+
activesupport (= 7.1.4.2)
|
187
187
|
irb
|
188
188
|
rackup (>= 1.0.0)
|
189
189
|
rake (>= 12.2)
|
@@ -209,28 +209,28 @@ GEM
|
|
209
209
|
diff-lcs (>= 1.2.0, < 2.0)
|
210
210
|
rspec-support (~> 3.13.0)
|
211
211
|
rspec-support (3.13.1)
|
212
|
-
rubocop (1.
|
212
|
+
rubocop (1.68.0)
|
213
213
|
json (~> 2.3)
|
214
214
|
language_server-protocol (>= 3.17.0)
|
215
215
|
parallel (~> 1.10)
|
216
216
|
parser (>= 3.3.0.2)
|
217
217
|
rainbow (>= 2.2.2, < 4.0)
|
218
218
|
regexp_parser (>= 2.4, < 3.0)
|
219
|
-
rubocop-ast (>= 1.32.
|
219
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
220
220
|
ruby-progressbar (~> 1.7)
|
221
221
|
unicode-display_width (>= 2.4.0, < 3.0)
|
222
|
-
rubocop-ast (1.
|
222
|
+
rubocop-ast (1.33.1)
|
223
223
|
parser (>= 3.3.1.0)
|
224
224
|
rubocop-capybara (2.21.0)
|
225
225
|
rubocop (~> 1.41)
|
226
|
-
rubocop-rails (2.
|
226
|
+
rubocop-rails (2.27.0)
|
227
227
|
activesupport (>= 4.2.0)
|
228
228
|
rack (>= 1.1)
|
229
229
|
rubocop (>= 1.52.0, < 2.0)
|
230
230
|
rubocop-ast (>= 1.31.1, < 2.0)
|
231
231
|
rubocop-rake (0.6.0)
|
232
232
|
rubocop (~> 1.0)
|
233
|
-
rubocop-rspec (3.0
|
233
|
+
rubocop-rspec (3.2.0)
|
234
234
|
rubocop (~> 1.61)
|
235
235
|
ruby-progressbar (1.13.0)
|
236
236
|
simplecov (0.22.0)
|
@@ -245,14 +245,14 @@ GEM
|
|
245
245
|
timeout (0.4.1)
|
246
246
|
tzinfo (2.0.6)
|
247
247
|
concurrent-ruby (~> 1.0)
|
248
|
-
unicode-display_width (2.
|
248
|
+
unicode-display_width (2.6.0)
|
249
249
|
webrick (1.8.1)
|
250
250
|
websocket-driver (0.7.6)
|
251
251
|
websocket-extensions (>= 0.1.0)
|
252
252
|
websocket-extensions (0.1.5)
|
253
253
|
xpath (3.2.0)
|
254
254
|
nokogiri (~> 1.8)
|
255
|
-
yard (0.9.
|
255
|
+
yard (0.9.37)
|
256
256
|
zeitwerk (2.6.18)
|
257
257
|
|
258
258
|
PLATFORMS
|
@@ -268,13 +268,13 @@ DEPENDENCIES
|
|
268
268
|
nokogiri-diff (~> 0.3.0)
|
269
269
|
rake (~> 13.2)
|
270
270
|
rspec (~> 3.13)
|
271
|
-
rubocop (~> 1.
|
271
|
+
rubocop (~> 1.68)
|
272
272
|
rubocop-capybara (~> 2.20)
|
273
|
-
rubocop-rails (~> 2.
|
273
|
+
rubocop-rails (~> 2.27)
|
274
274
|
rubocop-rake (~> 0.6)
|
275
|
-
rubocop-rspec (~> 3.
|
275
|
+
rubocop-rspec (~> 3.2)
|
276
276
|
simplecov (~> 0.21)
|
277
277
|
yard (~> 0.9)
|
278
278
|
|
279
279
|
BUNDLED WITH
|
280
|
-
2.
|
280
|
+
2.5.20
|
data/README.md
CHANGED
@@ -14,6 +14,7 @@ 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.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) |
|
17
18
|
| [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) |
|
18
19
|
| [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) |
|
19
20
|
| [1.1.1](https://github.com/Crown-Commercial-Service/ccs-frontend_helpers/releases/tag/v1.1.1) | [5.4.1](https://github.com/alphagov/govuk-frontend/releases/tag/v5.4.1) | [1.1.1](https://github.com/Crown-Commercial-Service/ccs-frontend-project/releases/tag/v1.1.1) |
|
@@ -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.1.0'
|
15
15
|
|
16
16
|
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
17
17
|
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ['lib']
|
32
32
|
|
33
|
-
spec.add_dependency 'rails', '>=
|
33
|
+
spec.add_dependency 'rails', '>= 7.0'
|
34
34
|
|
35
35
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
36
36
|
end
|
@@ -61,11 +61,11 @@ module CCS
|
|
61
61
|
#
|
62
62
|
# @return [ActiveSupport::SafeBuffer]
|
63
63
|
|
64
|
-
def render(&
|
64
|
+
def render(&)
|
65
65
|
if options[:form]
|
66
|
-
options[:form].button(**options[:attributes], &
|
66
|
+
options[:form].button(**options[:attributes], &)
|
67
67
|
else
|
68
|
-
link_to(options[:href], **options[:attributes], &
|
68
|
+
link_to(options[:href], **options[:attributes], &)
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
@@ -21,8 +21,8 @@ module CCS
|
|
21
21
|
#
|
22
22
|
# @return (see CCS::Components::GovUK::Details#render)
|
23
23
|
|
24
|
-
def govuk_details(summary_text, **options, &
|
25
|
-
Components::GovUK::Details.new(context: self, summary_text: summary_text, **options).render(&
|
24
|
+
def govuk_details(summary_text, **options, &)
|
25
|
+
Components::GovUK::Details.new(context: self, summary_text: summary_text, **options).render(&)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -21,8 +21,8 @@ module CCS
|
|
21
21
|
#
|
22
22
|
# @return (see CCS::Components::GovUK::Fieldset#render)
|
23
23
|
|
24
|
-
def govuk_fieldset(**options, &
|
25
|
-
Components::GovUK::Fieldset.new(context: self, **options).render(&
|
24
|
+
def govuk_fieldset(**options, &)
|
25
|
+
Components::GovUK::Fieldset.new(context: self, **options).render(&)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -24,14 +24,14 @@ module CCS
|
|
24
24
|
#
|
25
25
|
# @return (see CCS::Components::GovUK::FormGroup#render)
|
26
26
|
|
27
|
-
def govuk_form_group(attribute, **options, &
|
27
|
+
def govuk_form_group(attribute, **options, &)
|
28
28
|
error_message = if options[:model]
|
29
29
|
options[:model].errors[attribute].first
|
30
30
|
else
|
31
31
|
options[:error_message]
|
32
32
|
end
|
33
33
|
|
34
|
-
Components::GovUK::FormGroup.new(context: self, attribute: attribute, error_message: error_message, **options).render(&
|
34
|
+
Components::GovUK::FormGroup.new(context: self, attribute: attribute, error_message: error_message, **options).render(&)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -20,8 +20,8 @@ module CCS
|
|
20
20
|
#
|
21
21
|
# @return (see CCS::Components::GovUK::Hint#render)
|
22
22
|
|
23
|
-
def govuk_hint(text = nil, **options, &
|
24
|
-
Components::GovUK::Hint.new(context: self, text: text, **options).render(&
|
23
|
+
def govuk_hint(text = nil, **options, &)
|
24
|
+
Components::GovUK::Hint.new(context: self, text: text, **options).render(&)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -21,8 +21,8 @@ module CCS
|
|
21
21
|
#
|
22
22
|
# @return (see CCS::Components::GovUK::InsetText#render)
|
23
23
|
|
24
|
-
def govuk_inset_text(text = nil, **options, &
|
25
|
-
Components::GovUK::InsetText.new(context: self, text: text, **options).render(&
|
24
|
+
def govuk_inset_text(text = nil, **options, &)
|
25
|
+
Components::GovUK::InsetText.new(context: self, text: text, **options).render(&)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -20,8 +20,8 @@ module CCS
|
|
20
20
|
#
|
21
21
|
# @return (see CCS::Components::GovUK::Label#render)
|
22
22
|
|
23
|
-
def govuk_label(attribute, text = nil, **options, &
|
24
|
-
Components::GovUK::Label.new(context: self, attribute: attribute, text: text, **options).render(&
|
23
|
+
def govuk_label(attribute, text = nil, **options, &)
|
24
|
+
Components::GovUK::Label.new(context: self, attribute: attribute, text: text, **options).render(&)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -21,8 +21,8 @@ module CCS
|
|
21
21
|
#
|
22
22
|
# @return (see CCS::Components::GovUK::NotificationBanner#render)
|
23
23
|
|
24
|
-
def govuk_notification_banner(text = nil, success_banner = nil, **options, &
|
25
|
-
Components::GovUK::NotificationBanner.new(context: self, text: text, success_banner: success_banner, **options).render(&
|
24
|
+
def govuk_notification_banner(text = nil, success_banner = nil, **options, &)
|
25
|
+
Components::GovUK::NotificationBanner.new(context: self, text: text, success_banner: success_banner, **options).render(&)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -21,8 +21,8 @@ module CCS
|
|
21
21
|
#
|
22
22
|
# @return (see CCS::Components::GovUK::Panel#render)
|
23
23
|
|
24
|
-
def govuk_panel(title_text, panel_text = nil, **options, &
|
25
|
-
Components::GovUK::Panel.new(context: self, title_text: title_text, panel_text: panel_text, **options).render(&
|
24
|
+
def govuk_panel(title_text, panel_text = nil, **options, &)
|
25
|
+
Components::GovUK::Panel.new(context: self, title_text: title_text, panel_text: panel_text, **options).render(&)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -21,8 +21,8 @@ module CCS
|
|
21
21
|
#
|
22
22
|
# @return (see CCS::Components::GovUK::PhaseBanner#render)
|
23
23
|
|
24
|
-
def govuk_phase_banner(tag_options, text = nil, **options, &
|
25
|
-
Components::GovUK::PhaseBanner.new(context: self, tag_options: tag_options, text: text, **options).render(&
|
24
|
+
def govuk_phase_banner(tag_options, text = nil, **options, &)
|
25
|
+
Components::GovUK::PhaseBanner.new(context: self, tag_options: tag_options, text: text, **options).render(&)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -21,8 +21,8 @@ module CCS
|
|
21
21
|
#
|
22
22
|
# @return (see CCS::Components::GovUK::WarningText#render)
|
23
23
|
|
24
|
-
def govuk_warning_text(text = nil, **options, &
|
25
|
-
Components::GovUK::WarningText.new(context: self, text: text, **options).render(&
|
24
|
+
def govuk_warning_text(text = nil, **options, &)
|
25
|
+
Components::GovUK::WarningText.new(context: self, text: text, **options).render(&)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/package.json
CHANGED
data/yarn.lock
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
# yarn lockfile v1
|
3
3
|
|
4
4
|
|
5
|
-
ccs-frontend@^1.
|
6
|
-
version "1.
|
7
|
-
resolved "https://registry.yarnpkg.com/ccs-frontend/-/ccs-frontend-1.
|
8
|
-
integrity sha512-
|
5
|
+
ccs-frontend@^1.2.0:
|
6
|
+
version "1.2.0"
|
7
|
+
resolved "https://registry.yarnpkg.com/ccs-frontend/-/ccs-frontend-1.2.0.tgz#71027647d619c169189a592de35a76858f4f50fa"
|
8
|
+
integrity sha512-7pGM3KxrHYb/MS7k1DWhJsQyNKi3WVYHNJfQbkBI2tzeRQFor04mhsjgGjv0dL9/cXn1pEvM+kcOOxVVyPxUeQ==
|
9
9
|
|
10
|
-
govuk-frontend@^5.
|
11
|
-
version "5.
|
12
|
-
resolved "https://registry.yarnpkg.com/govuk-frontend/-/govuk-frontend-5.
|
13
|
-
integrity sha512-
|
10
|
+
govuk-frontend@^5.7.1:
|
11
|
+
version "5.7.1"
|
12
|
+
resolved "https://registry.yarnpkg.com/govuk-frontend/-/govuk-frontend-5.7.1.tgz#d4c561ebf8c0b76130f31df8c2e4d70d340cd63f"
|
13
|
+
integrity sha512-jF1cq5rn57kxZmJRprUZhTQ31zaBBK4b5AyeJaPX3Yhg22lk90Mx/dQLvOk/ycV3wM7e0y+s4IPvb2fFaPlCGg==
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ccs-frontend_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Crown Commercial Service
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '7.0'
|
27
27
|
description: Gem containing view helpers for CCS Ruby on Rails projects
|
28
28
|
email:
|
29
29
|
executables: []
|
@@ -219,14 +219,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
219
|
requirements:
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 3.
|
222
|
+
version: 3.1.0
|
223
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
224
|
requirements:
|
225
225
|
- - ">="
|
226
226
|
- !ruby/object:Gem::Version
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
|
-
rubygems_version: 3.5.
|
229
|
+
rubygems_version: 3.5.16
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Gem containing view helpers for CCS Ruby on Rails projects
|