From e008a1aa7bf18fadb8783e7d03ac61c2abab9a21 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Wed, 22 Jun 2016 17:35:25 -0500 Subject: Print the first batch of major deprecation warnings --- exe/bundle_ruby | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'exe') diff --git a/exe/bundle_ruby b/exe/bundle_ruby index 49767304e2..847708c3ea 100755 --- a/exe/bundle_ruby +++ b/exe/bundle_ruby @@ -3,14 +3,12 @@ Signal.trap("INT") { exit 1 } +require "bundler/errors" require "bundler/ruby_version" require "bundler/ruby_dsl" require "bundler/shared_helpers" module Bundler - class GemfileError < RuntimeError; end - class GemfileEvalError < GemfileError; end - class Dsl include RubyDsl @@ -44,7 +42,7 @@ module Bundler end end -STDERR.puts "Warning: bundle_ruby will be deprecated in Bundler 2.0.0." +Bundler::SharedHelpers.major_deprecation("the bundle_ruby executable has been removed in favor of `bundle platform --ruby`") dsl = Bundler::Dsl.new begin -- cgit v1.2.1