Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/rdoc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: ruby/rdoc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ruby-4.0
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 6 commits
  • 34 files changed
  • 3 contributors

Commits on May 12, 2026

  1. rubocop --autocorrect (#1611)

    Apply autocorrect with the latest rubocop.
    Old rubocop missed some "Style/MethodDefParentheses" offences that has
    splat or kwarg splat.
    
    The following code didn't get `Style/MethodDefParentheses` offences in
    `rubocop <= 1.84.1`, fixed in `v1.84.2`
    ```ruby
    def f a, b:, **c, &d
    end
    
    def g a, *b, c, d:, &e
    end
    ```
    tompng authored and k0kubun committed May 12, 2026
    Configuration menu
    Copy the full SHA
    dd59092 View commit details
    Browse the repository at this point in the history
  2. Bump ruby/setup-ruby to v1.307.0 for Ruby 4.0 Windows support

    v1.275.0 doesn't list 4.0 as an available Ruby version on
    windows-latest, which makes the test (4.0, windows-latest) job fail at
    'Set up Ruby' on the ruby-4.0 release branch.
    k0kubun committed May 12, 2026
    Configuration menu
    Copy the full SHA
    6f4a082 View commit details
    Browse the repository at this point in the history
  3. Fix herb linter offenses in ERB templates (#1645)

    - Remove `then` keyword from all ERB control flow tags (52 offenses)
    - Move duplicated HTML elements outside conditional branches (14
    offenses)
    - Add `.herb.yml` config to disable rules not applicable to RDoc:
    - `erb-no-instance-variables-in-partials` — RDoc templates aren't Rails
    partials
    - `erb-no-unsafe-script-interpolation` — templates render trusted RDoc
    data
      - `erb-no-output-in-attribute-position` — same reason
    
    Fixes CI failure caused by `@herb-tools/linter` 0.9.0 introducing new
    rules.
    st0012 authored and k0kubun committed May 12, 2026
    Configuration menu
    Copy the full SHA
    bdbb51e View commit details
    Browse the repository at this point in the history
  4. Skip test_parse_instance_operation_method on TruffleRuby

    TruffleRuby's Ripper (backed by Prism::Translation::Ripper) tokenizes
    `def self.&` differently from CRuby's, producing fewer lines in
    markup_code. The Ripper-based parser was dropped on master in #1690,
    but the ruby-4.0 release branch still ships it, so the easiest path
    to a green CI is to omit this case for TruffleRuby.
    k0kubun committed May 12, 2026
    Configuration menu
    Copy the full SHA
    319f1dc View commit details
    Browse the repository at this point in the history
  5. Fix encoding error when C parser reads external source files (#1657)

    When a C file references another source file via `/* in file.c */`, the
    parser read it with bare `File.read` which uses
    `Encoding.default_external`. On systems where this is US-ASCII (e.g.
    Debian CI), non-ASCII bytes in the source file cause `ArgumentError:
    invalid byte sequence in US-ASCII` in String#scan.
    
    Use `RDoc::Encoding.read_file` instead, which reads in binary mode and
    properly handles encoding detection and transcoding.
    
    This was triggered by Ruby commit
    [`a2531ba293`](ruby/ruby@a2531ba293) which
    added UTF-8 right arrows (→) in comments in `class.c`, which is
    referenced from `object.c` via `/* in class.c */`.
    st0012 authored and k0kubun committed May 12, 2026
    Configuration menu
    Copy the full SHA
    2639841 View commit details
    Browse the repository at this point in the history
  6. Bump RDoc to 7.0.4

    k0kubun committed May 12, 2026
    Configuration menu
    Copy the full SHA
    dae10a9 View commit details
    Browse the repository at this point in the history
Loading