1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Remove unnecessary order_matters param

https://github.com/bundler/bundler/commit/0b40b5b784
This commit is contained in:
David Rodríguez 2018-11-21 11:18:10 +01:00 committed by Hiroshi SHIBATA
parent a375a4518f
commit 5a56f4a541
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -19,7 +19,7 @@ module Bundler
end
def default_gemfile
gemfile = find_gemfile(:order_matters)
gemfile = find_gemfile
raise GemfileNotFound, "Could not locate Gemfile" unless gemfile
Pathname.new(gemfile).untaint.expand_path
end
@ -225,7 +225,7 @@ module Bundler
raise Bundler::PathError, message
end
def find_gemfile(order_matters = false)
def find_gemfile
given = ENV["BUNDLE_GEMFILE"]
return given if given && !given.empty?
find_file(*gemfile_names)
@ -290,7 +290,7 @@ module Bundler
# for Ruby core repository
exe_file = File.expand_path("../../../../bin/bundle", __FILE__) unless File.exist?(exe_file)
Bundler::SharedHelpers.set_env "BUNDLE_BIN_PATH", exe_file
Bundler::SharedHelpers.set_env "BUNDLE_GEMFILE", find_gemfile(:order_matters).to_s
Bundler::SharedHelpers.set_env "BUNDLE_GEMFILE", find_gemfile.to_s
Bundler::SharedHelpers.set_env "BUNDLER_VERSION", Bundler::VERSION
end