govspeak 8.8.2 → 9.0.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: f929dc2d9957b06b36fc1941ae11605f09098c1ef11b1227d559b30299b3fd62
4
- data.tar.gz: 3ebacc1320ce6193838c6bbbdf9b603c6e6e7841756c93d8687e0d7e78d5c61b
3
+ metadata.gz: 95a5244e69195ca6b70429063a23918bf1c11cf0c2269b9f90c46fa0f874b0d2
4
+ data.tar.gz: 12e5c4cfbd40a4a9d144bfdca2f0ca6c4fc10abe9d8de3f6e5868d98af8d7959
5
5
  SHA512:
6
- metadata.gz: a355ac1c32bde4b90a8d9e172291beae3d46e3dce2dace5e39757dc89aaeaf0fa7f4a8d045a3b805475e83eaa5ebc6f66de9f58ef5d58d3cd6e2221daf85c91f
7
- data.tar.gz: 15a7d19da7f282041a2c3c716cfb523ebe2bef04fed831a1c863c3e6a1b7098adc5c365fe0f5fac46f68b27b6217961cbb5192fb554ef0d8af5893109c6a1bea
6
+ metadata.gz: e1222f5628b71f08eeb0453dae99891c8a42c8a446d6ad44b0087fa51991e48e93c22ed1bce50e2421c888f7d447af1e411171b607affb2e7dd17b855851c0dd
7
+ data.tar.gz: 2add7fce1c12861cdf6f0d78626f81bdafcedde870821f2adefd5a468125ce423e629c397b9747d944d3b853ca659d6f769a3b71a57da09fce99b5c1b63e7dbd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.0.0
4
+
5
+ * Remove Advisory component ([#357](https://github.com/alphagov/govspeak/pull/357))
6
+
7
+ ## 8.8.3
8
+
9
+ * Update dependencies (actionview < 8.0.2, sanitize < 8, rubocop-govuk = 5.0.7)
10
+
3
11
  ## 8.8.2
4
12
 
5
13
  * Fix a bug where headings were no longer rendering inside example boxes ([#374](https://github.com/alphagov/govspeak/pull/374))
data/README.md CHANGED
@@ -81,18 +81,6 @@ creates an example box
81
81
 
82
82
  ## Highlights
83
83
 
84
- ### Advisory (DEPRECATED: marked for removal. Use 'Information callouts' instead.)
85
-
86
- @This is a very important message or warning@
87
-
88
- highlights the enclosed text in yellow
89
-
90
- ```html
91
- <h3 role="note" aria-label="Important" class="advisory">
92
- <span>This is a very important message or warning</span>
93
- </h3>
94
- ```
95
-
96
84
  ### Answer (DEPRECATED: marked for removal)
97
85
 
98
86
  {::highlight-answer}
@@ -1,3 +1,3 @@
1
1
  module Govspeak
2
- VERSION = "8.8.2".freeze
2
+ VERSION = "9.0.0".freeze
3
3
  end
data/lib/govspeak.rb CHANGED
@@ -201,10 +201,6 @@ module Govspeak
201
201
  #{Govspeak::Document.new(body.strip).to_html}</div>\n)
202
202
  end
203
203
 
204
- extension("important", surrounded_by("@")) do |body|
205
- %(\n\n<div role="note" aria-label="Important" class="advisory">#{insert_strong_inside_p(body)}</div>\n)
206
- end
207
-
208
204
  extension("helpful", surrounded_by("%")) do |body|
209
205
  %(\n\n<div role="note" aria-label="Warning" class="application-notice help-notice">\n#{Govspeak::Document.new(body.strip).to_html}</div>\n)
210
206
  end
@@ -209,27 +209,6 @@ Teston
209
209
  assert_text_output "I am very informational"
210
210
  end
211
211
 
212
- test_given_govspeak "@ I am very important @" do
213
- assert_html_output %(
214
- <div role="note" aria-label="Important" class="advisory">
215
- <p><strong>I am very important</strong></p>
216
- </div>)
217
- assert_text_output "I am very important"
218
- end
219
-
220
- test_given_govspeak "
221
- The following is very important
222
- @ I am very important @
223
- " do
224
- assert_html_output %(
225
- <p>The following is very important</p>
226
-
227
- <div role="note" aria-label="Important" class="advisory">
228
- <p><strong>I am very important</strong></p>
229
- </div>)
230
- assert_text_output "The following is very important I am very important"
231
- end
232
-
233
212
  test_given_govspeak "% I am very helpful %" do
234
213
  assert_html_output %(
235
214
  <div role="note" aria-label="Warning" class="application-notice help-notice">
@@ -1527,14 +1506,6 @@ Teston
1527
1506
  '
1528
1507
  end
1529
1508
 
1530
- test_given_govspeak "@ Message with [a link](http://foo.bar/)@" do
1531
- assert_html_output %(
1532
- <div role="note" aria-label="Important" class="advisory">
1533
- <p><strong>Message with <a rel="external" href="http://foo.bar/">a link</a></strong></p>
1534
- </div>
1535
- )
1536
- end
1537
-
1538
1509
  test "sanitize source input by default" do
1539
1510
  document = Govspeak::Document.new("<script>doBadThings();</script>")
1540
1511
  assert_equal "", document.to_html.strip
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.2
4
+ version: 9.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2024-12-24 00:00:00.000000000 Z
10
+ date: 2025-01-08 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: actionview
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '6'
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: 7.2.3
21
+ version: 8.0.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '6'
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
- version: 7.2.3
31
+ version: 8.0.2
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: addressable
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -149,16 +149,22 @@ dependencies:
149
149
  name: sanitize
150
150
  requirement: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - "~>"
152
+ - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '6'
155
+ - - "<"
156
+ - !ruby/object:Gem::Version
157
+ version: '8'
155
158
  type: :runtime
156
159
  prerelease: false
157
160
  version_requirements: !ruby/object:Gem::Requirement
158
161
  requirements:
159
- - - "~>"
162
+ - - ">="
160
163
  - !ruby/object:Gem::Version
161
164
  version: '6'
165
+ - - "<"
166
+ - !ruby/object:Gem::Version
167
+ version: '8'
162
168
  - !ruby/object:Gem::Dependency
163
169
  name: minitest
164
170
  requirement: !ruby/object:Gem::Requirement
@@ -207,14 +213,14 @@ dependencies:
207
213
  requirements:
208
214
  - - '='
209
215
  - !ruby/object:Gem::Version
210
- version: 5.0.6
216
+ version: 5.0.7
211
217
  type: :development
212
218
  prerelease: false
213
219
  version_requirements: !ruby/object:Gem::Requirement
214
220
  requirements:
215
221
  - - '='
216
222
  - !ruby/object:Gem::Version
217
- version: 5.0.6
223
+ version: 5.0.7
218
224
  - !ruby/object:Gem::Dependency
219
225
  name: simplecov
220
226
  requirement: !ruby/object:Gem::Requirement