groonga-query-log 1.1.2 → 1.1.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
  SHA1:
3
- metadata.gz: eb5671eabd420c831e66da0a0ecb8c76788e6b7a
4
- data.tar.gz: 635098f7db2bb18cea3a3f5626c85ef5a924c643
3
+ metadata.gz: 9f007a575881ee98da8e25e382f5b9f030af90a3
4
+ data.tar.gz: c5d542d6760b07717c6b5ae95cc93ffd2db8be31
5
5
  SHA512:
6
- metadata.gz: fb4900d64685c1d444756c1fcc10aa02300ae5c198dd8d8998c979158e06d31be0b45c48da74b6152a38408a78bd2ffad1fa961fd70fe94952c30b02049abb1a
7
- data.tar.gz: 27d9c1647ce24ec881e51fbf774dab77f9fd718cb8c7e81f9d1c017a4e6332b9fbff7884266a4efdfa38624376a7955635ea1047b9d617bc4ad413853cdb40a9
6
+ metadata.gz: 9a9a5580509be7a9814f9f4ed0cb5a9f220b4cb34d3691f11831f7a1bfdc868652125ba00f15e28b43e9812518bfb5ff7df3986e5b95c865734457bb03f1da01
7
+ data.tar.gz: 08fa8ead3377a33288c13f1ed31b4a4837325ebbb2fe3033b0edc810c5fec3c6b60fa92392498066cd26652bae2b122a81bed30e49053760e4896f892238afee
data/doc/text/news.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # News
2
2
 
3
+ ## 1.1.3: 2015-05-26
4
+
5
+ ### Improvements
6
+
7
+ * groonga-query-log-run-regression-test: Ignored no command request
8
+ such as `/`.
9
+
10
+ ### Fixes
11
+
12
+ * groonga-query-log-analyzer: Fixed a bug that `--no-color` option
13
+ is ignored. [Reported by Gurunavi, Inc.]
14
+ * groonga-query-log-analyzer: Fixed a bug that options aren't
15
+ applied when `--stream` is given.
16
+
17
+ ### Thanks
18
+
19
+ * Gurunavi, Inc.
20
+
3
21
  ## 1.1.2: 2014-11-20
4
22
 
5
23
  ### Fixes
@@ -69,7 +69,9 @@ module Groonga
69
69
  statistics = SizedStatistics.new
70
70
  statistics.apply_options(@options)
71
71
  if stream
72
- streamer = Streamer.new(create_reporter(statistics))
72
+ reporter = create_reporter(statistics)
73
+ reporter.apply_options(@options)
74
+ streamer = Streamer.new(reporter)
73
75
  streamer.start
74
76
  process_statistic = lambda do |statistic|
75
77
  streamer << statistic
@@ -223,17 +225,6 @@ module Groonga
223
225
  end
224
226
  end
225
227
 
226
- def create_stream_reporter
227
- case @options[:reporter]
228
- when "json"
229
- Groonga::QueryLog::StreamJSONQueryLogReporter.new
230
- when "html"
231
- raise UnsupportedReporter, "HTML reporter doesn't support --stream."
232
- else
233
- Groonga::QueryLog::StreamConsoleQueryLogReporter.new
234
- end
235
- end
236
-
237
228
  def parse(log_paths, &process_statistic)
238
229
  parser = Groonga::QueryLog::Parser.new(@options)
239
230
  if log_paths.empty?
@@ -137,7 +137,7 @@ module Groonga
137
137
 
138
138
  def apply_options(options)
139
139
  super
140
- @color = options[:color] || @color
140
+ @color = options[:color] unless options[:color].nil?
141
141
  end
142
142
 
143
143
  def report_statistics
@@ -160,6 +160,8 @@ module Groonga
160
160
  end
161
161
 
162
162
  def target_command_name?(name)
163
+ return false if name.nil?
164
+
163
165
  @target_command_names.any? do |name_pattern|
164
166
  flags = 0
165
167
  flags |= File::FNM_EXTGLOB if File.const_defined?(:FNM_EXTGLOB)
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Groonga
20
20
  module QueryLog
21
- VERSION = "1.1.2"
21
+ VERSION = "1.1.3"
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.2
4
+ version: 1.1.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: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: groonga-command-parser