summaryrefslogtreecommitdiff
path: root/exe
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-07-18 17:46:34 -0500
committerColby Swandale <colby@taplaboratories.com>2017-08-20 11:18:13 +1000
commitfd78b296323e4656c2df800cc6100418d0ad9aa7 (patch)
treec90e5a89101a1d87f679ecfb08174ded9a80c923 /exe
parentaea4046b5b91b83b27f117822e1bd6c614da3e6e (diff)
downloadbundler-fd78b296323e4656c2df800cc6100418d0ad9aa7.tar.gz
Ensure deprecations become a hard error in Bundler 2
Diffstat (limited to 'exe')
-rwxr-xr-xexe/bundle_ruby7
1 files changed, 4 insertions, 3 deletions
diff --git a/exe/bundle_ruby b/exe/bundle_ruby
index 847708c3ea..df6f8cc8a1 100755
--- a/exe/bundle_ruby
+++ b/exe/bundle_ruby
@@ -1,12 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
+require "bundler/shared_helpers"
+
+Bundler::SharedHelpers.major_deprecation(2, "the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
+
Signal.trap("INT") { exit 1 }
require "bundler/errors"
require "bundler/ruby_version"
require "bundler/ruby_dsl"
-require "bundler/shared_helpers"
module Bundler
class Dsl
@@ -42,8 +45,6 @@ module Bundler
end
end
-Bundler::SharedHelpers.major_deprecation("the bundle_ruby executable has been removed in favor of `bundle platform --ruby`")
-
dsl = Bundler::Dsl.new
begin
dsl.eval_gemfile(Bundler::SharedHelpers.default_gemfile)