From 98ac13665be713123d72d3bb23150b80cda5e0e3 Mon Sep 17 00:00:00 2001 From: Asutosh Palai Date: Fri, 27 May 2016 22:22:01 +0530 Subject: Fixed full_gem_path for older RGV --- lib/bundler/rubygems_ext.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/bundler/rubygems_ext.rb') diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 67720645..3c54e126 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 -- cgit v1.2.3