lib/rake/funnel/extensions/common_path.rb in rake-funnel-0.22.2 vs lib/rake/funnel/extensions/common_path.rb in rake-funnel-0.22.3
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'abbrev'
require 'pathname'
module Rake
module Funnel
@@ -37,9 +39,10 @@
list.map do |path|
longest_prefix = []
path.zip(min).each do |left, right|
next if left != right
+
longest_prefix << right
end
File.join(longest_prefix)
end