是不是先下载 gem,copy 到非联网计算机,再安装,如何安装,有人搞过吗?请指教。
#10 楼 @davidminaki http://ruby-china.org/topics/264 类似这样,我们公司内部也有一个。目前是自己开发的。难度不算大。
$ bundle package [--no-prune] [--all]
The package command will copy the .gem files for your gems in the bundle into ./vendor/cache. Afterward, when you run bundle install, Bundler will use the gems in the cache in preference to the ones on rubygems.org.
Additionally, if you then check that directory into your source control repository, others who check out your source will be able to install the bundle without having to download any additional gems.
就 bundle package 吧