cobench 0.0.27 → 0.0.28

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: 47f3f37318c2232bf63618919be537f4e62376cde764593380403037e3d9f524
4
- data.tar.gz: 62c34a1ee6af530921f33ecb1b7c66c88526b9fca3153ab9b76c0e91277aa0ad
3
+ metadata.gz: 59a9eeca7f5fcb377fcd74fd3d61dba8e2e3a8f9d28b456a5395ae6bab04781c
4
+ data.tar.gz: 4a1437f4564485167e80c14e66bbfe525529a8ee19738e6ebbea65d614de3de1
5
5
  SHA512:
6
- metadata.gz: cb1947fc4eca6c72ca3ee7b74aa67d179511e6e331214946ed8b1d8091939f0d4958bb36657c0128d581b25ab9651e3140fd96ec63e8bf2866765022445a3887
7
- data.tar.gz: 429128c6e5c1110ee0b5af6b8811e24a1984f03a435abf7ff3b0f25d7d8123ece3772afe5e39ea703a6ea94a7888ef62aa32181859b494224c7991511503e535
6
+ metadata.gz: 9a9050e83ed1b3dfb922f8664c1623b3aa6b4cb61bc659dfb49372023072cf6ec2d3d944a6a23990278afb8c87d551415b003277a2bb0c5e2846c1bfab6cc91b
7
+ data.tar.gz: d0298ae4bd39ac293a2dfd91d745546143778211c93e56f28f1bc8975661d78d3fd68d10a8e981eca8bc80bb50c7747d2f60caf73e1855c311f348bd0b649c5a
data/assets/index.xsl CHANGED
@@ -23,9 +23,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
23
  SOFTWARE.
24
24
  -->
25
25
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
26
- <xsl:output encoding="UTF-8" method="html"/>
26
+ <xsl:output encoding="UTF-8" method="xml"/>
27
27
  <xsl:param name="version"/>
28
- <xsl:key name="titles" match="/cobench/titles/title" use="."/>
29
28
  <xsl:template match="/">
30
29
  <html>
31
30
  <head>
@@ -47,9 +46,10 @@ SOFTWARE.
47
46
  td, th { font-family: monospace; font-size: 18px; }
48
47
  .num { text-align: right; }
49
48
  .left { border-bottom: 0; }
49
+ section { width: 100%; }
50
50
  header { text-align: center; }
51
51
  footer { text-align: center; font-size: 0.8em; line-height: 1.2em; color: gray; }
52
- article { width: 60em; border: 0; }
52
+ article { border: 0; }
53
53
  td.avatar { vertical-align: middle; text-align: center; }
54
54
  td.avatar img { width: 1.5em; height: 1.5em; vertical-align: middle; }
55
55
  .subtitle { font-size: 0.8em; line-height: 1em; color: gray; }
@@ -67,6 +67,14 @@ SOFTWARE.
67
67
  </header>
68
68
  <article>
69
69
  <table id="metrics">
70
+ <colgroup>
71
+ <col/>
72
+ <col/>
73
+ <xsl:for-each select="cobench/titles/title">
74
+ <xsl:sort select="."/>
75
+ <col/>
76
+ </xsl:for-each>
77
+ </colgroup>
70
78
  <thead>
71
79
  <xsl:apply-templates select="cobench/titles"/>
72
80
  </thead>
@@ -174,7 +182,7 @@ SOFTWARE.
174
182
  <xsl:template match="cobench/titles">
175
183
  <tr>
176
184
  <th colspan="2"/>
177
- <xsl:for-each select="title[generate-id() = generate-id(key('titles', .)[1])]">
185
+ <xsl:for-each select="title">
178
186
  <xsl:sort select="."/>
179
187
  <th class="sorter num">
180
188
  <xsl:value-of select="."/>
@@ -186,7 +194,7 @@ SOFTWARE.
186
194
  <xsl:variable name="totals" select="."/>
187
195
  <tr>
188
196
  <td colspan="2" style="text-align:right">Total:</td>
189
- <xsl:for-each select="/cobench/titles/title[generate-id() = generate-id(key('titles', .)[1])]">
197
+ <xsl:for-each select="/cobench/titles/title">
190
198
  <xsl:sort select="."/>
191
199
  <xsl:variable name="t" select="."/>
192
200
  <td class="num">
@@ -199,7 +207,7 @@ SOFTWARE.
199
207
  <xsl:variable name="averages" select="."/>
200
208
  <tr>
201
209
  <td colspan="2" style="text-align:right">Average:</td>
202
- <xsl:for-each select="/cobench/titles/title[generate-id() = generate-id(key('titles', .)[1])]">
210
+ <xsl:for-each select="/cobench/titles/title">
203
211
  <xsl:sort select="."/>
204
212
  <xsl:variable name="t" select="."/>
205
213
  <td class="num">
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2022 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Cobench
26
- VERSION = '0.0.27'.freeze
26
+ VERSION = '0.0.28'.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.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko