govuk-components 5.0.0b3 → 5.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48254d17c646e2b01105ded5e6e439027fc60ff451c1e33f01c03f9922f58975
|
4
|
+
data.tar.gz: e9502d4077f983dd0f4ca33fec2cf101c34a7f1973943c9b77f5f43eb2af3656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e7aa296d43612ca4f31437239ce4445fc6ff4559a024e196b571cc3e4fb27db37ef785a3da3ba578b230caf6b3c4e859d0a654e71dce79fc344b5c95b07341
|
7
|
+
data.tar.gz: bdfb0aa85989f7453f71f956a9c27998d40a217cd3180d51263f69bd13d3feb5cdae1d64443779388d34088bc0d54b4da55c0a6c4cca7a14e24c1efd6d864b9a
|
@@ -26,7 +26,7 @@ module GovukLinkHelper
|
|
26
26
|
button_text = build_text(name, visually_hidden_prefix: visually_hidden_prefix, visually_hidden_suffix: visually_hidden_suffix)
|
27
27
|
|
28
28
|
if block_given?
|
29
|
-
button_to(
|
29
|
+
button_to(name, **button_args, &block)
|
30
30
|
else
|
31
31
|
button_to(button_text, href, **button_args)
|
32
32
|
end
|
@@ -37,7 +37,7 @@ module GovukLinkHelper
|
|
37
37
|
button_text = build_text(name, visually_hidden_prefix: visually_hidden_prefix, visually_hidden_suffix: visually_hidden_suffix)
|
38
38
|
|
39
39
|
if block_given?
|
40
|
-
link_to(
|
40
|
+
link_to(name, **button_args, &block)
|
41
41
|
else
|
42
42
|
link_to(button_text, href, **button_args)
|
43
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk-components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DfE developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-attributes-utils
|
@@ -385,7 +385,7 @@ files:
|
|
385
385
|
- app/helpers/govuk_components_helper.rb
|
386
386
|
- app/helpers/govuk_exit_this_page_link_helper.rb
|
387
387
|
- app/helpers/govuk_link_helper.rb
|
388
|
-
- app/helpers/
|
388
|
+
- app/helpers/govuk_rails_compatible_link_helper.rb
|
389
389
|
- app/helpers/govuk_skip_link_helper.rb
|
390
390
|
- app/helpers/govuk_visually_hidden_helper.rb
|
391
391
|
- app/helpers/title_with_error_prefix_helper.rb
|
@@ -410,9 +410,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
410
410
|
version: '0'
|
411
411
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
412
412
|
requirements:
|
413
|
-
- - "
|
413
|
+
- - ">="
|
414
414
|
- !ruby/object:Gem::Version
|
415
|
-
version:
|
415
|
+
version: '0'
|
416
416
|
requirements: []
|
417
417
|
rubygems_version: 3.2.33
|
418
418
|
signing_key:
|