govuk-components 0.4.0 → 0.5.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/app/helpers/govuk_link_helper.rb +4 -4
- data/lib/govuk/components/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa7fa8f024a27bd045223fc37e575201c45a3dad2c09e70cef94d141b8d8530b
|
|
4
|
+
data.tar.gz: fbbf3aa3f874a3cd92f51185ddfc3822c4c60c4396d69dc7b790b0da54370361
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b85ce98f023c5b80694ce1184b42292982de71e40ae225514d5e16b8ba6d42e0a32b9614b92b7a5863c9b0af9a9e76605941ba6230bc25a278b16784dd182a07
|
|
7
|
+
data.tar.gz: 042e6e923591e2e03a8d246639607614ef998acea7ad0e2a6e1a5cf7fe419c067175f20da3aa4b7ea1631976686bd07f6ffbf7a1b3e905ba8bf45462034e365c
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
module GovukLinkHelper
|
|
2
|
-
def govuk_link_to(*args, **kwargs)
|
|
3
|
-
link_to(*args, **{ class: 'govuk-link' }.deep_merge(kwargs))
|
|
2
|
+
def govuk_link_to(*args, **kwargs, &block)
|
|
3
|
+
link_to(*args, **{ class: 'govuk-link' }.deep_merge(kwargs), &block)
|
|
4
4
|
end
|
|
5
5
|
|
|
6
|
-
def govuk_mail_to(*args, **kwargs)
|
|
7
|
-
mail_to(*args, **{ class: 'govuk-link' }.deep_merge(kwargs))
|
|
6
|
+
def govuk_mail_to(*args, **kwargs, &block)
|
|
7
|
+
mail_to(*args, **{ class: 'govuk-link' }.deep_merge(kwargs), &block)
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def govuk_button_to(*args, **kwargs)
|
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: 0.
|
|
4
|
+
version: 0.5.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: 2020-
|
|
11
|
+
date: 2020-10-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -164,7 +164,7 @@ files:
|
|
|
164
164
|
- lib/govuk/components/engine.rb
|
|
165
165
|
- lib/govuk/components/version.rb
|
|
166
166
|
- lib/tasks/govuk/components_tasks.rake
|
|
167
|
-
homepage: https://
|
|
167
|
+
homepage: https://github.com/DFE-Digital/govuk-components
|
|
168
168
|
licenses:
|
|
169
169
|
- MIT
|
|
170
170
|
metadata: {}
|