judges 0.15.0 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3b4e109e3fb09f713f5dfe913b691ca90b21285ba186b9c16c657fc532fa9ee
4
- data.tar.gz: 9de6387ba6af61151bcfca04fc38034e43bf8827d461b62b58655ee9777249d8
3
+ metadata.gz: a874d919f0a1ccd016cade03361d8840151fc6b827973ab67fa4267629f67f4a
4
+ data.tar.gz: 5820bf2d47a714df590c3ded140b5598871cfb60bcb6d534cda51ff1ba2245bc
5
5
  SHA512:
6
- metadata.gz: 5769edc93a28edee43db1e454bc801c7c0183f57c1573e0d2105af647de6ebf390a5f01fe90f6315c168a9b52618b1a6789c86e49de510991c56554d08061390
7
- data.tar.gz: d12e411f0a5472774ccff209138174d8e2a9d4dc536a9afa9ac8bd2de1dc6a32cc11324c75d99dd93e02b34ee2e49c1f8a2a5d47a877f25c87a15bf1af7ab14c
6
+ metadata.gz: d3903e6ebb252ea9ac85422838aaaa27a0f05d69f02635c3c8ba73b063bebbdcb7190fe93d149417bd088100d762ce02a64261c30571ab9d95211d21efd8e823
7
+ data.tar.gz: e58f47c9e8987b9484faf45c15660932dd993d060fb5e69a4c0e4be6c28ce825147eef1a73f538a0a1c7ca8647c4fdd5f3ce7021eea47879597cd5d3dcc3d676
data/Gemfile.lock CHANGED
@@ -89,7 +89,7 @@ GEM
89
89
  erubi (1.13.0)
90
90
  ethon (0.16.0)
91
91
  ffi (>= 1.15.0)
92
- factbase (0.0.57)
92
+ factbase (0.0.60)
93
93
  backtrace (~> 0.3)
94
94
  decoor (~> 0.0)
95
95
  json (~> 2.7)
@@ -149,7 +149,7 @@ GEM
149
149
  stringio
150
150
  public_suffix (6.0.0)
151
151
  racc (1.8.0)
152
- rack (3.1.4)
152
+ rack (3.1.6)
153
153
  rack-session (2.0.0)
154
154
  rack (>= 3.0.0)
155
155
  rack-test (2.1.0)
data/assets/index.xsl CHANGED
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
- MIT License
3
+ (The MIT License)
4
4
 
5
- Copyright (c) 2024 Zerocracy
5
+ Copyright (c) 2024 Yegor Bugayenko
6
6
 
7
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
8
+ of this software and associated documentation files (the 'Software'), to deal
9
9
  in the Software without restriction, including without limitation the rights
10
10
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
11
  copies of the Software, and to permit persons to whom the Software is
@@ -14,7 +14,7 @@ furnished to do so, subject to the following conditions:
14
14
  The above copyright notice and this permission notice shall be included in all
15
15
  copies or substantial portions of the Software.
16
16
 
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
18
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
19
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
20
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@@ -24,7 +24,7 @@ SOFTWARE.
24
24
  -->
25
25
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
26
26
  <xsl:output method="xml" doctype-system="about:legacy-compat" encoding="UTF-8" indent="yes"/>
27
- <xsl:param name="name"/>
27
+ <xsl:param name="title"/>
28
28
  <xsl:param name="date"/>
29
29
  <xsl:param name="version"/>
30
30
  <xsl:param name="columns"/>
@@ -40,7 +40,7 @@ SOFTWARE.
40
40
  <head>
41
41
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
42
42
  <title>
43
- <xsl:value-of select="$name"/>
43
+ <xsl:value-of select="$title"/>
44
44
  </title>
45
45
  <meta charset="UTF-8"/>
46
46
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
@@ -169,12 +169,20 @@ SOFTWARE.
169
169
  <xsl:otherwise>
170
170
  <td>
171
171
  <xsl:for-each select="$f/*">
172
+ <xsl:text> </xsl:text>
173
+ <xsl:variable name="visible" select="string-length(substring-before(concat(',', $hidden, ','), concat(name(), ','))) = 0"/>
172
174
  <xsl:if test="string-length(substring-before(concat(',', $columns, ','), concat(name(), ','))) = 0">
173
- <xsl:if test="string-length(substring-before(concat(',', $hidden, ','), concat(name(), ','))) = 0">
174
- <xsl:if test="position() &gt; 1">
175
- <xsl:text>, </xsl:text>
176
- </xsl:if>
177
- <xsl:value-of select="name()"/>
175
+ <xsl:choose>
176
+ <xsl:when test="$visible">
177
+ <xsl:value-of select="name()"/>
178
+ </xsl:when>
179
+ <xsl:otherwise>
180
+ <span style="color:gray;">
181
+ <xsl:value-of select="name()"/>
182
+ </span>
183
+ </xsl:otherwise>
184
+ </xsl:choose>
185
+ <xsl:if test="$visible">
178
186
  <xsl:text>:</xsl:text>
179
187
  <xsl:call-template name="value">
180
188
  <xsl:with-param name="v" select="."/>
@@ -215,6 +223,9 @@ SOFTWARE.
215
223
  <xsl:when test="$v/@t = 'I'">
216
224
  <xsl:text>#212F3C</xsl:text>
217
225
  </xsl:when>
226
+ <xsl:when test="$v/@t = 'F'">
227
+ <xsl:text>#E74C3C</xsl:text>
228
+ </xsl:when>
218
229
  </xsl:choose>
219
230
  </xsl:attribute>
220
231
  <xsl:value-of select="$v"/>
data/judges.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
27
27
  s.required_ruby_version = '>=3.2'
28
28
  s.name = 'judges'
29
- s.version = '0.15.0'
29
+ s.version = '0.15.2'
30
30
  s.license = 'MIT'
31
31
  s.summary = 'Command-Line Tool for a Factbase'
32
32
  s.description =
@@ -102,7 +102,7 @@ class Judges::Update
102
102
  elapsed(@loog) do
103
103
  c = one_judge(fb, p, global, options)
104
104
  churn += c
105
- throw :"👍 The judge #{p.name} modified #{c} facts"
105
+ throw :"👍 The judge #{p.name} modified #{c} facts out of #{fb.size}"
106
106
  end
107
107
  rescue StandardError, SyntaxError => e
108
108
  @loog.warn(Backtrace.new(e))
data/lib/judges.rb CHANGED
@@ -25,5 +25,5 @@
25
25
  # Copyright:: Copyright (c) 2024 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Judges
28
- VERSION = '0.15.0'
28
+ VERSION = '0.15.2'
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judges
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace