groonga-query-log 1.3.2 → 1.3.3
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: b787d986aa85a124beec78ff3b1da09915dacfb9012c1619120d6a1ff3526603
|
4
|
+
data.tar.gz: 13f736d7fd43e6fa1f87ab5de39600ed71b17baf4a53bfa21e9f4ecca74753a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e5fdcda766d04c1b57b391f0ebec4d86f986e441869aa884c6378494198dc60bdc731ef04d07199b5d0be9e41ec48b07b61b78c2657b2eac3d10ca8cecbfd5a
|
7
|
+
data.tar.gz: cd6c5e20f7d73f8ef02ccc75b384178dbd3614179f797a19bad266ed16c8c7a6f0c792a46d899371d1bca7b382751d5b571e0af22d3244444d43be49b44ca986
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.3.3: 2018-07-05
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* `groonga-query-log-run-regression-test`:
|
8
|
+
|
9
|
+
* Added support for tar.gz.
|
10
|
+
|
11
|
+
* `groonga-query-log-verify-server`:
|
12
|
+
|
13
|
+
* Added support for tar.gz.
|
14
|
+
|
3
15
|
## 1.3.2: 2018-07-03
|
4
16
|
|
5
17
|
### Improvements
|
@@ -474,11 +474,11 @@ module GroongaQueryLog
|
|
474
474
|
end
|
475
475
|
|
476
476
|
def query_log_paths
|
477
|
-
Pathname.glob("#{@input_directory}/query-logs/**/*.log").sort
|
477
|
+
Pathname.glob("#{@input_directory}/query-logs/**/*.{log,tar.gz}").sort
|
478
478
|
end
|
479
479
|
|
480
480
|
def test_log_path(query_log_path)
|
481
|
-
@working_directory + "results" + query_log_path.basename
|
481
|
+
@working_directory + "results" + "#{query_log_path.basename}.log"
|
482
482
|
end
|
483
483
|
|
484
484
|
def use_persistent_cache?
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
17
|
require "optparse"
|
18
|
+
require "rubygems/package"
|
18
19
|
|
19
20
|
require "groonga-query-log"
|
20
21
|
|
@@ -33,9 +34,18 @@ module GroongaQueryLog
|
|
33
34
|
same = verifier.verify($stdin, &callback)
|
34
35
|
else
|
35
36
|
input_paths.each do |input_path|
|
36
|
-
|
37
|
-
|
37
|
+
case input_path
|
38
|
+
when /\.tar\.gz\z/
|
39
|
+
unless verify_tar_gz(verifier, input_path)
|
38
40
|
same = false
|
41
|
+
return false if @options.stop_on_failure?
|
42
|
+
end
|
43
|
+
else
|
44
|
+
File.open(input_path) do |input|
|
45
|
+
unless verifier.verify(input, &callback)
|
46
|
+
same = false
|
47
|
+
return false if @options.stop_on_failure?
|
48
|
+
end
|
39
49
|
end
|
40
50
|
end
|
41
51
|
end
|
@@ -44,6 +54,22 @@ module GroongaQueryLog
|
|
44
54
|
end
|
45
55
|
|
46
56
|
private
|
57
|
+
def verify_tar_gz(verifier, tar_gz_path, &callback)
|
58
|
+
same = true
|
59
|
+
Zlib::GzipReader.open(tar_gz_path) do |gzip|
|
60
|
+
Gem::Package::TarReader.new(gzip) do |tar|
|
61
|
+
tar.each do |entry|
|
62
|
+
next unless entry.file?
|
63
|
+
unless verifier.verify(StringIO.new(entry.read), &callback)
|
64
|
+
same = false
|
65
|
+
return false if @options.stop_on_failure?
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
same
|
71
|
+
end
|
72
|
+
|
47
73
|
def create_parser
|
48
74
|
parser = OptionParser.new
|
49
75
|
parser.version = VERSION
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groonga-query-log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: groonga-command-parser
|
@@ -313,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
313
313
|
version: '0'
|
314
314
|
requirements: []
|
315
315
|
rubyforge_project:
|
316
|
-
rubygems_version:
|
316
|
+
rubygems_version: 3.0.0.beta1
|
317
317
|
signing_key:
|
318
318
|
specification_version: 4
|
319
319
|
summary: Groonga-query-log is a collection of library and tools to process [Groonga](http://groonga.org/)'s
|