grntest 1.6.7 → 1.6.8

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: 12f28c481c54a3e79b70ea062f4a76cbe821be0fa01b1f2a8f1fd29a2b79f908
4
- data.tar.gz: 249e018b5bc5b04c5feee893cc40f63eef866385a9939f163d4609d0034c7a0f
3
+ metadata.gz: f4c390d442cedfaff26e03d35e62f35c2958146f7bea7a8a2e6257004fc38338
4
+ data.tar.gz: 24bbae078beddc9704797ee722e34480d1724fa0f9a494007f1967fb7e0199d3
5
5
  SHA512:
6
- metadata.gz: 24448978ee6df568c410eb1a48a270d53394f95a0b260e1c231054eb5cb5c7e01f23b90497ae2a2f4883454e1ddcdafb0335b87e1faad50483578738c32083ff
7
- data.tar.gz: 901048e9ff04caa10dddb3e40a538382ba66bf8b9641e182957fd2c53e1174cfc3e21046eed1eb95f6986fcbcf5ba83d67533201d3b11bb53c8cbd0f1004be17
6
+ metadata.gz: ef8e9f5d58cde904e3673cbe778849f2ff902bf21739d6a361e4121a775faeec1ce4bd1bb0a8f3420f64c6ebcbd379db10253aa99e9a0cdcee33950e5d896fd7
7
+ data.tar.gz: 33bd84602a4c5715e8cffdbcf72ef1efb2320881fe206dba457f229a457864592b7dc8544efaeadb3bf42cd614786fbe158217cfbeedf53079618c2bffecd43a
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 1.6.8: 2024-02-05
4
+
5
+ ### Fixes
6
+
7
+ * reporter: benchmark-json: Fixed a bug that invalid JSON is
8
+ generated.
9
+
3
10
  ## 1.6.7: 2024-02-05
4
11
 
5
12
  ### Improvements
@@ -28,7 +28,7 @@ module Grntest
28
28
  def on_start(result)
29
29
  puts(<<-JSON)
30
30
  {
31
- "context": {"
31
+ "context": {
32
32
  "date": #{Time.now.iso8601.to_json},
33
33
  "host_name": #{Socket.gethostname.to_json},
34
34
  "executable": #{@tester.testee.to_json},
@@ -60,6 +60,12 @@ module Grntest
60
60
  end
61
61
 
62
62
  def on_test_failure(worker, result)
63
+ output, @output = @output, $stderr
64
+ begin
65
+ report_failure(result)
66
+ ensure
67
+ @output = output
68
+ end
63
69
  end
64
70
 
65
71
  def on_test_leak(worker, result)
@@ -83,7 +89,7 @@ module Grntest
83
89
  "real_time": #{benchmark.real_elapsed_time},
84
90
  "cpu_time": #{benchmark.cpu_elapsed_time},
85
91
  "time_unit": "s",
86
- "items_per_second": #{benchmark.items_per_second},
92
+ "items_per_second": #{benchmark.items_per_second}
87
93
  }
88
94
  JSON
89
95
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2023 Sutou Kouhei <kou@clear-code.com>
1
+ # Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
2
2
  #
3
3
  # This program is free software: you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License as published by
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grntest
17
- VERSION = "1.6.7"
17
+ VERSION = "1.6.8"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.7
4
+ version: 1.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou