Skip to content

Commit 02fe855

Browse files
authored
Merge branch 'master' into backport-from-ruby-core
2 parents 6823f55 + aa74823 commit 02fe855

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

.github/workflows/cloudflare-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
- name: Comment on PR with preview URL
9393
uses: actions/github-script@v7
9494
with:
95+
github-token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}
9596
script: |
9697
const prNumber = ${{ env.PR_NUMBER }};
9798
const url = "${{ steps.deploy.outputs.deployment-url }}";

.github/workflows/push_gem.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Harden Runner
26-
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
26+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
2727
with:
2828
egress-policy: audit
2929

@@ -43,4 +43,4 @@ jobs:
4343
tag_name="$(git describe --tags --abbrev=0)"
4444
gh release create "${tag_name}" --verify-tag --generate-notes
4545
env:
46-
GITHUB_TOKEN: ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

lib/rdoc/code_object/context/section.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
require 'cgi/escape'
3+
require 'cgi/util' unless defined?(CGI::EscapeExt)
34

45
##
56
# A section of documentation like:

lib/rdoc/code_object/method_attr.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ def block_params=(value)
283283

284284
def html_name
285285
require 'cgi/escape'
286+
require 'cgi/util' unless defined?(CGI::EscapeExt)
286287

287288
CGI.escape(@name.gsub('-', '-2D')).gsub('%', '-').sub(/^-/, '')
288289
end

lib/rdoc/markup/to_html.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22
require 'cgi/escape'
3-
# For CGI.unescape on earlier rubies
4-
require 'cgi/util' if RUBY_VERSION < '3.5'
3+
require 'cgi/util' unless defined?(CGI::EscapeExt)
54

65
##
76
# Outputs RDoc markup as HTML.

lib/rdoc/markup/to_label.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22
require 'cgi/escape'
3+
require 'cgi/util' unless defined?(CGI::EscapeExt)
34

45
##
56
# Creates HTML-safe labels suitable for use in id attributes. Tidylinks are

lib/rdoc/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ module RDoc
55
##
66
# RDoc version you are using
77

8-
VERSION = '6.14.0'
8+
VERSION = '6.14.1'
99

1010
end

rdoc.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
5151
"exe/rdoc",
5252
"exe/ri",
5353
"man/ri.1",
54+
"rdoc.gemspec",
5455
]
5556
template_files = Dir.glob("lib/rdoc/generator/template/**/*")
56-
lib_files = Dir.glob("lib/**/*.{rb,kpeg,ry}")
57+
lib_files = Dir.glob("lib/**/*.{rb,kpeg,ry}", base: File.expand_path('..', __FILE__))
5758

5859
s.files = (non_lib_files + template_files + lib_files).uniq
5960

0 commit comments

Comments
 (0)