Alex Lang
Alex Lang

Reputation: 1308

Referencing the (unreleased) activesupport 4.0 gem in a Gemfile

Is there a way to reference any of the Rails 4 gems (activesupport, activerecord, activemodel etc.) that sit in subdirectories of the Rails git repo on Github in a Gemfile? I have a library whose tests I want to run against activesupport 4, and since there is no released version of that gem I have to reference the git repo.

Upvotes: 1

Views: 200

Answers (1)

Skade
Skade

Reputation: 1436

Just point Bundler to the git repository. Bundler will search for the gem in the root directory or in a directory that has the gems name.

source :rubygems

gem 'activerecord', :git => '[email protected]:rails/rails.git'

Upvotes: 4

Related Questions