Sha256: a11cf9712320bf2ce3e96899ccce88e9c0128fa62f54c2ee05ef247d18e81765

Contents?: true

Size: 613 Bytes

Versions: 11

Compression:

Stored size: 613 Bytes

Contents

# encoding: utf-8
require 'rake'

module Rake
    class FileList
        def self.get_ignored_dir_pattern(dir)
            # if a pattern contains lookahead
            # # do not add trailing part
            if /\(\?[=!]/ =~ dir
                return Regexp.new("(^|[\\/\\\\])#{dir}", true)
            else
                return Regexp.new("(^|[\\/\\\\])#{dir}([\\/\\\\]|$)", true)
            end
        end
        IGNORE_GIT_PATTERN = get_ignored_dir_pattern('.git')
        DEFAULT_IGNORE_PATTERNS << IGNORE_GIT_PATTERN \
            if !DEFAULT_IGNORE_PATTERNS.include?(IGNORE_GIT_PATTERN)
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rake-delphi-0.0.34 lib/rake/helpers/filelist.rb
rake-delphi-0.0.33 lib/rake/helpers/filelist.rb
rake-delphi-0.0.32 lib/rake/helpers/filelist.rb
rake-delphi-0.0.31 lib/rake/helpers/filelist.rb
rake-delphi-0.0.29 lib/rake/helpers/filelist.rb
rake-delphi-0.0.30 lib/rake/helpers/filelist.rb
rake-delphi-0.0.28 lib/rake/helpers/filelist.rb
rake-delphi-0.0.27 lib/rake/helpers/filelist.rb
rake-delphi-0.0.26 lib/rake/helpers/filelist.rb
rake-delphi-0.0.25 lib/rake/helpers/filelist.rb
rake-delphi-0.0.24 lib/rake/helpers/filelist.rb