by kawsper · 13y ago · 0 comments
I know that we depend on FFI, because we use selenium-webdriver, which depends on childprocess, which depends on FFI.
https://sourcegraph.com/github.com/ffi/ffi/network/repos/in
and can show where some of its main methods are used: https://sourcegraph.com/github.com/ffi/ffi/symbols/ruby/gem/...
and also for some other gems:
https://sourcegraph.com/github.com/nex3/sass/network/repos/i...
https://sourcegraph.com/github.com/lsegal/yard/network/repos...
https://sourcegraph.com/github.com/rails/rails/network/repos...
It would be great if someone added this functionality to rubygems.org (npmjs.org has it: https://npmjs.org/browse/depended/request).
The Ruby support is very alpha right now. It works for some (but not all) popular gems, and it doesn't show transitive dependencies yet. Also, the list of dependents isn't comprehensive, but it should be a good starting point. If there are any specific gems you'd like to see dependents for, or any issues you see, let me know.
But that's the type of site I was trying to find before I resorted to Google. I'd second that recommendation to add the functionality to rubygems.org ... Maybe we need a pull-request? :)
Are these only gems where the gem source code is in Github?
edit: assuming you're using Bundler, that is. If you're not, fix that first ;)
Can you not rely on childprocess (or selenium webdriver) to handle their own dependancies appropriately?
But I'd say this is a problem if one wants to ensure compatibility in Rubyland with other languages and processes on different environments, or that they're using the latest and most correct code for their situation.
This gets hairier if the gem forks on github, and you've multiple fixes in multiple branches ... Rubygems aren't really set up to deal with this. Bundler helps, though.
I guess the reason that I am a bit uncomfortable, is because FFI in particular feels very basic and fundamental.