DEV Community

Kelly Popko
Kelly Popko

Posted on

Today I Learned: Unpack a Gem

Today I learned how to unpack a gem:

❯ gem unpack my-gem-0.0.0.gem
Enter fullscreen mode Exit fullscreen mode

This creates a directory my-gem-0.0.0 we can navigate to cd my-gem-0.0.0:

ls
my-gem-0.0.0
❯ cd my-gem-0.0.0
Enter fullscreen mode Exit fullscreen mode

From here, we can take a look at the contents.

Example:

ls
bin lib
Enter fullscreen mode Exit fullscreen mode

Note: for an unknown gem, consider instead using fetch to unpack.


Sources

Top comments (0)