To offline environment construction table of contents
gem
Execute the following command online to download the gem file.
ogem-get.sh
name=$1
version=$2
wget https://rubygems.org/downloads/$name-$version.gem
To load the gem file offline, execute the following command.
ogem-load.sh
name=$1
version=$2
gem install -l $name-$version.gem
Reference site: https://blog.tgr.wtf/%E3%80%90ruby%E3%80%91gem%E3%82%92%E3%82%AA%E3%83%95%E3%83%A9% E3% 82% A4% E3% 83% B3% E3% 81% A7% E3% 82% A4% E3% 83% B3% E3% 82% B9% E3% 83% 88% E3% 83% BC% E3% 83% AB% E3% 81% 99% E3% 82% 8B% E6% 96% B9% E6% B3% 95-346.html
Recommended Posts