govuk_tech_docs 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of govuk_tech_docs might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06ad063ddc3de387b2bae379df43d4ecd6996a42bdc1f0472e2eb46b404b5701
4
- data.tar.gz: 23b17f1d49d77303d7acb06be0ee2f30cd8ec9b40407b18689696008bf594b89
3
+ metadata.gz: 79d38e9facb7df0c0a08151b51ce448759efa6e61bcf8ec0c5e6efb0b4e92332
4
+ data.tar.gz: 0a47d960ef878bf334104c7f0ff3e3e07e0411e3b12d061dc72ca4c474c988a1
5
5
  SHA512:
6
- metadata.gz: dfff9af883e1eb613f704789bd55f65947309e5df3a7a1d1280f4a28483a55d38200108d9808279d3985e2fd75bdc86adccea94520bb7469a78cdfa654def53c
7
- data.tar.gz: '09ae4a42091646b3850af6e4db030a0912e48a10df7b0db296621cdaa58c5df236c17399374201fe2f4af4bd38ce9525837a0811145cfea5fa380b70c5836541'
6
+ metadata.gz: 8a6e9076fc8b8a6ade8cca61c139256b6f8a455e851c64e68132ee25e9ec0fe09876e3cfb1bf813297779d376e91ac0f1abd49cd30319944249c6fff4117c902
7
+ data.tar.gz: 98748cf227f452712eb2ffcd780d89a7b56b9beed437f0a775adb1eba81a0acfca7de59c89db7437484a8f8e9e63a1e71c513475f1f55affc8ff48b5da2fe64a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 3.2.1
6
+
7
+ ### Fixes
8
+
9
+ - [#296: Fix Nokogiri Node.new deprecation warnings](https://github.com/alphagov/tech-docs-gem/pull/296) (thanks [@timja](https://github.com/timja))
10
+
5
11
  ## 3.2.0
6
12
 
7
13
  ### New features
@@ -10,32 +10,9 @@ A paragraph with a `code` element within it.
10
10
 
11
11
  An example of a table with a `code` element within it.
12
12
 
13
- <div class="table-container">
14
- <table>
15
- <thead>
16
- <tr>
17
- <th style="text-align:left">httpResult</th>
18
- <th style="text-align:left">Message</th>
19
- <th style="text-align:left">How to fix</th>
20
- </tr>
21
- </thead>
22
- <tbody>
23
- <tr>
24
- <td style="text-align:left"><code>400</code></td>
25
- <td style="text-align:left">
26
- <code>[{</code>
27
- <br />
28
- <code>"error": "BadRequestError",</code>
29
- <br />
30
- <code>"message": "Can't send to this recipient using a team-only API key"</code>
31
- <br />
32
- <code>]}</code>
33
- </td>
34
- <td style="text-align:left">Use the correct type of API key</td>
35
- </tr>
36
- </tbody>
37
- </table>
38
- </div>
13
+ | httpResult | Message | How to fix |
14
+ | - | - | - |
15
+ | `400` | `[{`<br>`"error": "BadRequestError",`<br>`"message": "Can't send to this recipient using a team-only API key"`<br>`]}` | Use the correct type of API key |
39
16
 
40
17
  An example of a code block with a long line length
41
18
 
@@ -69,7 +69,7 @@ module GovukTechDocs
69
69
  first_child.content = leading_text.sub(/# */, "")
70
70
  end
71
71
 
72
- tr = Nokogiri::XML::Node.new "tr", fragment
72
+ tr = Nokogiri::XML::Node.new "tr", fragment.document
73
73
  tr.children = fragment.children
74
74
 
75
75
  tr.to_html
@@ -95,9 +95,9 @@ module GovukTechDocs
95
95
  # be `defined?`, so we can jump straight to rendering HTML ourselves.
96
96
 
97
97
  fragment = Nokogiri::HTML::DocumentFragment.parse("")
98
- pre = Nokogiri::XML::Node.new "pre", fragment
98
+ pre = Nokogiri::XML::Node.new "pre", fragment.document
99
99
  pre["tabindex"] = "0"
100
- code = Nokogiri::XML::Node.new "code", fragment
100
+ code = Nokogiri::XML::Node.new "code", fragment.document
101
101
  code["class"] = lang
102
102
  code.content = text
103
103
  pre.add_child code
@@ -1,3 +1,3 @@
1
1
  module GovukTechDocs
2
- VERSION = "3.2.0".freeze
2
+ VERSION = "3.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_tech_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-09 00:00:00.000000000 Z
11
+ date: 2022-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -562,7 +562,7 @@ homepage: https://github.com/alphagov/tech-docs-gem
562
562
  licenses:
563
563
  - MIT
564
564
  metadata: {}
565
- post_install_message:
565
+ post_install_message:
566
566
  rdoc_options: []
567
567
  require_paths:
568
568
  - lib
@@ -578,7 +578,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
578
578
  version: '0'
579
579
  requirements: []
580
580
  rubygems_version: 3.1.4
581
- signing_key:
581
+ signing_key:
582
582
  specification_version: 4
583
583
  summary: Gem to distribute the GOV.UK Tech Docs Template
584
584
  test_files: []