file_indexing 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module FileIndexing
|
|
8
8
|
|
9
9
|
# @param indexer_patterns_str [String]
|
10
10
|
def initialize (indexer_patterns = nil)
|
11
|
-
Log.
|
11
|
+
Log.debug1 "Initialize index patterns #{indexer_patterns}."
|
12
12
|
@positive_patterns = Array.new
|
13
13
|
@negative_patterns = Array.new
|
14
14
|
# TODO add a test (including empty collections)
|
@@ -49,7 +49,7 @@ module FileIndexing
|
|
49
49
|
def parse_from_file(file)
|
50
50
|
input_patterns = IO.readlines(file)
|
51
51
|
begin
|
52
|
-
Log.
|
52
|
+
Log.debug1 "Error loading patterns=%s" % file
|
53
53
|
raise IOError("Error loading patterns=%s" % file)
|
54
54
|
end unless not input_patterns.nil?
|
55
55
|
|
@@ -57,7 +57,7 @@ module FileIndexing
|
|
57
57
|
if (m = /^\s*([+-]):(.*)/.match(pattern))
|
58
58
|
add_pattern(m[2], m[1].eql?('+') ? true : false)
|
59
59
|
elsif (not /^\s*[\/\/|#]/.match(pattern)) # not a comment
|
60
|
-
Log.
|
60
|
+
Log.debug1 "pattern in incorrect format: #{pattern}"
|
61
61
|
raise RuntimeError("pattern in incorrect format: #{pattern}")
|
62
62
|
end
|
63
63
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file_indexing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: content_data
|