Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-199

ArchiveTask#needed uses 'each' with no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.4
    • 1.3.4
    • None
    • None

    Description

      this is some of the code of the method:

      most_recent = @paths.collect

      { |name, path| path.sources }

      .flatten

      each

      { |src| File.directory?(src) ? Util.recursive_with_dot_files(src) | [src] : src }

      .flatten.
      select

      { |file| File.exist?(file) }

      .collect

      { |file| File.stat(file).mtime }

      .max
      File.stat(name).mtime < (most_recent || Rake::EARLY) || super

      the 'each' call effectively a noop (being that each just returns the same array)

      Attachments

        Activity

          People

            Unassigned Unassigned
            ittayd Ittay Dror
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: