diff --git a/bundler/helpers/v1/run.rb b/bundler/helpers/v1/run.rb index 47852fef82..05cc44e81c 100644 --- a/bundler/helpers/v1/run.rb +++ b/bundler/helpers/v1/run.rb @@ -21,25 +21,11 @@ require "functions" -MAX_BUNDLER_VERSION = "2.0.0" - -def validate_bundler_version! - return true if correct_bundler_version? - - raise StandardError, "Called with Bundler '#{Bundler::VERSION}', expected < '#{MAX_BUNDLER_VERSION}'" -end - -def correct_bundler_version? - Gem::Version.new(Bundler::VERSION) < Gem::Version.new(MAX_BUNDLER_VERSION) -end - def output(obj) print JSON.dump(obj) end begin - validate_bundler_version! - request = JSON.parse($stdin.read) function = request["function"] diff --git a/bundler/helpers/v2/run.rb b/bundler/helpers/v2/run.rb index a77cb839e6..090e6600a5 100644 --- a/bundler/helpers/v2/run.rb +++ b/bundler/helpers/v2/run.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -gem "bundler", "~> 2.3" +gem "bundler", "~> 2.4" require "bundler" require "json" @@ -19,25 +19,11 @@ require "functions" -MIN_BUNDLER_VERSION = "2.1.0" - -def validate_bundler_version! - return true if correct_bundler_version? - - raise StandardError, "Called with Bundler '#{Bundler::VERSION}', expected >= '#{MIN_BUNDLER_VERSION}'" -end - -def correct_bundler_version? - Gem::Version.new(Bundler::VERSION) >= Gem::Version.new(MIN_BUNDLER_VERSION) -end - def output(obj) print JSON.dump(obj) end begin - validate_bundler_version! - request = JSON.parse($stdin.read) function = request["function"]