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

ruby-changes:57779

From: David <ko1@a...>
Date: Wed, 18 Sep 2019 18:51:37 +0900 (JST)
Subject: [ruby-changes:57779] e6ad9452b6 (master): [bundler/bundler] Fix remembered flag deprecation message

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

From e6ad9452b6cf1cf118ead0cbd0cf86e2c0fb61e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Fri, 16 Aug 2019 12:07:55 +0200
Subject: [bundler/bundler] Fix remembered flag deprecation message

It was suggested a deprecated command as a fix.

https://github.com/bundler/bundler/commit/e330a9a34f

diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 1d70824..45db2a3 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -791,7 +791,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/cli.rb#L791
       Bundler::SharedHelpers.major_deprecation 2,\
         "The `#{flag_name}` flag is deprecated because it relies on being " \
         "remembered across bundler invokations, which bundler will no longer " \
-        "do in future versions. Instead please use `bundle config #{name} " \
+        "do in future versions. Instead please use `bundle config set #{name} " \
         "'#{value}'`, and stop using this flag"
     end
   end
diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb
index ee153a8..14a2e0e 100644
--- a/spec/bundler/other/major_deprecation_spec.rb
+++ b/spec/bundler/other/major_deprecation_spec.rb
@@ -312,7 +312,7 @@ RSpec.describe "major deprecations" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/other/major_deprecation_spec.rb#L312
             "The `#{flag_name}` flag is deprecated because it relies on " \
             "being remembered across bundler invokations, which bundler " \
             "will no longer do in future versions. Instead please use " \
-            "`bundle config #{name} '#{value}'`, and stop using this flag"
+            "`bundle config set #{name} '#{value}'`, and stop using this flag"
           )
         end
 
-- 
cgit v0.10.2


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

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