judges 0.14.0 → 0.15.0

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: 4e0f862acb1777b529b8c2547dc093020b1a345a5346677c42da550ebc0a26f3
4
- data.tar.gz: 112b3b28257d620993031f4a647a9b2665e425249fd4de92b05100e304aec20a
3
+ metadata.gz: e3b4e109e3fb09f713f5dfe913b691ca90b21285ba186b9c16c657fc532fa9ee
4
+ data.tar.gz: 9de6387ba6af61151bcfca04fc38034e43bf8827d461b62b58655ee9777249d8
5
5
  SHA512:
6
- metadata.gz: 427f79f2e3445a9bbb7ca02384ad3676f0a663cd428430ecbcf8f79f7d03496513c513960585a7a4d303a3cab756aca307d99a0209a256fb7baeb194bbd428ef
7
- data.tar.gz: 8c38481a417786e9ddc516fa7b323433d481d827607bae63aedb47381ccb37ea9633fd5241002dd7b32abac4e6319b9fb808cee5c44f09b1a452682cf4e287d4
6
+ metadata.gz: 5769edc93a28edee43db1e454bc801c7c0183f57c1573e0d2105af647de6ebf390a5f01fe90f6315c168a9b52618b1a6789c86e49de510991c56554d08061390
7
+ data.tar.gz: d12e411f0a5472774ccff209138174d8e2a9d4dc536a9afa9ac8bd2de1dc6a32cc11324c75d99dd93e02b34ee2e49c1f8a2a5d47a877f25c87a15bf1af7ab14c
data/assets/index.xsl CHANGED
@@ -28,6 +28,7 @@ SOFTWARE.
28
28
  <xsl:param name="date"/>
29
29
  <xsl:param name="version"/>
30
30
  <xsl:param name="columns"/>
31
+ <xsl:param name="hidden"/>
31
32
  <xsl:template name="javascript">
32
33
  <xsl:param name="url"/>
33
34
  <script type="text/javascript" src="{$url}">
@@ -169,14 +170,16 @@ SOFTWARE.
169
170
  <td>
170
171
  <xsl:for-each select="$f/*">
171
172
  <xsl:if test="string-length(substring-before(concat(',', $columns, ','), concat(name(), ','))) = 0">
172
- <xsl:if test="position() &gt; 1">
173
- <xsl:text>, </xsl:text>
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()"/>
178
+ <xsl:text>:</xsl:text>
179
+ <xsl:call-template name="value">
180
+ <xsl:with-param name="v" select="."/>
181
+ </xsl:call-template>
174
182
  </xsl:if>
175
- <xsl:value-of select="name()"/>
176
- <xsl:text>:</xsl:text>
177
- <xsl:call-template name="value">
178
- <xsl:with-param name="v" select="."/>
179
- </xsl:call-template>
180
183
  </xsl:if>
181
184
  </xsl:for-each>
182
185
  </td>
data/bin/judges CHANGED
@@ -119,6 +119,8 @@ class App
119
119
  c.flag([:query], default_value: '(always)')
120
120
  c.desc 'Comma separated list of columns to show in HTML output (no spaces!)'
121
121
  c.flag([:columns], default_value: 'when,what')
122
+ c.desc 'Comma separated list of hidden columns, not to be rendered (no spaces!)'
123
+ c.flag([:hidden], default_value: '_id,_time,_version')
122
124
  c.desc 'Print even if target file already exists and is older than the factbase'
123
125
  c.switch([:force], default_value: false)
124
126
  c.action do |global, options, args|
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.14.0'
29
+ s.version = '0.15.0'
30
30
  s.license = 'MIT'
31
31
  s.summary = 'Command-Line Tool for a Factbase'
32
32
  s.description =
@@ -90,7 +90,8 @@ class Judges::Print
90
90
  Nokogiri::XSLT.quote_params(
91
91
  'name' => 'print',
92
92
  'date' => Time.now.utc.iso8601,
93
- 'columns' => opts['columns'] || 'when,what',
93
+ 'columns' => opts['columns'] || 'when,what,who',
94
+ 'hidden' => opts['hidden'] || '_id,_version,_time',
94
95
  'version' => Judges::VERSION
95
96
  )
96
97
  )
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.14.0'
28
+ VERSION = '0.15.0'
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judges
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko