summaryrefslogtreecommitdiff
path: root/lib/bundler/plugin/installer
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/plugin/installer')
-rw-r--r--lib/bundler/plugin/installer/path.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/plugin/installer/path.rb b/lib/bundler/plugin/installer/path.rb
index 58a8fa7426..58c4924eb0 100644
--- a/lib/bundler/plugin/installer/path.rb
+++ b/lib/bundler/plugin/installer/path.rb
@@ -8,6 +8,14 @@ module Bundler
SharedHelpers.in_bundle? ? Bundler.root : Plugin.root
end
+ def eql?(other)
+ return unless other.class == self.class
+ expanded_original_path == other.expanded_original_path &&
+ version == other.version
+ end
+
+ alias_method :==, :eql?
+
def generate_bin(spec, disable_extensions = false)
# Need to find a way without code duplication
# For now, we can ignore this