Skip to content

Drop gemspec attributes removed in RubyGems 4 - #1

Merged
jeremy merged 1 commit into
masterfrom
remove-has-rdoc
Aug 22, 2026
Merged

Drop gemspec attributes removed in RubyGems 4#1
jeremy merged 1 commit into
masterfrom
remove-has-rdoc

Conversation

@jeremy

@jeremy jeremy commented Aug 22, 2026

Copy link
Copy Markdown
Member

Loading this gemspec raises on Ruby 4, so every Bundler resolution that touches the gem fails:

Bundler::GemspecError: There was an error while loading `resque-pause.gemspec`:
undefined method 'has_rdoc=' for an instance of Gem::Specification

Gem::Specification#has_rdoc= no longer exists. Dependabot's updater now runs Ruby 4, so this has been silently killing Launchpad's bundler runs since June — 68 dependencies checked, nothing resolvable, no gem PRs at all including security ones.

rubyforge_project is a separate matter: RubyGems 4 still tolerates it (it executes fine on the line above has_rdoc=), so removing it is cleanup, not the fix. RubyForge shut down in 2014.

Verified under ruby 4.0.6:

$ mise x ruby@4.0.6 -- ruby -e 'p Gem::Specification.load("resque-pause.gemspec").full_name'
"resque-pause-0.3.0"

$ mise x ruby@4.0.6 -- gem build resque-pause.gemspec
  Successfully built RubyGem
  Name: resque-pause
  Version: 0.3.0

No runtime code changes — version stays 0.3.0, dependencies unchanged.

`Gem::Specification#has_rdoc=` no longer exists, so loading this gemspec
raises on Ruby 4 and every Bundler resolution that touches this gem
fails:

    Bundler::GemspecError: There was an error while loading
    `resque-pause.gemspec`: undefined method 'has_rdoc=' for an
    instance of Gem::Specification

That has been breaking Launchpad's Dependabot runs since June — no gem
updates at all, security ones included.

`rubyforge_project` is still tolerated by RubyGems 4, but RubyForge shut
down in 2014. Removed alongside as cleanup.

Verified under ruby 4.0.6: `Gem::Specification.load` returns the spec
and `gem build` succeeds.
Copilot AI balanced review requested due to automatic review settings August 22, 2026 09:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes obsolete RubyGems metadata so the gemspec loads under RubyGems 4 without changing runtime behavior or dependencies.

Changes:

  • Removed unsupported has_rdoc.
  • Removed defunct RubyForge metadata.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jeremy
jeremy merged commit 1015147 into master Aug 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants