Skip to content

Commit a2d325b

Browse files
authored
Merge branch 'master' into strip-suffix-on-referenced-imgs-at-doc-root
2 parents ee00347 + be33798 commit a2d325b

19 files changed

Lines changed: 406 additions & 103 deletions

.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/dependabot.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,4 @@ updates:
2525
update-types:
2626
- 'minor'
2727
- 'patch'
28-
- package-ecosystem: 'docker'
29-
directory: '/'
30-
schedule:
31-
interval: 'weekly'
32-
commit-message:
33-
prefix: 'chore(deps)'
34-
groups:
35-
dependencies:
36-
applies-to: version-updates
37-
update-types:
38-
- 'minor'
39-
- 'patch'
28+

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
strategy:
1515
matrix:
1616
ruby:
17-
- "3.2"
1817
- "3.3"
1918
- "3.4"
19+
- "4.0"
2020
fail-fast: false
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2525
with:
2626
fetch-depth: 10
2727

28-
- uses: ruby/setup-ruby@0cb964fd540e0a24c900370abf38a33466142735 # v1
28+
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1
2929
with:
3030
ruby-version: ${{ matrix.ruby }}
3131
bundler-cache: true
@@ -48,13 +48,13 @@ jobs:
4848
sudo apt-get update -qq
4949
sudo apt-get install perl rakudo-pkg
5050
51-
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
51+
curl -fsSL https://cpanmin.us | perl - --sudo App::cpanminus
5252
sudo cpanm --installdeps --notest Pod::Simple
5353
5454
- name: Install Python dependencies
5555
run: |
5656
echo 'docutils==0.22.4 --hash=sha256:d0013f540772d1420576855455d050a2180186c91c15779301ac2ccb3eeb68de' > /tmp/requirements.txt
57-
python -m pip install -r /tmp/requirements.txt
57+
python -m pip install --require-hashes --no-deps -r /tmp/requirements.txt
5858
5959
- name: Run rake
6060
run: |

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
pull-requests: write
1313

1414
steps:
15-
- uses: actions/stale@v10.2.0
15+
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
1616
with:
1717
repo-token: ${{ secrets.GITHUB_TOKEN }}
1818
stale-issue-message: >

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ vendor/
88
.DS_Store
99
.venv
1010
venv
11+
coverage/

Dockerfile

Lines changed: 0 additions & 39 deletions
This file was deleted.

Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ gem "RedCloth"
77
# using a tag version here because 0.18.3 was not published by the author to encourage users to upgrade.
88
# however we want to bump up to this version since this has a security patch
99
gem "commonmarker", git: "https://github.com/gjtorikian/commonmarker.git", tag: "v0.18.3"
10-
gem "rdoc", "~> 6.13.1"
10+
gem "rdoc", "~> 7.2.0"
1111
gem "org-ruby", "0.9.12"
1212
gem "creole", "~>0.5.0"
1313
gem "wikicloth", "=0.8.3"
1414
gem "twitter-text", "~> 1.14"
1515
gem "asciidoctor", "~> 2.0.26"
16-
gem "rake"
1716
gem "rexml"
18-
gem "nokogiri", "~> 1.19"

Gemfile.lock

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,41 @@ GIT
99
PATH
1010
remote: .
1111
specs:
12-
github-markup (5.0.1)
12+
github-markup (6.0.0)
1313

1414
GEM
1515
remote: https://rubygems.org/
1616
specs:
1717
RedCloth (4.3.4)
18-
activesupport (7.2.3.1)
18+
activesupport (8.1.3)
1919
base64
20-
benchmark (>= 0.3)
2120
bigdecimal
2221
concurrent-ruby (~> 1.0, >= 1.3.1)
2322
connection_pool (>= 2.2.5)
2423
drb
2524
i18n (>= 1.6, < 2)
25+
json
2626
logger (>= 1.4.2)
27-
minitest (>= 5.1, < 6)
27+
minitest (>= 5.1)
2828
securerandom (>= 0.3)
2929
tzinfo (~> 2.0, >= 2.0.5)
30+
uri (>= 0.13.1)
3031
asciidoctor (2.0.26)
3132
base64 (0.3.0)
32-
benchmark (0.5.0)
33-
bigdecimal (4.1.0)
33+
bigdecimal (4.1.2)
3434
builder (3.3.0)
3535
cgi (0.5.1)
3636
charlock_holmes (0.7.9)
3737
concurrent-ruby (1.3.6)
3838
connection_pool (3.0.2)
3939
crass (1.0.6)
4040
creole (0.5.0)
41-
date (3.4.1)
41+
date (3.5.1)
42+
docile (1.4.1)
4243
drb (2.2.3)
44+
erb (6.0.4)
4345
expression_parser (0.9.0)
44-
github-linguist (9.3.0)
46+
github-linguist (9.5.0)
4547
cgi
4648
charlock_holmes (~> 0.7.7)
4749
mini_mime (~> 1.0)
@@ -52,35 +54,41 @@ GEM
5254
htmlentities (4.3.4)
5355
i18n (1.14.8)
5456
concurrent-ruby (~> 1.0)
57+
json (2.19.5)
5558
logger (1.7.0)
5659
mini_mime (1.1.5)
5760
mini_portile2 (2.8.9)
58-
minitest (5.27.0)
59-
nokogiri (1.19.2)
61+
minitest (6.0.6)
62+
drb (~> 2.0)
63+
prism (~> 1.5)
64+
nokogiri (1.19.3)
6065
mini_portile2 (~> 2.8.2)
6166
racc (~> 1.4)
62-
nokogiri (1.19.2-aarch64-linux-gnu)
67+
nokogiri (1.19.3-aarch64-linux-gnu)
6368
racc (~> 1.4)
64-
nokogiri (1.19.2-arm-linux-gnu)
69+
nokogiri (1.19.3-arm-linux-gnu)
6570
racc (~> 1.4)
66-
nokogiri (1.19.2-arm64-darwin)
71+
nokogiri (1.19.3-arm64-darwin)
6772
racc (~> 1.4)
68-
nokogiri (1.19.2-x86_64-darwin)
73+
nokogiri (1.19.3-x86_64-darwin)
6974
racc (~> 1.4)
70-
nokogiri (1.19.2-x86_64-linux-gnu)
75+
nokogiri (1.19.3-x86_64-linux-gnu)
7176
racc (~> 1.4)
7277
nokogiri-diff (0.3.0)
7378
nokogiri (~> 1.5)
7479
tdiff (~> 0.4)
7580
org-ruby (0.9.12)
7681
rubypants (~> 0.2)
77-
psych (5.2.3)
82+
prism (1.9.0)
83+
psych (5.3.1)
7884
date
7985
stringio
8086
racc (1.8.1)
81-
rake (13.3.1)
82-
rdoc (6.13.1)
87+
rake (13.4.2)
88+
rdoc (7.2.0)
89+
erb
8390
psych (>= 4.0.0)
91+
tsort
8492
redcarpet (3.6.1)
8593
rexml (3.4.4)
8694
ruby-enum (0.9.0)
@@ -91,15 +99,23 @@ GEM
9199
crass (~> 1.0.2)
92100
nokogiri (>= 1.12.0)
93101
securerandom (0.4.1)
94-
stringio (3.1.6)
102+
simplecov (0.22.0)
103+
docile (~> 1.1)
104+
simplecov-html (~> 0.11)
105+
simplecov_json_formatter (~> 0.1)
106+
simplecov-html (0.13.2)
107+
simplecov_json_formatter (0.1.4)
108+
stringio (3.2.0)
95109
tdiff (0.4.0)
110+
tsort (0.2.0)
96111
twitter-text (1.14.7)
97112
unf (~> 0.1.0)
98113
tzinfo (2.0.6)
99114
concurrent-ruby (~> 1.0)
100115
unf (0.1.4)
101116
unf_ext
102117
unf_ext (0.0.9.1)
118+
uri (1.1.1)
103119
wikicloth (0.8.3)
104120
builder
105121
expression_parser
@@ -117,23 +133,24 @@ PLATFORMS
117133

118134
DEPENDENCIES
119135
RedCloth
120-
activesupport (~> 7.2.3)
136+
activesupport (~> 8.1.3)
121137
asciidoctor (~> 2.0.26)
122138
commonmarker!
123139
creole (~> 0.5.0)
124140
github-linguist (>= 7.1.3)
125141
github-markup!
126142
html-pipeline (~> 1.0)
127143
kramdown
128-
minitest (~> 5.4, >= 5.4.3)
129-
nokogiri (~> 1.19)
144+
minitest (~> 6.0, >= 5.4.3)
145+
nokogiri (~> 1.19.2)
130146
nokogiri-diff (~> 0.3.0)
131147
org-ruby (= 0.9.12)
132-
rake
133-
rdoc (~> 6.13.1)
148+
rake (~> 13)
149+
rdoc (~> 7.2.0)
134150
redcarpet
135151
rexml
136152
sanitize (>= 4.6.3)
153+
simplecov (~> 0.22)
137154
twitter-text (~> 1.14)
138155
wikicloth (= 0.8.3)
139156

HISTORY.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
## 6.0.0 - 2026-05-04
2+
3+
### Breaking
4+
5+
* Drop support for Ruby < 3.3 (Ruby 3.1 EOL March 2025, Ruby 3.2 EOL March 2026)
6+
7+
### Security
8+
9+
* Use HTTPS for cpanminus download in CI to prevent MITM attacks [#2050](https://github.com/github/markup/pull/2050)
10+
* Bump nokogiri to >= 1.19.1 to fix GHSA-wx95-c6cv-8532
11+
* Harden CI pip install with `--require-hashes --no-deps` [#2048](https://github.com/github/markup/pull/2048)
12+
* Use HTTPS for RubyGems source URL in Gemfile [#1854](https://github.com/github/markup/pull/1854)
13+
* Add explicit `contents: read` permissions to CI workflow [#1855](https://github.com/github/markup/pull/1855)
14+
* Bump rexml from 3.3.0 to 3.3.9 (multiple security fixes)
15+
16+
### Bug Fixes
17+
18+
* Fix RST section ID rendering to iterate all anchors instead of only the first [040f91d](https://github.com/github/markup/commit/040f91d)
19+
20+
### Documentation
21+
22+
* Fix spelling errors in codebase [#1479](https://github.com/github/markup/pull/1479)
23+
* Fix broken Textile language link in README [#1703](https://github.com/github/markup/pull/1703)
24+
25+
### Infrastructure
26+
27+
* Remove legacy Dockerfile and .dockerignore (Ubuntu Trusty, non-functional) [#2048](https://github.com/github/markup/pull/2048)
28+
* Update CI test matrix: drop Ruby 3.2, add Ruby 4.0 (now testing 3.3, 3.4, 4.0)
29+
* Bump nokogiri to 1.19.2, activesupport to 7.2.3.1
30+
* Bump github-linguist from 7.30.0 to 9.1.0, then to 9.3.0
31+
* Pin all GitHub Actions to commit SHAs for supply chain hardening
32+
* Add Dependabot configuration for automated dependency updates
33+
* Various Dependabot bumps for CI actions (ruby/setup-ruby, actions/checkout, actions/cache, actions/setup-python, actions/stale)
34+
135
## 5.0.1 - 2024-06-17
236
* Bump activesupport from 4.0 to 7.1.3.4
337

github-markup.gemspec

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
require File.expand_path("../lib/github-markup", __FILE__)
1+
version_file = File.expand_path("../lib/github-markup.rb", __FILE__)
2+
version_match = File.read(version_file).match(/VERSION = ['"]([^'"]+)['"]/)
3+
raise "Could not find VERSION in #{version_file}" unless version_match
4+
version = version_match[1]
25

36
Gem::Specification.new do |s|
47
s.name = "github-markup"
5-
s.version = GitHub::Markup::VERSION
8+
s.version = version
69
s.summary = "The code GitHub uses to render README.markup"
710
s.description = <<~DESC
811
This gem is used by GitHub to render any fancy markup such as Markdown,
@@ -13,19 +16,20 @@ Gem::Specification.new do |s|
1316
s.homepage = "https://github.com/github/markup"
1417
s.license = "MIT"
1518

16-
s.required_ruby_version = '>= 3.1.0'
19+
s.required_ruby_version = '>= 3.3.0'
1720

1821
s.files = `git ls-files`.split($\)
1922
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
2023
s.test_files = s.files.grep(%r{^(test|spec|features)/})
2124
s.require_paths = %w[lib]
2225

2326
s.add_development_dependency 'rake', '~> 13'
24-
s.add_development_dependency 'activesupport', '~> 7.2.3'
25-
s.add_development_dependency 'minitest', '~> 5.4', '>= 5.4.3'
27+
s.add_development_dependency 'activesupport', '~> 8.1.3'
28+
s.add_development_dependency 'minitest', '>= 5.4.3', '~> 6.0'
2629
s.add_development_dependency 'html-pipeline', '~> 1.0'
2730
s.add_development_dependency 'sanitize', '>= 4.6.3'
2831
s.add_development_dependency 'nokogiri', '~> 1.19.2'
2932
s.add_development_dependency 'nokogiri-diff', '~> 0.3.0'
3033
s.add_development_dependency "github-linguist", ">= 7.1.3"
34+
s.add_development_dependency 'simplecov', '~> 0.22'
3135
end

0 commit comments

Comments
 (0)