Reverse dependencies page shows gems once per platform #5199
Open
Description
Steps to Reproduce
For example pry
https://rubygems.org/gems/pry/reverse_dependencies
rest-client
publishes for 4 platforms, so it appears 4 times in that list.
Expected Behavior
Show each gem only once
Current Behavior
The gem appears as often as it publishes for different platforms
Possible Solution
Would be somewhere here I suppose
rubygems.org/app/models/rubygem.rb
Line 24 in 4c88dd6
Can't just add platform: "ruby"
though (I think)
Additional Context
There's a bit of a problem here. it's possible for platform-specific gems to have their own set of dependencies. For example, nokogiri
depends on mini_portile2
only for the generic ruby
platform.
I still think it's better to dedupe instead of showing the same thing multiple times without any difference.