-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into refactor/switch-statement
- Loading branch information
Showing
112 changed files
with
6,168 additions
and
1,443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
History.txt | ||
LICENSE.txt | ||
README.txt | ||
RI.txt | ||
*.md | ||
*.rdoc | ||
lib | ||
doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This rubocop configuration is ONLY for the generated files (listed in Rakefile). It is not meant to be used for RDoc's | ||
# source code. | ||
# The purpose of this file is to ensure the generated files don't have trailing whitespace or empty lines, which could | ||
# be a problem for ruby/ruby's CI | ||
AllCops: | ||
TargetRubyVersion: 3.3 | ||
DisabledByDefault: true | ||
|
||
Layout/TrailingWhitespace: | ||
Enabled: true | ||
Layout/TrailingEmptyLines: | ||
Enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# release.yml | ||
|
||
changelog: | ||
categories: | ||
- title: ✨ Enhancements | ||
labels: | ||
- enhancement | ||
- title: 🐛 Bug Fixes | ||
labels: | ||
- bug | ||
- title: 📚 Documentation | ||
labels: | ||
- documentation | ||
- title: 🛠 Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: # added using https://github.com/step-security/secure-workflows | ||
contents: read | ||
|
||
jobs: | ||
lint: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 # v3.3.0 | ||
# libyaml-dev is needed for psych, see https://github.com/ruby/setup-ruby/issues/409 | ||
- if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install libyaml-dev | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@master | ||
with: | ||
ruby-version: 3.3 | ||
bundler-cache: true | ||
- name: Run rubocop | ||
run: bundle exec rubocop | ||
- name: Sanity check for the format_generated_files task | ||
run: bundle exec rake generate format_generated_files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Publish gem to rubygems.org | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
push: | ||
if: github.repository == 'ruby/rdoc' | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: rubygems.org | ||
url: https://rubygems.org/gems/rdoc | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | ||
with: | ||
egress-policy: audit | ||
|
||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0 | ||
with: | ||
bundler-cache: true | ||
ruby-version: ruby | ||
|
||
- name: Publish to RubyGems | ||
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1 | ||
|
||
- name: Create GitHub release | ||
run: | | ||
tag_name="$(git describe --tags --abbrev=0)" | ||
gh release create "${tag_name}" --verify-tag --generate-notes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: ruby-core | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }}-${{ github.workflow }} | ||
|
||
permissions: # added using https://github.com/step-security/secure-workflows | ||
contents: read | ||
|
||
jobs: | ||
ruby_core: | ||
name: RDoc under a ruby-core setup | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Set up latest ruby head | ||
uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0 | ||
with: | ||
ruby-version: head | ||
bundler: none | ||
- name: Save latest buildable revision to environment | ||
run: echo "REF=$(ruby -v | cut -d')' -f1 | cut -d' ' -f5)" >> $GITHUB_ENV | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.1.0 | ||
with: | ||
repository: ruby/ruby | ||
path: ruby/ruby | ||
fetch-depth: 10 | ||
- name: Checkout the latest buildable revision | ||
run: git switch -c ${{ env.REF }} | ||
working-directory: ruby/ruby | ||
- name: Install libraries | ||
run: | | ||
set -x | ||
sudo apt-get update -q || : | ||
sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf ruby | ||
- name: Build Ruby | ||
run: | | ||
autoconf | ||
./configure -C --disable-install-doc | ||
make -j2 | ||
working-directory: ruby/ruby | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.1.0 | ||
with: | ||
path: ruby/rdoc | ||
- name: Sync tools | ||
run: | | ||
ruby tool/sync_default_gems.rb rdoc | ||
working-directory: ruby/ruby | ||
- name: Test RDoc | ||
run: make -j2 -s test-all TESTS="rdoc --no-retry" | ||
working-directory: ruby/ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
exclude: | ||
- lib/rdoc/rd/block_parser.ry | ||
- lib/rdoc/rd/inline_parser.ry | ||
- lib/rdoc/markdown.kpeg | ||
- lib/rdoc/markdown/literals.kpeg | ||
op_dir: _site # for GitHub Pages and should match the config of RDoc task in Rakefile | ||
title: rdoc Documentation | ||
main_page: README.rdoc | ||
warn_missing_rdoc_ref: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.6 | ||
TargetRubyVersion: 3.0 | ||
DisabledByDefault: true | ||
Exclude: | ||
- rdoc.gemspec | ||
SuggestExtensions: false | ||
|
||
Layout/TrailingWhitespace: | ||
Enabled: true | ||
|
||
Layout/TrailingEmptyLines: | ||
Enabled: true | ||
|
||
Layout/SpaceAroundKeyword: | ||
Enabled: true | ||
|
||
Layout/SpaceBeforeComma: | ||
Enabled: true | ||
|
||
Layout/SpaceAfterComma: | ||
Enabled: true | ||
|
||
Lint/UnreachableCode: | ||
Enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.