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