govspeak 6.7.7 → 6.7.8
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/CHANGELOG.md +4 -0
- data/README.md +1 -2
- data/lib/govspeak/version.rb +1 -1
- data/lib/govspeak.rb +4 -3
- data/test/govspeak_test.rb +38 -37
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 709c3fbb62a1b1e54cae82fd1539785acaaf3586c0a094b402880bf4608df065
|
4
|
+
data.tar.gz: 1300878c1001b40ade71a2e5446ea1f62ea8cd1e5d764e97ef9450da6124d74a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcf825ebf9e77452c200104606486d9c0ad26c5f00855ce69c3c127d5e6cd7357d804fb3df77b3362fe797e814ed2cffe3823c2a835d1784e89b25c459abfd12
|
7
|
+
data.tar.gz: 607b7b974bf443801e83ec7afaab1449e00a50d63134dc90b912f62a5a5c0635ea2e54afece268dbe6c4471cc232c4f12033bef6f8961aee1816a4cd6f1fcc25
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -28,8 +28,7 @@ Once govspeak has been updated and version incremented then:
|
|
28
28
|
|
29
29
|
Also, consider if:
|
30
30
|
- [whitehall](https://github.com/alphagov/whitehall) needs updating (as custom govspeak changes are present)
|
31
|
-
- [
|
32
|
-
- [govpspeak-preview](https://github.com/alphagov/govspeak-preview) is worth updating
|
31
|
+
- [govpspeak-preview](https://github.com/alphagov/govspeak-preview) needs updating
|
33
32
|
|
34
33
|
Any pages that use govspeak to generate Content will need to *republished* in order for the new changes to be reflected.
|
35
34
|
|
data/lib/govspeak/version.rb
CHANGED
data/lib/govspeak.rb
CHANGED
@@ -464,9 +464,10 @@ module Govspeak
|
|
464
464
|
end
|
465
465
|
|
466
466
|
def add_acronym_alt_text(html)
|
467
|
-
|
468
|
-
|
469
|
-
|
467
|
+
# FIXME: this code is buggy and replaces abbreviations in HTML tags - removing the functionality for now
|
468
|
+
# @acronyms.each do |acronym|
|
469
|
+
# html.gsub!(acronym[0], "<abbr title=\"#{acronym[1].strip}\">#{acronym[0]}</abbr>")
|
470
|
+
# end
|
470
471
|
end
|
471
472
|
end
|
472
473
|
end
|
data/test/govspeak_test.rb
CHANGED
@@ -1048,43 +1048,44 @@ Teston
|
|
1048
1048
|
)
|
1049
1049
|
end
|
1050
1050
|
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1051
|
+
# FIXME: this code is buggy and replaces abbreviations in HTML tags - removing the functionality for now
|
1052
|
+
# test_given_govspeak "
|
1053
|
+
# $LegislativeList
|
1054
|
+
# * 1. Item 1[^1] with an ACRONYM
|
1055
|
+
# * 2. Item 2[^2]
|
1056
|
+
# * 3. Item 3
|
1057
|
+
# $EndLegislativeList
|
1058
|
+
#
|
1059
|
+
# [^1]: Footnote definition one
|
1060
|
+
# [^2]: Footnote definition two with an ACRONYM
|
1061
|
+
#
|
1062
|
+
# *[ACRONYM]: This is the acronym explanation
|
1063
|
+
# " do
|
1064
|
+
# assert_html_output %(
|
1065
|
+
# <ol class="legislative-list">
|
1066
|
+
# <li>1. Item 1<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">[footnote 1]</a></sup> with an <abbr title="This is the acronym explanation">ACRONYM</abbr>
|
1067
|
+
# </li>
|
1068
|
+
# <li>2. Item 2<sup id="fnref:2" role="doc-noteref"><a href="#fn:2" class="footnote" rel="footnote">[footnote 2]</a></sup>
|
1069
|
+
# </li>
|
1070
|
+
# <li>3. Item 3</li>
|
1071
|
+
# </ol>
|
1072
|
+
#
|
1073
|
+
# <div class="footnotes" role="doc-endnotes">
|
1074
|
+
# <ol>
|
1075
|
+
# <li id="fn:1" role="doc-endnote">
|
1076
|
+
# <p>
|
1077
|
+
# Footnote definition one<a href="#fnref:1" class="reversefootnote" role="doc-backlink" aria-label="go to where this is referenced">↩</a>
|
1078
|
+
# </p>
|
1079
|
+
# </li>
|
1080
|
+
# <li id="fn:2" role="doc-endnote">
|
1081
|
+
# <p>
|
1082
|
+
# Footnote definition two with an <abbr title="This is the acronym explanation">ACRONYM</abbr><a href="#fnref:2" class="reversefootnote" role="doc-backlink" aria-label="go to where this is referenced">↩</a>
|
1083
|
+
# </p>
|
1084
|
+
# </li>
|
1085
|
+
# </ol>
|
1086
|
+
# </div>
|
1087
|
+
# )
|
1088
|
+
# end
|
1088
1089
|
|
1089
1090
|
test_given_govspeak "
|
1090
1091
|
The quick brown
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govspeak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.7.
|
4
|
+
version: 6.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|