I'm aware of gem dependency
as a means to investigate a dependency graph, but I'm looking for something a little more straightforward. I only want to list gems that aren't dependencies of other gems.
In Homebrew, you can accomplish something similar with brew leaves
- this lists packages that aren't dependencies of other packages. I mention this in case it's helpful in understanding what I'm trying to accomplish.
I've made a small shell script for that:
Also in a Gist form: https://gist.github.com/astyagun/290b783045afffb8190a0c75ab76d0fa