freelancing-god-riddle 0.9.8.1533.2 → 0.9.8.1533.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/riddle/configuration/index.rb +18 -10
- data/lib/riddle.rb +1 -1
- metadata +2 -2
@@ -36,7 +36,7 @@ module Riddle
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def morphology
|
39
|
-
@morphologies
|
39
|
+
nil_join @morphologies, ", "
|
40
40
|
end
|
41
41
|
|
42
42
|
def morphology=(morphology)
|
@@ -44,7 +44,7 @@ module Riddle
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def stopwords
|
47
|
-
@stopword_files
|
47
|
+
nil_join @stopword_files, " "
|
48
48
|
end
|
49
49
|
|
50
50
|
def stopwords=(stopwords)
|
@@ -52,7 +52,7 @@ module Riddle
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def wordforms
|
55
|
-
@wordform_files
|
55
|
+
nil_join @wordform_files, " "
|
56
56
|
end
|
57
57
|
|
58
58
|
def wordforms=(wordforms)
|
@@ -60,7 +60,7 @@ module Riddle
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def exceptions
|
63
|
-
@exception_files
|
63
|
+
nil_join @exception_files, " "
|
64
64
|
end
|
65
65
|
|
66
66
|
def exceptions=(exceptions)
|
@@ -68,7 +68,7 @@ module Riddle
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def ignore_chars
|
71
|
-
@ignore_characters
|
71
|
+
nil_join @ignore_characters, ", "
|
72
72
|
end
|
73
73
|
|
74
74
|
def ignore_chars=(ignore_chars)
|
@@ -76,15 +76,15 @@ module Riddle
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def prefix_fields
|
79
|
-
@prefix_field_names
|
79
|
+
nil_join @prefix_field_names, ", "
|
80
80
|
end
|
81
81
|
|
82
82
|
def infix_fields
|
83
|
-
@infix_field_names
|
83
|
+
nil_join @infix_field_names, ", "
|
84
84
|
end
|
85
85
|
|
86
86
|
def ngram_chars
|
87
|
-
@ngram_characters
|
87
|
+
nil_join @ngram_characters, ", "
|
88
88
|
end
|
89
89
|
|
90
90
|
def ngram_chars=(ngram_chars)
|
@@ -92,7 +92,7 @@ module Riddle
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def phrase_boundary
|
95
|
-
@phrase_boundaries
|
95
|
+
nil_join @phrase_boundaries, ", "
|
96
96
|
end
|
97
97
|
|
98
98
|
def phrase_boundary=(phrase_boundary)
|
@@ -100,7 +100,7 @@ module Riddle
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def html_remove_elements
|
103
|
-
@html_remove_element_tags
|
103
|
+
nil_join @html_remove_element_tags, ", "
|
104
104
|
end
|
105
105
|
|
106
106
|
def html_remove_elements=(html_remove_elements)
|
@@ -129,6 +129,14 @@ module Riddle
|
|
129
129
|
def nil_split(string, pattern)
|
130
130
|
(string || "").split(pattern)
|
131
131
|
end
|
132
|
+
|
133
|
+
def nil_join(array, delimiter)
|
134
|
+
if array.length == 0
|
135
|
+
nil
|
136
|
+
else
|
137
|
+
array.join(delimiter)
|
138
|
+
end
|
139
|
+
end
|
132
140
|
end
|
133
141
|
end
|
134
142
|
end
|
data/lib/riddle.rb
CHANGED
@@ -18,7 +18,7 @@ module Riddle #:nodoc:
|
|
18
18
|
Rev = 1533
|
19
19
|
# Release number to mark my own fixes, beyond feature parity with
|
20
20
|
# Sphinx itself.
|
21
|
-
Release =
|
21
|
+
Release = 3
|
22
22
|
|
23
23
|
String = [Major, Minor, Tiny].join('.')
|
24
24
|
GemVersion = [Major, Minor, Tiny, Rev, Release].join('.')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freelancing-god-riddle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.8.1533.
|
4
|
+
version: 0.9.8.1533.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-12-04 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|