Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Respect enclosing platforms and install_if for gemspec development dependencies - #9992

Merged
hsbt merged 5 commits into
masterfrom
claude/inspiring-jang-a26a1d
Nov 3, 2026
Merged

hsbt merged 5 commits into
masterfrom
claude/inspiring-jang-a26a1d

Conversation

@hsbt

@hsbt hsbt commented Oct 30, 2026

Copy link
Copy Markdown
Member

Follow-up to #9990. A gemspec inside a platforms or install_if block now skips the gem, but its development dependencies are still installed everywhere. Bundler 2.6.3 and earlier skipped them too.

platforms :jruby do
  gemspec # its development dependencies were installed on CRuby as well
end

This passes the development dependencies through normalize_options as #9990 does for the gem, then puts them in development_group as before, so an enclosing group still does not apply to them. The second commit documents that in gemfile(5).

Generated with Claude Code

hsbt and others added 3 commits October 30, 2026 14:58
…pendencies

Before 2.6.4 the development dependencies of a gemspec inside a `platforms` or `install_if` block were skipped along with the gem itself. They still go to the development group as documented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hsbt and others added 2 commits October 30, 2026 17:35
Runtime dependencies come in through the project gem, so they follow it into the enclosing group, and development dependencies honor `:development_group`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…roup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hsbt
hsbt merged commit 9accdcf into master Nov 3, 2026
114 checks passed
@hsbt
hsbt deleted the claude/inspiring-jang-a26a1d branch November 3, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant