govuk_markdown 2.0.4 → 2.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12e676d3536a62d66092d85e357f8c3e7315c99dfba63908658b7258bc2c2429
4
- data.tar.gz: 8d687183bc7ea570bebaed9ac81616fa11e1d3f8c5e32ef3b9b6c6cf2cac68c7
3
+ metadata.gz: afc74637316dbd7ed8e352f32d34673c604ec6873cf5218278fdae1f12d3f1a6
4
+ data.tar.gz: 87c0a97cdb053edef4fd4d98fba76f6601835e151fb47c3f01620d073f90df27
5
5
  SHA512:
6
- metadata.gz: 748c789cdaa0f0d14eb7ed72b3f7720c1fe6184898afff0f9a6aa07c636be0c24def03328cfdd174f1ff9cf70aa960bda3b45b9ae640117866e95f2235d02f47
7
- data.tar.gz: 24ff957175a76b434a18aeac4f221e857ab37e179efc9c6f07635cc959b67ecfa34e3aef16c64202b50d42e7d43da31dc56f9d0d1b5f291d943668a76bb9db90
6
+ metadata.gz: 6dc9fb3c8286a1e5f3f64edf8bf7999df87981987a4147d03eda93a399901efc8c7a6333aa0189d3197b52d396fbacc4c77c39da5e58344f4eeac00ec9d2c5d0
7
+ data.tar.gz: f11e1ac3d408e24eb23839d6bed7cb0be021b62764ee6821560a131cf0a63e27ec646737d5676425249055455bcc5c6e147e2f1407f98234072fee691a64d036
@@ -17,7 +17,7 @@ jobs:
17
17
  - name: Set up Ruby
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: '3.1.4'
20
+ ruby-version: .ruby-version
21
21
 
22
22
  - name: Install dependencies
23
23
  run: |
@@ -6,7 +6,7 @@ jobs:
6
6
  strategy:
7
7
  fail-fast: false
8
8
  matrix:
9
- ruby: ['3.1.4', '3.2.3', '3.3.0']
9
+ ruby: ['4.0.9']
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
12
  - uses: actions/checkout@v2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.4
1
+ 4.0.9
data/Gemfile.lock CHANGED
@@ -1,106 +1,116 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- govuk_markdown (2.0.2)
4
+ govuk_markdown (2.0.4)
5
5
  activesupport
6
6
  redcarpet
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.1.3.2)
11
+ activesupport (7.2.4)
12
12
  base64
13
+ benchmark (>= 0.3)
13
14
  bigdecimal
14
- concurrent-ruby (~> 1.0, >= 1.0.2)
15
- connection_pool (>= 2.2.5)
15
+ concurrent-ruby (~> 1.0, >= 1.3.1)
16
+ connection_pool (>= 2.2.5, < 3)
16
17
  drb
17
18
  i18n (>= 1.6, < 2)
18
- minitest (>= 5.1)
19
- mutex_m
20
- tzinfo (~> 2.0)
21
- ast (2.4.2)
22
- base64 (0.2.0)
23
- bigdecimal (3.1.7)
19
+ logger (>= 1.4.2)
20
+ minitest (>= 5.1, < 6)
21
+ securerandom (>= 0.3)
22
+ tzinfo (~> 2.0, >= 2.0.5)
23
+ ast (2.4.3)
24
+ base64 (0.3.0)
25
+ benchmark (0.5.0)
26
+ bigdecimal (4.1.3)
24
27
  coderay (1.1.3)
25
- concurrent-ruby (1.2.3)
26
- connection_pool (2.4.1)
27
- diff-lcs (1.5.1)
28
- drb (2.2.1)
29
- i18n (1.14.4)
28
+ concurrent-ruby (1.3.8)
29
+ connection_pool (2.5.5)
30
+ diff-lcs (1.6.2)
31
+ drb (2.2.3)
32
+ i18n (1.15.2)
30
33
  concurrent-ruby (~> 1.0)
31
- json (2.7.2)
32
- language_server-protocol (3.17.0.3)
34
+ io-console (0.9.4)
35
+ json (2.21.2)
36
+ language_server-protocol (3.17.0.6)
37
+ lint_roller (1.1.0)
38
+ logger (1.7.0)
33
39
  method_source (1.1.0)
34
- minitest (5.22.3)
35
- mutex_m (0.2.0)
36
- parallel (1.24.0)
37
- parser (3.3.0.5)
40
+ minitest (5.27.0)
41
+ parallel (1.28.0)
42
+ parser (3.3.13.0)
38
43
  ast (~> 2.4.1)
39
44
  racc
40
- pry (0.14.2)
45
+ prism (1.9.0)
46
+ pry (0.16.1)
41
47
  coderay (~> 1.1)
42
48
  method_source (~> 1.0)
43
- racc (1.7.3)
44
- rack (3.0.10)
49
+ reline (>= 0.6.0)
50
+ racc (1.8.1)
51
+ rack (3.2.7)
45
52
  rainbow (3.1.1)
46
- rake (13.2.1)
47
- redcarpet (3.6.0)
48
- regexp_parser (2.9.0)
49
- rexml (3.2.6)
50
- rspec (3.13.0)
53
+ rake (13.4.2)
54
+ redcarpet (3.6.1)
55
+ regexp_parser (2.13.1)
56
+ reline (0.7.0)
57
+ io-console (~> 0.5)
58
+ rspec (3.13.2)
51
59
  rspec-core (~> 3.13.0)
52
60
  rspec-expectations (~> 3.13.0)
53
61
  rspec-mocks (~> 3.13.0)
54
- rspec-core (3.13.0)
62
+ rspec-core (3.13.6)
55
63
  rspec-support (~> 3.13.0)
56
- rspec-expectations (3.13.0)
64
+ rspec-expectations (3.13.5)
57
65
  diff-lcs (>= 1.2.0, < 2.0)
58
66
  rspec-support (~> 3.13.0)
59
- rspec-mocks (3.13.0)
67
+ rspec-mocks (3.13.8)
60
68
  diff-lcs (>= 1.2.0, < 2.0)
61
69
  rspec-support (~> 3.13.0)
62
- rspec-support (3.13.1)
63
- rubocop (1.62.1)
70
+ rspec-support (3.13.7)
71
+ rubocop (1.86.0)
64
72
  json (~> 2.3)
65
- language_server-protocol (>= 3.17.0)
73
+ language_server-protocol (~> 3.17.0.2)
74
+ lint_roller (~> 1.1.0)
66
75
  parallel (~> 1.10)
67
76
  parser (>= 3.3.0.2)
68
77
  rainbow (>= 2.2.2, < 4.0)
69
- regexp_parser (>= 1.8, < 3.0)
70
- rexml (>= 3.2.5, < 4.0)
71
- rubocop-ast (>= 1.31.1, < 2.0)
78
+ regexp_parser (>= 2.9.3, < 3.0)
79
+ rubocop-ast (>= 1.49.0, < 2.0)
72
80
  ruby-progressbar (~> 1.7)
73
- unicode-display_width (>= 2.4.0, < 3.0)
74
- rubocop-ast (1.31.2)
75
- parser (>= 3.3.0.4)
76
- rubocop-capybara (2.20.0)
77
- rubocop (~> 1.41)
78
- rubocop-factory_bot (2.25.1)
79
- rubocop (~> 1.41)
80
- rubocop-govuk (4.16.1)
81
- rubocop (= 1.62.1)
82
- rubocop-ast (= 1.31.2)
83
- rubocop-rails (= 2.24.1)
84
- rubocop-rake (= 0.6.0)
85
- rubocop-rspec (= 2.28.0)
86
- rubocop-rails (2.24.1)
81
+ unicode-display_width (>= 2.4.0, < 4.0)
82
+ rubocop-ast (1.49.1)
83
+ parser (>= 3.3.7.2)
84
+ prism (~> 1.7)
85
+ rubocop-capybara (2.22.1)
86
+ lint_roller (~> 1.1)
87
+ rubocop (~> 1.72, >= 1.72.1)
88
+ rubocop-govuk (5.2.1)
89
+ rubocop (= 1.86.0)
90
+ rubocop-ast (= 1.49.1)
91
+ rubocop-capybara (= 2.22.1)
92
+ rubocop-rails (= 2.34.3)
93
+ rubocop-rake (= 0.7.1)
94
+ rubocop-rspec (= 3.9.0)
95
+ rubocop-rails (2.34.3)
87
96
  activesupport (>= 4.2.0)
97
+ lint_roller (~> 1.1)
88
98
  rack (>= 1.1)
89
- rubocop (>= 1.33.0, < 2.0)
90
- rubocop-ast (>= 1.31.1, < 2.0)
91
- rubocop-rake (0.6.0)
92
- rubocop (~> 1.0)
93
- rubocop-rspec (2.28.0)
94
- rubocop (~> 1.40)
95
- rubocop-capybara (~> 2.17)
96
- rubocop-factory_bot (~> 2.22)
97
- rubocop-rspec_rails (~> 2.28)
98
- rubocop-rspec_rails (2.28.3)
99
- rubocop (~> 1.40)
99
+ rubocop (>= 1.75.0, < 2.0)
100
+ rubocop-ast (>= 1.44.0, < 2.0)
101
+ rubocop-rake (0.7.1)
102
+ lint_roller (~> 1.1)
103
+ rubocop (>= 1.72.1)
104
+ rubocop-rspec (3.9.0)
105
+ lint_roller (~> 1.1)
106
+ rubocop (~> 1.81)
100
107
  ruby-progressbar (1.13.0)
108
+ securerandom (0.4.1)
101
109
  tzinfo (2.0.6)
102
110
  concurrent-ruby (~> 1.0)
103
- unicode-display_width (2.5.0)
111
+ unicode-display_width (3.3.0)
112
+ unicode-emoji (~> 4.3)
113
+ unicode-emoji (4.3.0)
104
114
 
105
115
  PLATFORMS
106
116
  ruby
@@ -113,4 +123,4 @@ DEPENDENCIES
113
123
  rubocop-govuk
114
124
 
115
125
  BUNDLED WITH
116
- 2.1.4
126
+ 4.0.10
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.summary = "Convert Markdown into GOV.UK styled HTML"
10
10
  spec.description = "Convert Markdown into GOV.UK styled HTML"
11
11
  spec.homepage = "https://github.com/DFE-Digital/govuk_markdown"
12
- spec.required_ruby_version = Gem::Requirement.new(">= 3.1.4")
12
+ spec.required_ruby_version = Gem::Requirement.new(">= 4.0.9")
13
13
 
14
14
  spec.metadata["homepage_uri"] = spec.homepage
15
15
  spec.metadata["source_code_uri"] = spec.homepage
@@ -1,3 +1,3 @@
1
1
  module GovukMarkdown
2
- VERSION = "2.0.4".freeze
2
+ VERSION = "2.0.5".freeze
3
3
  end
@@ -7,8 +7,8 @@ require_relative "./govuk_markdown/renderer"
7
7
  require_relative "./govuk_markdown/renderer/mixin"
8
8
 
9
9
  module GovukMarkdown
10
- def self.render(markdown, govuk_options = {})
10
+ def self.render(markdown, govuk_options = {}, redcarpet_options = {})
11
11
  renderer = GovukMarkdown::Renderer.new(govuk_options, { with_toc_data: true, strip_front_matter: true, link_attributes: { class: "govuk-link" } })
12
- Redcarpet::Markdown.new(renderer, tables: true, no_intra_emphasis: true).render(markdown).strip
12
+ Redcarpet::Markdown.new(renderer, tables: true, no_intra_emphasis: true, **redcarpet_options).render(markdown).strip
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tijmen Brommet
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2026-03-26 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -131,7 +130,6 @@ metadata:
131
130
  homepage_uri: https://github.com/DFE-Digital/govuk_markdown
132
131
  source_code_uri: https://github.com/DFE-Digital/govuk_markdown
133
132
  changelog_uri: https://github.com/DFE-Digital/govuk_markdown
134
- post_install_message:
135
133
  rdoc_options: []
136
134
  require_paths:
137
135
  - lib
@@ -139,15 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
137
  requirements:
140
138
  - - ">="
141
139
  - !ruby/object:Gem::Version
142
- version: 3.1.4
140
+ version: 4.0.9
143
141
  required_rubygems_version: !ruby/object:Gem::Requirement
144
142
  requirements:
145
143
  - - ">="
146
144
  - !ruby/object:Gem::Version
147
145
  version: '0'
148
146
  requirements: []
149
- rubygems_version: 3.3.26
150
- signing_key:
147
+ rubygems_version: 4.0.20
151
148
  specification_version: 4
152
149
  summary: Convert Markdown into GOV.UK styled HTML
153
150
  test_files: []