Skip to content

Commit

Permalink
Make sure versions resolve from highest to lowest.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed May 5, 2017
1 parent 856666b commit eb7fb4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/elm_install/git_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def matching_versions(constraints)
.select do |version|
constraints.all? { |constraint| constraint.satisfies?(version) }
end
.sort
.reverse
end

Contract None => String
Expand Down

0 comments on commit eb7fb4f

Please sign in to comment.