Skip to content
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...
1 parent a890c9c commit 03e8223577ecaae5ca2368b72288d16b010936d3 @opsb opsb committed with indirect Feb 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/source.rb
View
2 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)
end
def load_spec_files

0 comments on commit 03e8223

Please sign in to comment.
Something went wrong with that request. Please try again.