judges 0.14.0 → 0.15.0
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 +10 -7
- data/bin/judges +2 -0
- data/judges.gemspec +1 -1
- data/lib/judges/commands/print.rb +2 -1
- data/lib/judges.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: e3b4e109e3fb09f713f5dfe913b691ca90b21285ba186b9c16c657fc532fa9ee
|
4
|
+
data.tar.gz: 9de6387ba6af61151bcfca04fc38034e43bf8827d461b62b58655ee9777249d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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="
|
173
|
-
<xsl:
|
173
|
+
<xsl:if test="string-length(substring-before(concat(',', $hidden, ','), concat(name(), ','))) = 0">
|
174
|
+
<xsl:if test="position() > 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.
|
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