From 6ea35984cb801127b8572af7d4685e2ebe310a01 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Fri, 29 Apr 2016 19:29:50 -0500 Subject: [Runtime] Keep load paths within a single spec properly sorted --- lib/bundler/runtime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bundler/runtime.rb') diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index 5f36b255..41f34819 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -37,7 +37,7 @@ module Bundler Bundler.rubygems.mark_loaded(spec) spec.load_paths.reject {|path| $LOAD_PATH.include?(path) } - end.flatten.reverse + end.reverse.flatten # See Gem::Specification#add_self_to_load_path (since RubyGems 1.8) if insert_index = Bundler.rubygems.load_path_insert_index -- cgit v1.2.3