summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-01 12:43:58 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-12 10:15:43 +0100
commit8cbbb3985607bbfffa2d26666da163631c4c5acd (patch)
tree1a6430bcc5b8365866098e38828e91b0f31fa337 /lib/bundler
parentecd437368cb5193347fc0d5b4dc2f84261b2eef3 (diff)
downloadbundler-8cbbb3985607bbfffa2d26666da163631c4c5acd.tar.gz
Delay custom sources deprecation to bundler 3
And thus its removal even further.
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/dsl.rb4
-rw-r--r--lib/bundler/feature_flag.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 3849cff339..3b9f432ee7 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -479,8 +479,8 @@ repo_name ||= user_name
"do |repo_name|\n#{replacement.to_s.gsub(/^/, " ")}\n end"
end
- Bundler::SharedHelpers.major_deprecation 2, <<-EOS
-The :#{name} git source is deprecated, and will be removed in Bundler 2.0.#{additional_message} Add this code to the top of your Gemfile to ensure it continues to work:
+ Bundler::SharedHelpers.major_deprecation 3, <<-EOS
+The :#{name} git source is deprecated, and will be removed in Bundler 3.0.#{additional_message} Add this code to the top of your Gemfile to ensure it continues to work:
git_source(:#{name}) #{replacement}
diff --git a/lib/bundler/feature_flag.rb b/lib/bundler/feature_flag.rb
index 48eec1cca6..8b7b836e42 100644
--- a/lib/bundler/feature_flag.rb
+++ b/lib/bundler/feature_flag.rb
@@ -50,7 +50,7 @@ module Bundler
settings_flag(:prefer_gems_rb) { bundler_2_mode? }
settings_flag(:print_only_version_number) { bundler_2_mode? }
settings_flag(:setup_makes_kernel_gem_public) { !bundler_2_mode? }
- settings_flag(:skip_default_git_sources) { bundler_3_mode? }
+ settings_flag(:skip_default_git_sources) { bundler_4_mode? }
settings_flag(:specific_platform) { bundler_2_mode? }
settings_flag(:suppress_install_using_messages) { bundler_2_mode? }
settings_flag(:unlock_source_unlocks_spec) { !bundler_2_mode? }