Gem files are simply uncompressed tar archives. You can unpack them using the command tar:
$ ls
fruity-0.2.0.gem
$ tar xf fruity-0.2.0.gem
$ ls
data.tar.gz fruity-0.2.0.gem metadata.gz
The file data.tar.gzis a gzip compressed tarball containing gem files, you can unzip it with tar:
$ mkdir gem; cd gem
$ tar xzf ../data.tar.gz
$ ls
fruity.gemspec Gemfile.lock LICENSE.txt README.rdoc VERSION
Gemfile lib Rakefile spec
source
share