简体   繁体   中英

How do I explore the source of a gem that isn't installed?

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文件,其中包含几个gztar.gz文件,因此您可以使用标准的targzip实用程序获取内容。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM