Today I learned how to unpack a gem:
❯ gem unpack my-gem-0.0.0.gem
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
From here, we can take a look at the contents.
Example:
❯ ls
bin lib
Note: for an unknown gem, consider instead using fetch
to unpack.
Sources
Top comments (0)