diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-05-26 04:06:59 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-05-26 20:05:20 +0530 |
commit | 5ab32cdb78510079d203a2c56ecb2ac56b9de984 (patch) | |
tree | 436046005ed4e5f09ecdf825ede4a10588cddc3f /lib/bundler/rubygems_ext.rb | |
parent | 3202fb947ab4ce91169ac9ffc509696b4acbebbb (diff) | |
download | bundler-5ab32cdb78510079d203a2c56ecb2ac56b9de984.tar.gz |
Added Gemfile eval for plugins
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 2f36c29cd9..67720645b3 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -24,7 +24,8 @@ module Gem def full_gem_path if source.respond_to?(:path) - Pathname.new(loaded_from).dirname.expand_path(Bundler.root).to_s.untaint + root = source.for_plugin? ? Bundler::Plugin.root : Bundler.root + Pathname.new(loaded_from).dirname.expand_path(root).to_s.untaint else rg_full_gem_path end |