cobench 0.0.6 → 0.0.7

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: c86ef1d63046d93343152ea0cebea85bd7ff9bd985b2147d8a7320d0a6485980
4
- data.tar.gz: ef148324cf9faddaa324ecca18629b030f0a29a2c40224005fb5fadd2e49bcca
3
+ metadata.gz: f373391e22ba904b48c65b3bbfcf7ca8ba7c8449809f3f61b94d21bc2d03ef56
4
+ data.tar.gz: 49fab0a0e00dfc5c1638bc2a4e1c34e3fdcf44bfe266e5bc2cd83d81f1806957
5
5
  SHA512:
6
- metadata.gz: '0229a62e2c9748230de2d0123d16cdf8a25da67f1cdefcd60648df8a15235a84f2a903de9ac1203ecfc1da7fea494105c2f067da93d35b8cb3d73d05c0d2b255'
7
- data.tar.gz: 85592eeded980ef5b7728ccf79adabe9a85e46333f4cb16b10c864cc3e8a668a3e6c09848b91d6e26e0084d4fb1374ec41188df6c7fd2916ed35d104d13316f9
6
+ metadata.gz: 17b292e42c40fcd80af4106dda44718916a639a692cf9aa178b9025a639aeebd5fae6ac91778c7860f430e42785575e7fe7e462cd118df867779f069eea0d089
7
+ data.tar.gz: ee3e364fd9fb37bac07085e2d26f3b0f5291cb9666ed07a08167e3000df841f9269605ef704affa1243fb9f310efefd3694c812501b882436f6a5d20fd6f9162
data/assets/index.xsl CHANGED
@@ -23,7 +23,7 @@ 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="xml"/>
26
+ <xsl:output encoding="UTF-8" method="html"/>
27
27
  <xsl:key name="metrics" match="/cobench/coders/coder/metrics/m" use="@id"/>
28
28
  <xsl:template match="/">
29
29
  <html>
@@ -35,15 +35,16 @@ SOFTWARE.
35
35
  <link rel="icon" href="https://raw.githubusercontent.com/yegor256/cobench/master/logo.svg" type="image/svg"/>
36
36
  <link href="https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css.min.css" rel="stylesheet"/>
37
37
  <link href="https://cdn.jsdelivr.net/gh/yegor256/drops@gh-pages/drops.min.css" rel="stylesheet"/>
38
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
39
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.3/js/jquery.tablesorter.min.js"></script>
38
+ <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"/>
39
+ <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.3/js/jquery.tablesorter.min.js"/>
40
40
  <script type="text/javascript">
41
41
  $(function() {
42
42
  $("#metrics").tablesorter();
43
43
  });
44
44
  </script>
45
45
  <style>
46
- td, th { text-align: right; font-family: monospace; font-size: 18px; }
46
+ td, th { font-family: monospace; font-size: 18px; }
47
+ .num { text-align: right; }
47
48
  .left { border-bottom: 0; }
48
49
  header { text-align: center; }
49
50
  footer { text-align: center; font-size: 0.8em; }
@@ -90,7 +91,7 @@ SOFTWARE.
90
91
  <tr>
91
92
  <th/>
92
93
  <xsl:for-each select="coder/metrics/m[generate-id() = generate-id(key('metrics', @id)[1])]">
93
- <th class="sorter">
94
+ <th class="sorter num">
94
95
  <xsl:value-of select="@id"/>
95
96
  </th>
96
97
  </xsl:for-each>
@@ -113,7 +114,7 @@ SOFTWARE.
113
114
  </tr>
114
115
  </xsl:template>
115
116
  <xsl:template match="m">
116
- <td>
117
+ <td class="num">
117
118
  <a href="{@href}">
118
119
  <xsl:value-of select="."/>
119
120
  </a>
data/bin/cobench CHANGED
@@ -101,7 +101,7 @@ begin
101
101
  require_relative f
102
102
  m = type.split('::').reduce(Module, :const_get).new(api, u, opts)
103
103
  if opts.dry?
104
- v, t = [42, 'https://github.com/']
104
+ v, t = [Random.new.rand(100), 'https://github.com/']
105
105
  else
106
106
  v, t = m.take(loog)
107
107
  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.6'.freeze
26
+ VERSION = '0.0.7'.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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko