fluent-plugin-groonga 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/text/news.md +7 -0
- data/fluent-plugin-groonga.gemspec +1 -1
- data/lib/fluent/plugin/out_groonga.rb +1 -5
- data/test/output/test_type_guesser.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a74f86c55ce47a9cfe50317b340e485660cae1f4
|
4
|
+
data.tar.gz: 3ced1531e3662eeeb185cfb8bbff85b7fb171cb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 086f186331471cdda0b652e36e4c4b8d7344d1f17413bfcc6ec4430c6a1ba097c863a14667f0ae9fc230f17fe265dc6165fabf4a45cf7e9f76f11b9d0aea37ed
|
7
|
+
data.tar.gz: 2992195c8cbae5bfd07167f39bf46af6f686ce82ee153826ea710cb0b148d17155e3562a5e35b2c60f9f4436988945df7b62a2a3f0b125aacf1bb8ddbd7b951f
|
data/doc/text/news.md
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
Gem::Specification.new do |spec|
|
19
19
|
spec.name = "fluent-plugin-groonga"
|
20
|
-
spec.version = "1.0.
|
20
|
+
spec.version = "1.0.7"
|
21
21
|
spec.authors = ["Kouhei Sutou"]
|
22
22
|
spec.email = ["kou@clear-code.com"]
|
23
23
|
spec.summary = "Fluentd plugin to store data into Groonga and implement Groonga replication system."
|
@@ -157,10 +157,6 @@ module Fluent
|
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
160
|
-
def use_n_gram_tokenizer?
|
161
|
-
/\AToken(?:Uni|Bi|Tri)gram/ === default_tokenizer.to_s
|
162
|
-
end
|
163
|
-
|
164
160
|
def have_difference?(table)
|
165
161
|
return true if table.name != name
|
166
162
|
|
@@ -233,7 +229,7 @@ module Fluent
|
|
233
229
|
|
234
230
|
def flags
|
235
231
|
_flags = ["COLUMN_INDEX"]
|
236
|
-
_flags << "WITH_POSITION" if @table.
|
232
|
+
_flags << "WITH_POSITION" if @table.default_tokenizer
|
237
233
|
_flags << "WITH_SECTION" if source_columns.size >= 2
|
238
234
|
_flags
|
239
235
|
end
|
@@ -127,6 +127,10 @@ class OutputTypeGuesserTest < Test::Unit::TestCase
|
|
127
127
|
message = "X" * (2 ** 12)
|
128
128
|
assert_equal("ShortText", guess([message]))
|
129
129
|
end
|
130
|
+
|
131
|
+
test "nil" do
|
132
|
+
assert_equal("ShortText", guess([nil]))
|
133
|
+
end
|
130
134
|
end
|
131
135
|
|
132
136
|
sub_test_case "Text" do
|