govspeak 8.8.0 → 8.8.2
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 +8 -0
- data/lib/govspeak/version.rb +1 -1
- data/lib/govspeak.rb +1 -1
- data/test/govspeak_test.rb +16 -0
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f929dc2d9957b06b36fc1941ae11605f09098c1ef11b1227d559b30299b3fd62
|
|
4
|
+
data.tar.gz: 3ebacc1320ce6193838c6bbbdf9b603c6e6e7841756c93d8687e0d7e78d5c61b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a355ac1c32bde4b90a8d9e172291beae3d46e3dce2dace5e39757dc89aaeaf0fa7f4a8d045a3b805475e83eaa5ebc6f66de9f58ef5d58d3cd6e2221daf85c91f
|
|
7
|
+
data.tar.gz: 15a7d19da7f282041a2c3c716cfb523ebe2bef04fed831a1c863c3e6a1b7098adc5c365fe0f5fac46f68b27b6217961cbb5192fb554ef0d8af5893109c6a1bea
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 8.8.2
|
|
4
|
+
|
|
5
|
+
* Fix a bug where headings were no longer rendering inside example boxes ([#374](https://github.com/alphagov/govspeak/pull/374))
|
|
6
|
+
|
|
7
|
+
## 8.8.1
|
|
8
|
+
|
|
9
|
+
* Update dependencies
|
|
10
|
+
|
|
3
11
|
## 8.8.0
|
|
4
12
|
|
|
5
13
|
* Strip trailing backslashes from the lines of an address ([#371](https://github.com/alphagov/govspeak/pull/371))
|
data/lib/govspeak/version.rb
CHANGED
data/lib/govspeak.rb
CHANGED
|
@@ -296,7 +296,7 @@ module Govspeak
|
|
|
296
296
|
extension("example", surrounded_by("$E")) do |body|
|
|
297
297
|
<<~BODY
|
|
298
298
|
<div class="example" markdown="1">
|
|
299
|
-
|
|
299
|
+
#{body.strip.gsub(/\A^\|/, "\n|").gsub(/\|$\Z/, "|\n")}
|
|
300
300
|
</div>
|
|
301
301
|
BODY
|
|
302
302
|
end
|
data/test/govspeak_test.rb
CHANGED
|
@@ -1334,6 +1334,22 @@ Teston
|
|
|
1334
1334
|
</div>)
|
|
1335
1335
|
end
|
|
1336
1336
|
|
|
1337
|
+
test_given_govspeak "
|
|
1338
|
+
$E
|
|
1339
|
+
|
|
1340
|
+
### A heading within an example
|
|
1341
|
+
|
|
1342
|
+
Some example content
|
|
1343
|
+
|
|
1344
|
+
$E" do
|
|
1345
|
+
assert_html_output %(
|
|
1346
|
+
<div class="example">
|
|
1347
|
+
<h3 id="a-heading-within-an-example">A heading within an example</h3>
|
|
1348
|
+
|
|
1349
|
+
<p>Some example content</p>
|
|
1350
|
+
</div>)
|
|
1351
|
+
end
|
|
1352
|
+
|
|
1337
1353
|
test_given_govspeak "
|
|
1338
1354
|
$LegislativeList
|
|
1339
1355
|
* 1. Item 1[^1] with an ACRONYM
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govspeak
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.8.
|
|
4
|
+
version: 8.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2024-12-
|
|
10
|
+
date: 2024-12-24 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: actionview
|
|
@@ -207,14 +207,14 @@ dependencies:
|
|
|
207
207
|
requirements:
|
|
208
208
|
- - '='
|
|
209
209
|
- !ruby/object:Gem::Version
|
|
210
|
-
version: 5.0.
|
|
210
|
+
version: 5.0.6
|
|
211
211
|
type: :development
|
|
212
212
|
prerelease: false
|
|
213
213
|
version_requirements: !ruby/object:Gem::Requirement
|
|
214
214
|
requirements:
|
|
215
215
|
- - '='
|
|
216
216
|
- !ruby/object:Gem::Version
|
|
217
|
-
version: 5.0.
|
|
217
|
+
version: 5.0.6
|
|
218
218
|
- !ruby/object:Gem::Dependency
|
|
219
219
|
name: simplecov
|
|
220
220
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -342,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
342
342
|
- !ruby/object:Gem::Version
|
|
343
343
|
version: '0'
|
|
344
344
|
requirements: []
|
|
345
|
-
rubygems_version: 3.6.
|
|
345
|
+
rubygems_version: 3.6.2
|
|
346
346
|
specification_version: 4
|
|
347
347
|
summary: Markup language for single domain
|
|
348
348
|
test_files:
|