search
LoginSignup
186
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

Gemfileでのgem指定色々

レポジトリの特定ブランチを使いたいとか,ローカルでちょっと変更して試したいときの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'

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
What you can do with signing up
186
Help us understand the problem. What are the problem?