Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
[SpecSet] Avoid sorting specs in initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Apr 15, 2017
1 parent ea0fcf4 commit 50e899d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/spec_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SpecSet
def_delegators :sorted, :each

def initialize(specs)
@specs = specs.sort_by(&:name)
@specs = specs
end

def for(dependencies, skip = [], check = false, match_current_platform = false, raise_on_missing = true)
Expand Down
2 changes: 1 addition & 1 deletion spec/support/builders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def build_repo1
else
specs = Gem.source_index.find_name('')
end
specs.each do |gem|
specs.sort_by(&:name).each do |gem|
puts gem.full_name
end
Y
Expand Down

0 comments on commit 50e899d

Please sign in to comment.