govspeak 6.6.0 → 6.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6369a640dd1ca0303f548954b3cd69f176707200d83d460408eadbb7c7b35158
4
- data.tar.gz: fb487bd7275c39da3b3ff34fb4bbb016c77e4666a778c42dd8098c0ef50b3ea5
3
+ metadata.gz: 14e93ed0928bdacce945ae5d1ea81d3bbc40508fcc1875c59e02297aed7f78e8
4
+ data.tar.gz: b6f7f01034081da748db3d02e81fe31f72f155f2921de02b6d07f65d04587e09
5
5
  SHA512:
6
- metadata.gz: 85fe44ebb3c921918bb22148c4d53394d3e5921b1c5b778815bb09120832e7820805555aa68756799a257a05c4fb5efdeb5df53a453009b2333db528fafa5f29
7
- data.tar.gz: 82dc434b862384862420ea07e45d00e2020b5ea20fd7a52ee5196bb5a6786d4c3facd15e64917c0bfd700ac0a1c3aaaa7e761c6970640c60b118f40ca5a1f0e8
6
+ metadata.gz: 00e6e768ecdc8ce782f849957370199bdbfde7a85973c83366590b09155395455f62be45e86bcf8864053070ecb3a9560645bef410e562121ef08acefe2bccac
7
+ data.tar.gz: dd68a811064c4e63a092b00ffef191db7f3221308eb84cf916304b8e2207522baea4e37226c09527c4dc25f618b74b2604b39fc96ac986dfbb8008e93454f8fb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 6.7.0
2
+
3
+ * Update heading & docs [#206](https://github.com/alphagov/govspeak/pull/206)
4
+
1
5
  ## 6.6.0
2
6
 
3
7
  * Allow passed elements to be relaxed from sanitization [#203](https://github.com/alphagov/govspeak/pull/203)
data/README.md CHANGED
@@ -598,8 +598,8 @@ will output
598
598
  ```html
599
599
  <div id="contact_123" class="contact">
600
600
  <div class="content">
601
- <h3>Government Digital Service</h3>
602
601
  <div class="vcard contact-inner">
602
+ <p>Government Digital Service</p>
603
603
  <div class="email-url-number">
604
604
  <p class="email">
605
605
  <span class="type">Email</span>
@@ -1,3 +1,3 @@
1
1
  module Govspeak
2
- VERSION = "6.6.0".freeze
2
+ VERSION = "6.7.0".freeze
3
3
  end
@@ -4,8 +4,8 @@
4
4
  %>
5
5
  <div id="contact_<%= contact.content_id %>" class="<%= ['contact', extra_class].flatten.join(' ') %>">
6
6
  <div class="content">
7
- <h3><%= contact.title %></h3>
8
7
  <div class="vcard contact-inner">
8
+ <p><%= contact.title %></p>
9
9
  <% contact.post_addresses.each do |address| %>
10
10
  <%= Govspeak::HCardPresenter.new(address).render %>
11
11
  <% end %>
@@ -62,8 +62,8 @@ class GovspeakContactsTest < Minitest::Test
62
62
  expected_html_output = %(
63
63
  <div id="contact_4f3383e4-48a2-4461-a41d-f85ea8b89ba0" class="contact postal-address">
64
64
  <div class="content">
65
- <h3>Government Digital Service</h3>
66
65
  <div class="vcard contact-inner">
66
+ <p>Government Digital Service</p>
67
67
  <p class="adr">
68
68
  <span class="street-address">125 Kingsway</span><br>
69
69
  <span class="locality">Holborn</span><br>
@@ -106,8 +106,8 @@ class GovspeakContactsTest < Minitest::Test
106
106
  expected_html_output = %(
107
107
  <div id="contact_4f3383e4-48a2-4461-a41d-f85ea8b89ba0" class="contact">
108
108
  <div class="content">
109
- <h3>Government Digital Service</h3>
110
109
  <div class="vcard contact-inner">
110
+ <p>Government Digital Service</p>
111
111
  <div class="email-url-number">
112
112
  <p class="email">
113
113
  <span class="type">Email</span>
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.6.0
4
+ version: 6.7.0
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: 2021-01-14 00:00:00.000000000 Z
11
+ date: 2021-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -372,24 +372,24 @@ signing_key:
372
372
  specification_version: 4
373
373
  summary: Markup language for single domain
374
374
  test_files:
375
+ - test/govspeak_footnote_test.rb
376
+ - test/html_sanitizer_test.rb
377
+ - test/govspeak_test.rb
375
378
  - test/test_helper.rb
376
379
  - test/blockquote_extra_quote_remover_test.rb
377
- - test/govspeak_images_bang_test.rb
378
- - test/govspeak_contacts_test.rb
379
- - test/govspeak_table_with_headers_test.rb
380
- - test/govspeak_link_extractor_test.rb
381
- - test/govspeak_attachments_image_test.rb
382
- - test/html_validator_test.rb
383
380
  - test/govspeak_button_test.rb
384
- - test/govspeak_extract_contact_content_ids_test.rb
385
- - test/govspeak_test_helper.rb
386
- - test/govspeak_footnote_test.rb
381
+ - test/html_validator_test.rb
382
+ - test/govspeak_link_extractor_test.rb
383
+ - test/govspeak_attachment_link_test.rb
387
384
  - test/govspeak_link_test.rb
385
+ - test/govspeak_contacts_test.rb
388
386
  - test/govspeak_structured_headers_test.rb
389
- - test/html_sanitizer_test.rb
390
387
  - test/govspeak_images_test.rb
391
- - test/govspeak_test.rb
392
- - test/govspeak_attachment_link_test.rb
388
+ - test/govspeak_extract_contact_content_ids_test.rb
389
+ - test/govspeak_table_with_headers_test.rb
393
390
  - test/govspeak_attachment_test.rb
394
- - test/presenters/h_card_presenter_test.rb
395
391
  - test/govspeak_attachments_inline_test.rb
392
+ - test/presenters/h_card_presenter_test.rb
393
+ - test/govspeak_test_helper.rb
394
+ - test/govspeak_images_bang_test.rb
395
+ - test/govspeak_attachments_image_test.rb