aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/runtime.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-04-29 19:29:50 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-04-29 21:14:40 -0500
commit6ea35984cb801127b8572af7d4685e2ebe310a01 (patch)
tree77853e2ab07e145621f757b76bcf19810381e075 /lib/bundler/runtime.rb
parentaeb55f18df64ef49ac6ae2fa69eecd893ca446a3 (diff)
downloadbundler-6ea35984cb801127b8572af7d4685e2ebe310a01.tar.gz
[Runtime] Keep load paths within a single spec properly sorted
Diffstat (limited to 'lib/bundler/runtime.rb')
-rw-r--r--lib/bundler/runtime.rb2
1 files changed, 1 insertions, 1 deletions
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