La opción PATH (:path) del método gem

You can specify that a gem is located in a particular location on the file system. Relative paths are resolved relative to the directory containing the Gemfile.

Similar to the semantics of the :git option, the :path option requires that the directory in question either contains a .gemspec for the gem, or that you specify an explicit version that bundler should use.

gem "rails", :path => "vendor/rails"

Casiano Rodriguez León 2015-01-07