ruby / ruby/rubygems

Allow to bundle for a different Ruby version than the currently running version

Open
#7,399 4 comments 0 reactions 1 assignee View on GitHub

@hsbt is already working on this.

Since Oct 28, 2025.

Bundler
Dominant language
Ruby
Stars
4k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
81

Description

Sometimes you're running a given Ruby version, but you want to be able to bundle for another, typically in automation systems, directly using the library code, not the bundle executable.

For example, Dependabot currently runs 3.1.4, but can bundle dependencies for 3.3.0 if you provide a ruby "3.3.0" line in your Gemfile.

The way it does that is by monkey-patching, it would be nice if there was first class support for this: https://github.com/dependabot/dependabot-core/pull/6030#issue-1434603169

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.