diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-14 14:32:02 +0100 |
|---|---|---|
| committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-21 16:32:22 +0100 |
| commit | 149f1ce04bde47d72a62569143be0484cf4bdbba (patch) | |
| tree | 502f2082b22a4f1abf219e0b3f2414d9d84c9efe /lib/bundler/shared_helpers.rb | |
| parent | 2610e6c7fc68a7f7ae48f99fea4c082838944665 (diff) | |
| download | bundler-149f1ce04bde47d72a62569143be0484cf4bdbba.tar.gz | |
Reword deprecation messages
Including the version is confusing, in my opinion, because it's unclear
whether it refers to the future version of removal, or to the current
running version.
Diffstat (limited to 'lib/bundler/shared_helpers.rb')
| -rw-r--r-- | lib/bundler/shared_helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb index 02b3801c44..e28f9e6f39 100644 --- a/lib/bundler/shared_helpers.rb +++ b/lib/bundler/shared_helpers.rb @@ -144,13 +144,13 @@ module Bundler bundler_major_version = Bundler.bundler_major_version if bundler_major_version > major_version require "bundler/errors" - raise DeprecatedError, "[REMOVED FROM #{major_version.succ}.0] #{message}" + raise DeprecatedError, "[REMOVED] #{message}" end return unless bundler_major_version >= major_version || prints_major_deprecations? @major_deprecation_ui ||= Bundler::UI::Shell.new("no-color" => true) ui = Bundler.ui.is_a?(@major_deprecation_ui.class) ? Bundler.ui : @major_deprecation_ui - ui.warn("[DEPRECATED FOR #{major_version}.0] #{message}") + ui.warn("[DEPRECATED] #{message}") end def print_major_deprecations! |
