Browse files

Allow relative and absolute Paths to be compared

When Paths were created with relative paths they would not be considered equal to a Path
for the same location but as an absolute path.
  • Loading branch information...
opsb authored and indirect committed Feb 9, 2011
1 parent a890c9c commit 03e8223577ecaae5ca2368b72288d16b010936d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/source.rb
@@ -323,7 +323,7 @@ def eql?(o)
alias == eql?
def name
- File.basename(@path.to_s)
+ File.basename(path.expand_path(Bundler.root).to_s)
def load_spec_files

0 comments on commit 03e8223

Please sign in to comment.