[前][次][番号順一覧][スレッド一覧]

ruby-changes:57776

From: David <ko1@a...>
Date: Wed, 18 Sep 2019 18:26:55 +0900 (JST)
Subject: [ruby-changes:57776] c92e098781 (master): [bundler/bundler] Fix --path option descriptions

https://git.ruby-lang.org/ruby.git/commit/?id=c92e098781

From c92e098781470c84a497a1d430f425aca897f895 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Fri, 16 Aug 2019 11:59:39 +0200
Subject: [bundler/bundler] Fix --path option descriptions

To not mention that the flag is remembered when it's not.

https://github.com/bundler/bundler/commit/82f0b95854

diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 9dadbec..1d70824 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -207,7 +207,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/cli.rb#L207
     method_option "no-prune", :type => :boolean, :banner =>
       "Don't remove stale gems from the cache."
     method_option "path", :type => :string, :banner =>
-      "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME). Bundler will remember this value for future installs on this machine"
+      "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine" unless Bundler.feature_flag.forget_cli_options?}"
     method_option "quiet", :type => :boolean, :banner =>
       "Only output warnings and errors."
     method_option "shebang", :type => :string, :banner =>
@@ -424,7 +424,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/cli.rb#L424
     method_option "no-install", :type => :boolean, :banner => "Don't install the gems, only the package."
     method_option "no-prune", :type => :boolean, :banner => "Don't remove stale gems from the cache."
     method_option "path", :type => :string, :banner =>
-      "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME). Bundler will remember this value for future installs on this machine"
+      "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine" unless Bundler.feature_flag.forget_cli_options?}"
     method_option "quiet", :type => :boolean, :banner => "Only output warnings and errors."
     method_option "frozen", :type => :boolean, :banner =>
       "Do not allow the Gemfile.lock to be updated after this package operation's install"
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]