從 githubfilesystem 安裝 gem

你可以從 github 或 filesystem 安裝 gem。如果已經從 git 檢出了 gem 或者已經在檔案系統上以某種方式檢出了 gem,你可以使用它來安裝它

gem install --local path_to_gem/filename.gem

從 github 安裝 gem。從 github 下載原始碼

mkdir newgem
cd newgem
git clone https://urltogem.git

建立寶石

gem build GEMNAME.gemspec
gem install gemname-version.gem