lib/bubble-wrap/requirement/path_manipulation.rb in bubble-wrap-1.0.0.pre vs lib/bubble-wrap/requirement/path_manipulation.rb in bubble-wrap-1.0.0.pre.2
- old
+ new
@@ -8,10 +8,13 @@
strip_up_to_last_lib path
end
def convert_caller_to_path(string)
chunks = string.split(':')
- return chunks[0..-3].join(':') if chunks.size >= 3
+ if chunks.size >= 3
+ string = chunks[0..-3].join(':')
+ string = File.dirname(string)
+ end
string
end
def convert_to_absolute_path(path)
File.expand_path(path)