summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoropsb <oliver@opsb.co.uk>2011-02-09 15:36:58 +0000
committerAndre Arko <andre@arko.net>2011-04-08 13:52:00 -0700
commit03e8223577ecaae5ca2368b72288d16b010936d3 (patch)
treed8f7505171c29bc32c2123b514524998b615b6cd /lib
parenta890c9cd0e41ab0ac97c1f103d9200fc95d3d226 (diff)
downloadbundler-03e8223577ecaae5ca2368b72288d16b010936d3.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index cce59c69d0..b93449c91d 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -323,7 +323,7 @@ module Bundler
alias == eql?
def name
- File.basename(@path.to_s)
+ File.basename(path.expand_path(Bundler.root).to_s)
end
def load_spec_files