summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-05-27 22:22:01 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-05-27 22:22:01 +0530
commit98ac13665be713123d72d3bb23150b80cda5e0e3 (patch)
treec4a98cf28e1e42ff20a435f460eafb5205862dd9
parent10c87cff76e2ec5a21d7b8978debfb19ea9e5ebb (diff)
downloadbundler-98ac13665be713123d72d3bb23150b80cda5e0e3.tar.gz
Fixed full_gem_path for older RGV
-rw-r--r--lib/bundler/rubygems_ext.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb
index 67720645b3..3c54e1263b 100644
--- a/lib/bundler/rubygems_ext.rb
+++ b/lib/bundler/rubygems_ext.rb
@@ -22,6 +22,8 @@ module Gem
alias_method :rg_full_gem_path, :full_gem_path
alias_method :rg_loaded_from, :loaded_from
+ attr_writer :full_gem_path unless instance_methods.include?(:full_gem_path=)
+
def full_gem_path
if source.respond_to?(:path)
root = source.for_plugin? ? Bundler::Plugin.root : Bundler.root