lib/cobra_commander/umbrella.rb in cobra_commander-1.0.0 vs lib/cobra_commander/umbrella.rb in cobra_commander-1.0.1
- old
+ new
@@ -46,10 +46,10 @@
# @return [::CobraCommander::Component,nil] the component where the path is
#
def resolve(path)
components.find do |component|
component.root_paths.any? do |component_path|
- component_path.eql?(Pathname.new(path)) || path.to_s.start_with?("#{component_path.cleanpath}/")
+ component_path.eql?(path) || path.expand_path.to_s.start_with?("#{component_path.expand_path}/")
end
end
end
#