🔎 Investigating your ruby code dependencies
Ruby Detective is a gem that parses your code, finds it’s dependencies and outputs an interactive .html file that you can use to explore the dependency network of the code.
This is the UI for the Ruby Detective project by the way:
*: Due to Ruby metaprogramming super-powers (and by extension Rails heavy use of those) it’s unfeasible to find every single dependency, so we can only guarantee that explicit constants will be pointed as dependencies.
Make sure you have Ruby 2.5 or higher installed (lower versions are not supported)
gem install ruby_detective
cd my-project-folder
ruby_detective .
This should output an html file at the end that is completely self-contained, and can be shared around with your peers :D