grntest 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79fb44c3eebc5c70ba4d7a0c6821d653d77b6bb7c20791a86cd973bbf90fa970
|
4
|
+
data.tar.gz: 95ed0edd5d3f25e2f9d450edda7f0f58ad16354ab66c8163d9cfdc353610db6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdfaf0c54e4dd784827fbb3f2ff34acfe1dce69ef168260ede87f6d570dd190490199aec105fc2a1357c6cd46a1b4da80c993373402044d0655dac821680921e
|
7
|
+
data.tar.gz: 583b24ab3901660faa706728df925c592dfaf8746df548f4bfee78a710b1bf10951bad1087b3df951ca8d8e8baecd5a00852b2cebd2eccd5fbf0f22f962e1332
|
data/doc/text/news.md
CHANGED
@@ -45,7 +45,7 @@ module Grntest
|
|
45
45
|
@custom_important_log_levels = []
|
46
46
|
@ignore_log_patterns = {}
|
47
47
|
@sleep_after_command = nil
|
48
|
-
@
|
48
|
+
@raw_status_response = nil
|
49
49
|
@features = nil
|
50
50
|
end
|
51
51
|
|
@@ -345,9 +345,27 @@ module Grntest
|
|
345
345
|
end
|
346
346
|
end
|
347
347
|
|
348
|
+
def status_response
|
349
|
+
@status_response ||= JSON.parse(@raw_status_response)[1]
|
350
|
+
end
|
351
|
+
|
352
|
+
def apache_arrow_version
|
353
|
+
(status_response["apache_arrow"] || {})["version"]
|
354
|
+
end
|
355
|
+
|
348
356
|
def execute_directive_require_apache_arrow(line, content, options)
|
357
|
+
version, = options
|
358
|
+
_apache_arrow_version = apache_arrow_version
|
359
|
+
if _apache_arrow_version.nil?
|
360
|
+
omit("require Apache Arrow support in Groonga")
|
361
|
+
end
|
349
362
|
unless defined?(::Arrow)
|
350
|
-
omit("require
|
363
|
+
omit("require Red Arrow in grntest")
|
364
|
+
end
|
365
|
+
return if version.nil?
|
366
|
+
if Gem::Version.new(version) < Gem::Version.new(_apache_arrow_version)
|
367
|
+
omit("require Apache Arrow #{version} in Groonga: " +
|
368
|
+
_apache_arrow_version)
|
351
369
|
end
|
352
370
|
end
|
353
371
|
|
@@ -402,7 +420,7 @@ module Grntest
|
|
402
420
|
def features
|
403
421
|
return @features if @features
|
404
422
|
@features = []
|
405
|
-
|
423
|
+
status_response["features"].each do |name, available|
|
406
424
|
@features << name if available
|
407
425
|
end
|
408
426
|
@features.sort!
|
data/lib/grntest/version.rb
CHANGED