summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-11-21 11:18:10 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-04 20:31:48 +0200
commit0b40b5b7843439ff9bf7fe09bdf0d789a84f8626 (patch)
tree5eea0096bfce1ade5f60c06a5625964664b79b98
parent566cce0629a0f1a4d147195a34d494306269e1cf (diff)
downloadbundler-remove_order_matters.tar.gz
Remove unnecessary `order_matters` paramremove_order_matters
-rw-r--r--lib/bundler/shared_helpers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index d259f20e6b..614e09f746 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -20,7 +20,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
@@ -226,7 +226,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)
@@ -291,7 +291,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