I just have the gem on my desktop. How can I inspect it's source in Sublime Text or Xcode or anything really? I know I can check installed gems out with Sublime Text, what about uninstalled ones?
gem unpack foo.gem
then just go into the foo/ directory
see http://guides.rubygems.org/command-reference/#gem_unpack
如果您没有gem
工具(不太可能,但以防万一),gem是一个tar
文件,其中包含几个gz
和tar.gz
文件,因此您可以使用标准的tar
和gzip
实用程序获取内容。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.