lib/core/checks.rb in buildr-1.2.1 vs lib/core/checks.rb in buildr-1.2.2

- old
+ new

@@ -315,10 +315,10 @@ def check() #:nodoc: unless @cached_entries if @path base = Regexp.new("^" + Regexp.escape(@path || "")) - @cached_entries = root.path("").check.map { |name| name.to_s.sub!(base, "") }.reject(&:nil?) + @cached_entries = root.path(nil).check.select { |entry| entry.name =~ base }.map { |entry| entry.name.sub(base, "") } else @cached_entries = Zip::ZipFile.open(root.name) { |zip| zip.entries } end end block_given? ? yield(@cached_entries) : @cached_entries