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

Commit

Permalink
[SpecSet] Compare dep type directly for old RG compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Jan 21, 2017
1 parent b0a6fca commit bc95fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/spec_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def find_by_name_and_platform(name, platform)
end

def what_required(spec)
unless req = find {|s| s.dependencies.any? {|d| d.runtime? && d.name == spec.name } }
unless req = find {|s| s.dependencies.any? {|d| d.type == :runtime && d.name == spec.name } }
return [spec]
end
what_required(req) << spec
Expand Down

0 comments on commit bc95fde

Please sign in to comment.