From cac7644bdb28ca96df269ddd508a2ae056d9898f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 27 Jun 2025 12:23:17 +0200 Subject: [PATCH] [rubygems/rubygems] Document the `simulate_version` setting https://github.com/rubygems/rubygems/commit/1ffd83f6c2 --- lib/bundler/man/bundle-config.1 | 3 +++ lib/bundler/man/bundle-config.1.ronn | 4 ++++ lib/bundler/settings.rb | 1 + 3 files changed, 8 insertions(+) diff --git a/lib/bundler/man/bundle-config.1 b/lib/bundler/man/bundle-config.1 index 58b1071517..67b77d8ec5 100644 --- a/lib/bundler/man/bundle-config.1 +++ b/lib/bundler/man/bundle-config.1 @@ -179,6 +179,9 @@ Whether Bundler should silence deprecation warnings for behavior that will be ch \fBsilence_root_warning\fR (\fBBUNDLE_SILENCE_ROOT_WARNING\fR) Silence the warning Bundler prints when installing gems as root\. .TP +\fBsimulate_version\fR (\fBBUNDLE_SIMULATE_VERSION\fR) +The virtual version Bundler should use for activating feature flags\. Can be used to simulate all the new functionality that will be enabled in a future major version\. +.TP \fBssl_ca_cert\fR (\fBBUNDLE_SSL_CA_CERT\fR) Path to a designated CA certificate file or folder containing multiple certificates for trusted CAs in PEM format\. .TP diff --git a/lib/bundler/man/bundle-config.1.ronn b/lib/bundler/man/bundle-config.1.ronn index deeae2683b..08f61a6351 100644 --- a/lib/bundler/man/bundle-config.1.ronn +++ b/lib/bundler/man/bundle-config.1.ronn @@ -192,6 +192,10 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html). be changed in the next major version. * `silence_root_warning` (`BUNDLE_SILENCE_ROOT_WARNING`): Silence the warning Bundler prints when installing gems as root. +* `simulate_version` (`BUNDLE_SIMULATE_VERSION`): + The virtual version Bundler should use for activating feature flags. Can be + used to simulate all the new functionality that will be enabled in a future + major version. * `ssl_ca_cert` (`BUNDLE_SSL_CA_CERT`): Path to a designated CA certificate file or folder containing multiple certificates for trusted CAs in PEM format. diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 0737823a13..104a6f72ba 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -86,6 +86,7 @@ module Bundler gemfile path shebang + simulate_version system_bindir trust-policy version