Skip to content

Commit

Permalink
Prioritise explicitly requested gems in Bundler dependency sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
greysteil committed Oct 26, 2017
1 parent de2ad26 commit bce7b51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/spec_helper/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def sort_dependencies(dependencies, activated, conflicts)
name = name_for(dependency)
[
activated.vertex_named(name).payload ? 0 : 1,
activated.vertex_named(name).root? ? 0 : 1,
amount_constrained(dependency),
conflicts[name] ? 0 : 1,
activated.vertex_named(name).payload ? 0 : search_for(dependency).count,
Expand Down

0 comments on commit bce7b51

Please sign in to comment.