lib/appmap/util.rb in appmap-0.45.0 vs lib/appmap/util.rb in appmap-0.45.1

- old
+ new

@@ -91,9 +91,17 @@ memo[key] = value end matching_headers.blank? ? nil : matching_headers end + def normalize_path(path) + if path.index(Dir.pwd) == 0 + path[Dir.pwd.length + 1..-1] + else + path + end + end + # Atomically writes AppMap data to +filename+. def write_appmap(filename, appmap) require 'fileutils' require 'tmpdir'