0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Ruby】GitHubからGemをインストールする方法

Posted at

Gemfileを使用する

Gemfileに以下のように記述します。

Gemfile
  gem "Gem名", git: "git@github.com:ユーザー名/リポジトリ名.git"

bundle installします。

ターミナル
$ bundle install

group, platform, requireオプションが使用できます。
リポジトリには.gemspecファイルが含まれている必要があります。

gem installする

以下のコマンドを実行することでインストールできます。

ターミナル
$ gem install specific_install
$ gem specific_install -l 'https://github.com/ユーザー名/リポジトリ名'
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?