judges 0.60.4 → 0.61.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: 8713c9bc8dbf041fd7c451cfabc5cb8af4f9c9b0b0a267eec76b69b388f279a3
4
- data.tar.gz: 8354129d0ed9db6da51bb68ad194c458f9d0f18a1956e41f417bf6677da68fa6
3
+ metadata.gz: 8feeca1b99dcaffaa2d11c7b8425643c8d972ba586d8266d4a7c0da764b46036
4
+ data.tar.gz: 5914a4ef52d22c2ac94f1c7da7785d2fc0b3ca169a81eb4ff05366fac5772d46
5
5
  SHA512:
6
- metadata.gz: 7a4ff1a0889fc324cfad12044de49a9d22c215737c5070863290c940d8e2e0de6da0e21a5fb615ffcff2d668f193e019e0282eb92730d709c251700488b2c432
7
- data.tar.gz: cae9f5c7e70893f7d60228d1a625932e0d16594894505a8b96f8f1f25d2bb1cf61838d92a7c3827750eb1a284a5239b3a96155039f831760bb74efbf956c1c3d
6
+ metadata.gz: a48145f86e5db277a112062f001a6a1c5a67156bc0deb40bc2d112320418a6738de61db37f1f50bbefe099eeadab60d8907dfdcf96001851982e75605ff7603b
7
+ data.tar.gz: c9393ad0954156d7bce84705b135b5636aec98ba488799e9fc2392a0b5c6d20cc803bd965bf49c4faf85c30e258777f128c0c12c328b40d46ac66aba42e83f8f
data/Gemfile.lock CHANGED
@@ -44,11 +44,11 @@ GEM
44
44
  typhoeus (~> 1.4)
45
45
  bigdecimal (4.1.2)
46
46
  builder (3.3.0)
47
- concurrent-ruby (1.3.6)
47
+ concurrent-ruby (1.3.7)
48
48
  crack (1.0.1)
49
49
  bigdecimal
50
50
  rexml
51
- cucumber (11.1.0)
51
+ cucumber (11.1.1)
52
52
  base64 (~> 0.2)
53
53
  builder (~> 3.2)
54
54
  cucumber-ci-environment (> 9, < 12)
@@ -86,7 +86,7 @@ GEM
86
86
  ethon (0.18.0)
87
87
  ffi (>= 1.15.0)
88
88
  logger
89
- factbase (0.19.10)
89
+ factbase (0.19.14)
90
90
  backtrace (~> 0.4)
91
91
  decoor (~> 0.1)
92
92
  ellipsized (~> 0.3)
@@ -97,7 +97,7 @@ GEM
97
97
  others (~> 0.1)
98
98
  tago (~> 0.1)
99
99
  yaml (~> 0.3)
100
- faraday (2.14.2)
100
+ faraday (2.14.3)
101
101
  faraday-net_http (>= 2.0, < 3.5)
102
102
  json
103
103
  logger
@@ -105,7 +105,7 @@ GEM
105
105
  faraday (>= 0.8)
106
106
  faraday-multipart (1.2.0)
107
107
  multipart-post (~> 2.0)
108
- faraday-net_http (3.4.3)
108
+ faraday-net_http (3.4.4)
109
109
  net-http (~> 0.5)
110
110
  faraday-retry (2.4.0)
111
111
  faraday (~> 2.0)
@@ -122,8 +122,8 @@ GEM
122
122
  ostruct
123
123
  hashdiff (1.2.1)
124
124
  iri (0.11.8)
125
- json (2.19.7)
126
- language_server-protocol (3.17.0.5)
125
+ json (2.20.0)
126
+ language_server-protocol (3.17.0.6)
127
127
  lint_roller (1.1.0)
128
128
  logger (1.7.0)
129
129
  loog (0.8.0)
@@ -147,23 +147,23 @@ GEM
147
147
  multipart-post (2.4.1)
148
148
  net-http (0.9.1)
149
149
  uri (>= 0.11.1)
150
- nokogiri (1.19.3-aarch64-linux-gnu)
150
+ nokogiri (1.19.4-aarch64-linux-gnu)
151
151
  racc (~> 1.4)
152
- nokogiri (1.19.3-aarch64-linux-musl)
152
+ nokogiri (1.19.4-aarch64-linux-musl)
153
153
  racc (~> 1.4)
154
- nokogiri (1.19.3-arm-linux-gnu)
154
+ nokogiri (1.19.4-arm-linux-gnu)
155
155
  racc (~> 1.4)
156
- nokogiri (1.19.3-arm-linux-musl)
156
+ nokogiri (1.19.4-arm-linux-musl)
157
157
  racc (~> 1.4)
158
- nokogiri (1.19.3-arm64-darwin)
158
+ nokogiri (1.19.4-arm64-darwin)
159
159
  racc (~> 1.4)
160
- nokogiri (1.19.3-x64-mingw-ucrt)
160
+ nokogiri (1.19.4-x64-mingw-ucrt)
161
161
  racc (~> 1.4)
162
- nokogiri (1.19.3-x86_64-darwin)
162
+ nokogiri (1.19.4-x86_64-darwin)
163
163
  racc (~> 1.4)
164
- nokogiri (1.19.3-x86_64-linux-gnu)
164
+ nokogiri (1.19.4-x86_64-linux-gnu)
165
165
  racc (~> 1.4)
166
- nokogiri (1.19.3-x86_64-linux-musl)
166
+ nokogiri (1.19.4-x86_64-linux-musl)
167
167
  racc (~> 1.4)
168
168
  octokit (10.0.0)
169
169
  faraday (>= 1, < 3)
@@ -180,7 +180,7 @@ GEM
180
180
  ast (~> 2.4.1)
181
181
  racc
182
182
  prism (1.9.0)
183
- psych (5.3.1)
183
+ psych (5.4.0)
184
184
  date
185
185
  stringio
186
186
  public_suffix (7.0.5)
@@ -201,7 +201,7 @@ GEM
201
201
  regexp_parser (2.12.0)
202
202
  retries (0.0.5)
203
203
  rexml (3.4.4)
204
- rubocop (1.87.0)
204
+ rubocop (1.88.1)
205
205
  json (~> 2.3)
206
206
  language_server-protocol (~> 3.17.0.2)
207
207
  lint_roller (~> 1.1.0)
@@ -212,10 +212,10 @@ GEM
212
212
  rubocop-ast (>= 1.49.0, < 2.0)
213
213
  ruby-progressbar (~> 1.7)
214
214
  unicode-display_width (>= 2.4.0, < 4.0)
215
- rubocop-ast (1.49.1)
215
+ rubocop-ast (1.50.0)
216
216
  parser (>= 3.3.7.2)
217
217
  prism (~> 1.7)
218
- rubocop-elegant (0.5.1)
218
+ rubocop-elegant (0.7.0)
219
219
  lint_roller (~> 1.1)
220
220
  rubocop (~> 1.75)
221
221
  rubocop-minitest (0.39.1)
@@ -237,7 +237,7 @@ GEM
237
237
  docile (~> 1.1)
238
238
  simplecov-html (~> 0.11)
239
239
  simplecov_json_formatter (~> 0.1)
240
- simplecov-cobertura (3.1.0)
240
+ simplecov-cobertura (3.2.0)
241
241
  rexml
242
242
  simplecov (~> 0.19)
243
243
  simplecov-html (0.13.2)
@@ -16,9 +16,9 @@ Feature: Test
16
16
  And Exit code is zero
17
17
 
18
18
  Scenario: Factbase version can be set
19
- When I run bin/judges with "--factbase 0.19.10 --verbose test --judge guess ./fixtures"
19
+ When I run bin/judges with "--factbase 0.19.14 --verbose test --judge guess ./fixtures"
20
20
  Then Exit code is zero
21
- And Stdout contains "Factbase version to be used: '0.19.10'"
21
+ And Stdout contains "Factbase version to be used: '0.19.14'"
22
22
 
23
23
  Scenario: Simple test of no judges
24
24
  Given I run bin/judges with "test --judge absent_for_sure ./fixtures"
data/judges.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to?(:required_rubygems_version=)
10
10
  s.required_ruby_version = '>=3.2'
11
11
  s.name = 'judges'
12
- s.version = '0.60.4'
12
+ s.version = '0.61.0'
13
13
  s.license = 'MIT'
14
14
  s.summary = 'Command-Line Tool for a Factbase'
15
15
  s.description =
@@ -54,10 +54,8 @@ class Judges::Categories
54
54
  def ok?(cats)
55
55
  cats = [] if cats.nil?
56
56
  cats = [cats] unless cats.is_a?(Array)
57
- cats.each do |c|
58
- return false if @disable.any?(c)
59
- return true if @enable.any?(c)
60
- end
57
+ return false if cats.any? { |c| @disable.any?(c) }
58
+ return true if cats.any? { |c| @enable.any?(c) }
61
59
  return true if @enable.empty?
62
60
  false
63
61
  end
@@ -4,6 +4,7 @@
4
4
  # SPDX-License-Identifier: MIT
5
5
 
6
6
  require 'base64'
7
+ require 'digest'
7
8
  require 'elapsed'
8
9
  require 'factbase'
9
10
  require 'fileutils'
@@ -91,13 +92,13 @@ class Judges::Print
91
92
  'hidden' => opts['hidden'] || '_id,_version,_time,_job',
92
93
  'highlighted' => opts['highlighted'] || 'stale,tombstone',
93
94
  'version' => Judges::VERSION,
94
- 'css_hash' => sha384(opts, 'index.css'),
95
- 'js_hash' => sha384(opts, 'index.js')
95
+ 'css_hash' => sha256(opts, 'index.css'),
96
+ 'js_hash' => sha256(opts, 'index.js')
96
97
  )
97
98
  )
98
99
  end
99
100
 
100
- def sha384(opts, asset)
101
+ def sha256(opts, asset)
101
102
  return 'sha256-offline' if opts['offline']
102
103
  with_retries do
103
104
  url = "https://yegor256.github.io/judges/assets/#{asset}"
@@ -232,7 +232,7 @@ class Judges::Test
232
232
  end
233
233
  end
234
234
  next unless assert
235
- assert(judge, tname, fb, yaml) if r == runs || opts['assert_once'].is_a?(FalseClass)
235
+ assert(judge, tname, fb, yaml) if r == runs || yaml['assert_once'].is_a?(FalseClass)
236
236
  end
237
237
  end
238
238
  # rubocop:enable Metrics/MethodLength
@@ -64,7 +64,7 @@ class Judges::Options
64
64
  # merged = opts1 + opts2
65
65
  # # merged now has token=xyz, debug=true, verbose=true
66
66
  def +(other)
67
- h = to_h
67
+ h = to_h.dup
68
68
  other.to_h.each do |k, v|
69
69
  h[k] = v
70
70
  end
@@ -138,7 +138,7 @@ class Judges::Options
138
138
  .map(&:strip)
139
139
  .reject(&:empty?)
140
140
  .map { |s| s.split('=', 2) }
141
- .map { |a| a.size == 1 ? [a[0], nil] : a }
141
+ .map { |a| a.size == 1 ? [a[0], 'true'] : a }
142
142
  .reject { |a| a[0].empty? }
143
143
  .to_h
144
144
  end
data/lib/judges.rb CHANGED
@@ -8,5 +8,5 @@
8
8
  # Copyright:: Copyright (c) 2024-2026 Yegor Bugayenko
9
9
  # License:: MIT
10
10
  module Judges
11
- VERSION = '0.60.4' unless const_defined?(:VERSION)
11
+ VERSION = '0.61.0' unless const_defined?(:VERSION)
12
12
  end
data/package-lock.json CHANGED
@@ -341,11 +341,14 @@
341
341
  }
342
342
  },
343
343
  "node_modules/eslint": {
344
- "version": "10.4.1",
345
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.4.1.tgz",
346
- "integrity": "sha512-AyIKhnOBuOAdueD7RB3xB+YeAWScb9jHsJBgH2Hcde8InP5JYhqrRR6iTMHyTEwgENK54Cp44e4v8BwNhsuHuw==",
344
+ "version": "10.6.0",
345
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.6.0.tgz",
346
+ "integrity": "sha512-6lVbcqSodALYo+4ELD0heG6lFiFxnLMuLkiMi2qV8LMp54N8tE8FT1GMH+ev4Ti00nFjNze2+Su6DsV5OQW3Dg==",
347
347
  "dev": true,
348
348
  "license": "MIT",
349
+ "workspaces": [
350
+ "packages/*"
351
+ ],
349
352
  "dependencies": {
350
353
  "@eslint-community/eslint-utils": "^4.8.0",
351
354
  "@eslint-community/regexpp": "^4.12.2",
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.60.4
4
+ version: 0.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko