govspeak 6.2.0 → 6.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/govspeak.rb +1 -1
- data/lib/govspeak/version.rb +1 -1
- data/test/govspeak_test.rb +4 -4
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39b6f369a4fda004a0d426e27bd298465354769215c0e5147caa0191456879c1
|
4
|
+
data.tar.gz: ad5e45eb16183f9498ba686ff3694c7ec645c0d2959f271b9cae39746e090934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 162a60aad8e18cb213a6df073c9d3f3fae8dc41d490cea9ed871804b3e9d66d1829e2f8a58a20e07d09d80af595450110a4dbc4c7b424dc8d0b990fec0d17da7
|
7
|
+
data.tar.gz: f5ba3ef15abed2fd01750ce68f6aff8482c7e7407d6f4ac689e75f23aa7f6fa507171e2eae1815424c4593686234351fc88d12d09c63dde9b560409f9c3a9fd0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -44,7 +44,7 @@ creates a callout with an info (i) icon.
|
|
44
44
|
creates a callout with a warning or alert (!) icon
|
45
45
|
|
46
46
|
```html
|
47
|
-
<div role="note" aria-label="
|
47
|
+
<div role="note" aria-label="Warning" class="application-notice help-notice">
|
48
48
|
<p>This is a warning callout</p>
|
49
49
|
</div>
|
50
50
|
```
|
data/lib/govspeak.rb
CHANGED
@@ -191,7 +191,7 @@ module Govspeak
|
|
191
191
|
}
|
192
192
|
|
193
193
|
extension('helpful', surrounded_by("%")) { |body|
|
194
|
-
%{\n\n<div role="note" aria-label="
|
194
|
+
%{\n\n<div role="note" aria-label="Warning" class="application-notice help-notice">\n#{Govspeak::Document.new(body.strip).to_html}</div>\n}
|
195
195
|
}
|
196
196
|
|
197
197
|
extension('barchart', /{barchart(.*?)}/) do |captures|
|
data/lib/govspeak/version.rb
CHANGED
data/test/govspeak_test.rb
CHANGED
@@ -194,7 +194,7 @@ Teston
|
|
194
194
|
|
195
195
|
test_given_govspeak "% I am very helpful %" do
|
196
196
|
assert_html_output %{
|
197
|
-
<div role="note" aria-label="
|
197
|
+
<div role="note" aria-label="Warning" class="application-notice help-notice">
|
198
198
|
<p>I am very helpful</p>
|
199
199
|
</div>}
|
200
200
|
assert_text_output "I am very helpful"
|
@@ -204,7 +204,7 @@ Teston
|
|
204
204
|
assert_html_output %{
|
205
205
|
<p>The following is very helpful</p>
|
206
206
|
|
207
|
-
<div role="note" aria-label="
|
207
|
+
<div role="note" aria-label="Warning" class="application-notice help-notice">
|
208
208
|
<p>I am very helpful</p>
|
209
209
|
</div>}
|
210
210
|
assert_text_output "The following is very helpful I am very helpful"
|
@@ -214,7 +214,7 @@ Teston
|
|
214
214
|
assert_html_output %{
|
215
215
|
<h2 id="hello">Hello</h2>
|
216
216
|
|
217
|
-
<div role="note" aria-label="
|
217
|
+
<div role="note" aria-label="Warning" class="application-notice help-notice">
|
218
218
|
<p>I am very helpful</p>
|
219
219
|
</div>
|
220
220
|
|
@@ -224,7 +224,7 @@ Teston
|
|
224
224
|
|
225
225
|
test_given_govspeak "% I am very helpful" do
|
226
226
|
assert_html_output %{
|
227
|
-
<div role="note" aria-label="
|
227
|
+
<div role="note" aria-label="Warning" class="application-notice help-notice">
|
228
228
|
<p>I am very helpful</p>
|
229
229
|
</div>}
|
230
230
|
assert_text_output "I am very helpful"
|
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.2.
|
4
|
+
version: 6.2.1
|
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: 2019-06-
|
11
|
+
date: 2019-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -344,22 +344,22 @@ signing_key:
|
|
344
344
|
specification_version: 4
|
345
345
|
summary: Markup language for single domain
|
346
346
|
test_files:
|
347
|
-
- test/govspeak_attachments_inline_test.rb
|
348
|
-
- test/govspeak_attachment_test.rb
|
349
347
|
- test/govspeak_attachment_link_test.rb
|
350
|
-
- test/govspeak_images_test.rb
|
351
|
-
- test/govspeak_link_test.rb
|
352
|
-
- test/govspeak_images_bang_test.rb
|
353
|
-
- test/govspeak_link_extractor_test.rb
|
354
|
-
- test/govspeak_contacts_test.rb
|
355
348
|
- test/test_helper.rb
|
349
|
+
- test/govspeak_button_test.rb
|
356
350
|
- test/govspeak_test.rb
|
357
|
-
- test/govspeak_attachments_image_test.rb
|
358
351
|
- test/html_validator_test.rb
|
359
|
-
- test/
|
360
|
-
- test/
|
361
|
-
- test/blockquote_extra_quote_remover_test.rb
|
362
|
-
- test/presenters/h_card_presenter_test.rb
|
363
|
-
- test/govspeak_button_test.rb
|
352
|
+
- test/govspeak_attachment_test.rb
|
353
|
+
- test/govspeak_contacts_test.rb
|
364
354
|
- test/govspeak_test_helper.rb
|
355
|
+
- test/blockquote_extra_quote_remover_test.rb
|
356
|
+
- test/govspeak_attachments_image_test.rb
|
365
357
|
- test/html_sanitizer_test.rb
|
358
|
+
- test/govspeak_link_test.rb
|
359
|
+
- test/govspeak_extract_contact_content_ids_test.rb
|
360
|
+
- test/govspeak_structured_headers_test.rb
|
361
|
+
- test/govspeak_images_test.rb
|
362
|
+
- test/presenters/h_card_presenter_test.rb
|
363
|
+
- test/govspeak_images_bang_test.rb
|
364
|
+
- test/govspeak_link_extractor_test.rb
|
365
|
+
- test/govspeak_attachments_inline_test.rb
|