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 +4 -4
- data/assets/index.xsl +7 -6
- data/bin/cobench +1 -1
- data/lib/cobench/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f373391e22ba904b48c65b3bbfcf7ca8ba7c8449809f3f61b94d21bc2d03ef56
|
4
|
+
data.tar.gz: 49fab0a0e00dfc5c1638bc2a4e1c34e3fdcf44bfe266e5bc2cd83d81f1806957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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="
|
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"
|
39
|
-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.3/js/jquery.tablesorter.min.js"
|
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 {
|
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 = [
|
104
|
+
v, t = [Random.new.rand(100), 'https://github.com/']
|
105
105
|
else
|
106
106
|
v, t = m.take(loog)
|
107
107
|
end
|
data/lib/cobench/version.rb
CHANGED