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:
parent
a375a4518f
commit
5a56f4a541
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue