method
spec_for_dependency
v2_6_3 -
Show latest stable
-
0 notes -
Class: SpecSet
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3 (0)
- What's this?
spec_for_dependency(dep, match_current_platform)
private
Hide source
# File lib/bundler/spec_set.rb, line 172 def spec_for_dependency(dep, match_current_platform) specs_for_platforms = lookup[dep.name] if match_current_platform Bundler.rubygems.platforms.reverse_each do |pl| match = GemHelpers.select_best_platform_match(specs_for_platforms, pl) return match if match end nil else GemHelpers.select_best_platform_match(specs_for_platforms, dep.__platform) end end