206
182

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 5 years have passed since last update.

Gemfileでのgem指定色々

Last updated at Posted at 2012-12-26

レポジトリの特定ブランチを使いたいとか,ローカルでちょっと変更して試したいときのGemfileの変更方法.
変更してbundleを実行すればよい.
ref: https://bundler.io/man/gemfile.5.html

# あるレポジトリの特定ブランチ
gem 'albino', :git => 'git://github.com/yaotti/albino.git',
              :branch => "enable-g-flag"

# 追記: GitHubのmasterならこういう指定もできる(bundler v 1.1以降)
gem 'rails',  :github => 'rails/rails'

# ローカルにあるgem
gem 'albino', :path => '/Users/you/path/to/albino'
206
182
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
206
182

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?