summaryrefslogtreecommitdiff
path: root/exe
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-06-22 17:35:25 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-06-23 18:41:36 -0500
commite008a1aa7bf18fadb8783e7d03ac61c2abab9a21 (patch)
tree02b3243df38af593710df83f8908cc77ddf8a812 /exe
parent3821b16cd72d634032aa5526f5aaa2e5858193fc (diff)
downloadbundler-e008a1aa7bf18fadb8783e7d03ac61c2abab9a21.tar.gz
Print the first batch of major deprecation warnings
Diffstat (limited to 'exe')
-rwxr-xr-xexe/bundle_ruby6
1 files changed, 2 insertions, 4 deletions
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