Find and fetch specs that match dependency.
If matching_platform is false, gems for all platforms are returned.
[Validate]