govuk-components 3.0.0b3 → 3.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/README.md +3 -3
- data/app/helpers/govuk_skip_link_helper.rb +4 -2
- data/lib/govuk/components/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27b0a10c2ac5ff55db6e0728ca288f9e3e93a64a284c92a14314c6aa46997273
|
|
4
|
+
data.tar.gz: 19db68d4d07e8996a17ceb8f19dbe31635d8b8a88055f8f51614d0a5bee2be0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a00087e5c6851c4061f8128668e6c92ad0b10af024439c5105f78b8a32659c593a48d4e85b450348c3776714fe6da3dea3eb217163da70d3381f67c5470ce5cd
|
|
7
|
+
data.tar.gz: 63884ab095f6c87054d1bcb6d3b1afeaca1e8a797a4bffd282c45007fff3a0f64b4cbebde4f91299a061fb7f8003c93d984a90ef12608285ef58d7fd5fee307e
|
data/README.md
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
[](https://badge.fury.io/rb/govuk-components)
|
|
6
6
|
[](https://rubygems.org/gems/govuk-components)
|
|
7
7
|
[](https://codeclimate.com/github/DFE-Digital/govuk-components/test_coverage)
|
|
8
|
-
[](https://github.com/DFE-Digital/govuk-components/blob/
|
|
8
|
+
[](https://github.com/DFE-Digital/govuk-components/blob/main/LICENSE)
|
|
9
9
|
[](https://design-system.service.gov.uk)
|
|
10
|
-
[](https://www.ruby-lang.org/en/downloads/)
|
|
10
|
+
[](https://weblog.rubyonrails.org/releases/)
|
|
11
|
+
[](https://www.ruby-lang.org/en/downloads/)
|
|
12
12
|
|
|
13
13
|
This gem provides a suite of reusable components for the [GOV.UK Design System](https://design-system.service.gov.uk/). It is intended to provide a lightweight alternative to the [GOV.UK Publishing Components](https://github.com/alphagov/govuk_publishing_components) library and is built with GitHub’s [ViewComponent](https://github.com/github/view_component) framework.
|
|
14
14
|
|
|
@@ -2,9 +2,11 @@ module GovukSkipLinkHelper
|
|
|
2
2
|
def govuk_skip_link(text: 'Skip to main content', href: '#main-content', classes: [], **html_attributes, &block)
|
|
3
3
|
link_classes = Array.wrap(classes).append('govuk-skip-link')
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
html_attributes_with_data_module = { data: { module: "govuk-skip-link" } }.deep_merge(html_attributes)
|
|
6
6
|
|
|
7
|
-
link_to(
|
|
7
|
+
return link_to(href, class: link_classes, **html_attributes_with_data_module, &block) if block_given?
|
|
8
|
+
|
|
9
|
+
link_to(text, href, class: link_classes, **html_attributes_with_data_module)
|
|
8
10
|
end
|
|
9
11
|
end
|
|
10
12
|
|
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: 3.0.
|
|
4
|
+
version: 3.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: 2022-01-
|
|
11
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -371,9 +371,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
371
371
|
version: '0'
|
|
372
372
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
373
373
|
requirements:
|
|
374
|
-
- - "
|
|
374
|
+
- - ">="
|
|
375
375
|
- !ruby/object:Gem::Version
|
|
376
|
-
version:
|
|
376
|
+
version: '0'
|
|
377
377
|
requirements: []
|
|
378
378
|
rubygems_version: 3.2.32
|
|
379
379
|
signing_key:
|