groonga-query-log 1.1.3 → 1.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f007a575881ee98da8e25e382f5b9f030af90a3
4
- data.tar.gz: c5d542d6760b07717c6b5ae95cc93ffd2db8be31
3
+ metadata.gz: 5f5ad917944ca7bd674f39986f174b4654fd66ec
4
+ data.tar.gz: 47e5fd5e81acda2018b453db2544653564d858b7
5
5
  SHA512:
6
- metadata.gz: 9a9a5580509be7a9814f9f4ed0cb5a9f220b4cb34d3691f11831f7a1bfdc868652125ba00f15e28b43e9812518bfb5ff7df3986e5b95c865734457bb03f1da01
7
- data.tar.gz: 08fa8ead3377a33288c13f1ed31b4a4837325ebbb2fe3033b0edc810c5fec3c6b60fa92392498066cd26652bae2b122a81bed30e49053760e4896f892238afee
6
+ metadata.gz: da229bc1ca6774432310b71320f295735ad0e755cb66e42fde36876465ad61989a2593f3f796df65d00dfea6551991fb49c0c847e78eca3376ed241d8c3913d8
7
+ data.tar.gz: a1e34feb150710f80a0f9a49082285d195fb18948a148b76f8a25368ecddd0617a5c3c767fecf6adde9c7fb8823a046c43dc96efe43843e3c2ae160702817928
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 1.1.4: 2015-06-11
4
+
5
+ ### Improvements
6
+
7
+ * groonga-query-log-run-regression-test: Stopped to output query log
8
+ by default. Use `--output-query-log` option to output query log.
9
+
3
10
  ## 1.1.3: 2015-05-26
4
11
 
5
12
  ### Improvements
@@ -42,6 +42,7 @@ module Groonga
42
42
  @load_data = true
43
43
  @run_queries = true
44
44
  @skip_finished_queries = false
45
+ @output_query_log = false
45
46
  end
46
47
 
47
48
  def run(command_line)
@@ -119,6 +120,10 @@ module Groonga
119
120
  "Don't run finished query logs.") do
120
121
  @skip_finished_queries = true
121
122
  end
123
+ parser.on("--output-query-log",
124
+ "Output query log in verified target Groonga servers") do
125
+ @output_query_log = true
126
+ end
122
127
 
123
128
  parser
124
129
  end
@@ -136,6 +141,7 @@ module Groonga
136
141
  :run_queries => @run_queries,
137
142
  :recreate_database => @recreate_database,
138
143
  :skip_finished_queries => @skip_finished_queries,
144
+ :output_query_log => @output_query_log,
139
145
  }
140
146
  directory_options.merge(options)
141
147
  end
@@ -175,14 +181,18 @@ module Groonga
175
181
  ensure_database
176
182
  return unless @options[:run_queries]
177
183
 
178
- @pid = spawn(@groonga,
179
- "--bind-address", @host,
180
- "--port", @port.to_s,
181
- "--log-path", log_path.to_s,
182
- "--query-log-path", query_log_path.to_s,
183
- "--protocol", "http",
184
- "-s",
185
- @database_path.to_s)
184
+ arguments = [
185
+ "--bind-address", @host,
186
+ "--port", @port.to_s,
187
+ "--protocol", "http",
188
+ "--log-path", log_path.to_s,
189
+ ]
190
+ if @options[:output_query_log]
191
+ arguments.concat(["--query-log-path", query_log_path.to_s])
192
+ end
193
+ arguments << "-s"
194
+ arguments << @database_path.to_s
195
+ @pid = spawn(@groonga, *arguments)
186
196
 
187
197
  n_retries = 10
188
198
  begin
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2012-2015 Kouhei Sutou <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Groonga
20
20
  module QueryLog
21
- VERSION = "1.1.3"
21
+ VERSION = "1.1.4"
22
22
  end
23
23
  end
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.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: groonga-command-parser