cobench 0.0.26 → 0.0.27

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: 6fbe7145f065a7c65776e187ebe08795e6bf43d96461b47da21bfc33cf241f23
4
- data.tar.gz: 4ded5cf401303b0107f08ad06e839fdf17303c4de7aa8c7a35607a8d361d2a4b
3
+ metadata.gz: 47f3f37318c2232bf63618919be537f4e62376cde764593380403037e3d9f524
4
+ data.tar.gz: 62c34a1ee6af530921f33ecb1b7c66c88526b9fca3153ab9b76c0e91277aa0ad
5
5
  SHA512:
6
- metadata.gz: 230046c4cd9da1cd3efec5720bbc7c8da1829e6eef8c8cf3e54d031f124bec8ae8c9393bacfc52a5c86dccc1dfe9cb7061950eb61d392c96f4191cc512e04552
7
- data.tar.gz: 338a370eaaecd73ae8ed886bec1ef9971924012be9e6d87c99881ec85e1954fdd6759bb6625684c38cdf5bb21b2558a4d344e526b3f1e11fdf9344f312ea64a9
6
+ metadata.gz: cb1947fc4eca6c72ca3ee7b74aa67d179511e6e331214946ed8b1d8091939f0d4958bb36657c0128d581b25ab9651e3140fd96ec63e8bf2866765022445a3887
7
+ data.tar.gz: 429128c6e5c1110ee0b5af6b8811e24a1984f03a435abf7ff3b0f25d7d8123ece3772afe5e39ea703a6ea94a7888ef62aa32181859b494224c7991511503e535
data/assets/index.xsl CHANGED
@@ -173,8 +173,7 @@ SOFTWARE.
173
173
  </xsl:template>
174
174
  <xsl:template match="cobench/titles">
175
175
  <tr>
176
- <th/>
177
- <th/>
176
+ <th colspan="2"/>
178
177
  <xsl:for-each select="title[generate-id() = generate-id(key('titles', .)[1])]">
179
178
  <xsl:sort select="."/>
180
179
  <th class="sorter num">
data/bin/cobench CHANGED
@@ -195,7 +195,7 @@ def build_xml(opts, loog)
195
195
  next if t == 'Score'
196
196
  next if averages.key?(t)
197
197
  xml.w(id: t) do
198
- xml.text(data.values.map { |ms| ms[t][:total] }.inject(&:+))
198
+ xml.text(data.values.map { |ms| actual(ms[t]) }.inject(&:+))
199
199
  end
200
200
  end
201
201
  end
@@ -203,7 +203,7 @@ def build_xml(opts, loog)
203
203
  data.map { |_, ms| ms.keys }.flatten.uniq.each do |t|
204
204
  next if t == 'Score'
205
205
  xml.w(id: t) do
206
- vals = data.values.map { |ms| ms[t][:total] }.select { |v| v > 0 }
206
+ vals = data.values.map { |ms| actual(ms[t]) }.select { |v| v > 0 }
207
207
  xml.text(div(vals.inject(&:+), vals.count))
208
208
  end
209
209
  end
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2022 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Cobench
26
- VERSION = '0.0.26'.freeze
26
+ VERSION = '0.0.27'.freeze
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobench
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko