judges 0.38.1 → 0.39.1

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.
data/package.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "dependencies": {
3
+ "eslint": "^9.24.0"
4
+ }
5
+ }
@@ -35,8 +35,9 @@ class TestPrint < Minitest::Test
35
35
  end
36
36
 
37
37
  def test_print_to_html
38
- WebMock.enable_net_connect!
39
- skip('We are offline') unless we_are_online
38
+ WebMock.disable_net_connect!
39
+ stub_request(:get, 'https://yegor256.github.io/judges/assets/index.css').to_return(body: 'nothing')
40
+ stub_request(:get, 'https://yegor256.github.io/judges/assets/index.js').to_return(body: 'nothing')
40
41
  fb = Factbase.new
41
42
  10.times do
42
43
  f = fb.insert
@@ -71,12 +72,16 @@ class TestPrint < Minitest::Test
71
72
  end
72
73
  assert_empty(xml.errors, xml)
73
74
  refute_empty(xml.xpath('/html'), xml)
75
+ skip('We are offline') unless we_are_online
74
76
  WebMock.enable_net_connect!
75
77
  v = W3CValidators::NuValidator.new.validate_file(html)
76
78
  assert_empty(v.errors, "#{doc}\n\n#{v.errors.join('; ')}")
77
79
  end
78
80
 
79
81
  def test_print_all_formats
82
+ WebMock.disable_net_connect!
83
+ stub_request(:get, 'https://yegor256.github.io/judges/assets/index.css').to_return(body: 'nothing')
84
+ stub_request(:get, 'https://yegor256.github.io/judges/assets/index.js').to_return(body: 'nothing')
80
85
  %w[yaml html xml json].each do |fmt|
81
86
  Dir.mktmpdir do |d|
82
87
  f = File.join(d, 'base.fb')
data/test/test__helper.rb CHANGED
@@ -6,6 +6,7 @@
6
6
  $stdout.sync = true
7
7
 
8
8
  require 'simplecov'
9
+ SimpleCov.external_at_exit = true
9
10
  SimpleCov.start
10
11
 
11
12
  require 'simplecov-cobertura'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judges
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.1
4
+ version: 0.39.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-20 00:00:00.000000000 Z
10
+ date: 2025-04-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: backtrace
@@ -69,16 +69,16 @@ dependencies:
69
69
  name: factbase
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 0.9.1
74
+ version: '0.9'
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 0.9.1
81
+ version: '0.9'
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: gli
84
84
  requirement: !ruby/object:Gem::Requirement
@@ -249,6 +249,7 @@ files:
249
249
  - ".github/workflows/actionlint.yml"
250
250
  - ".github/workflows/codecov.yml"
251
251
  - ".github/workflows/copyrights.yml"
252
+ - ".github/workflows/eslint.yml"
252
253
  - ".github/workflows/markdown-lint.yml"
253
254
  - ".github/workflows/pdd.yml"
254
255
  - ".github/workflows/rake.yml"
@@ -267,8 +268,11 @@ files:
267
268
  - README.md
268
269
  - REUSE.toml
269
270
  - Rakefile
271
+ - assets/index.css
272
+ - assets/index.js
270
273
  - assets/index.xsl
271
274
  - bin/judges
275
+ - eslint.config.js
272
276
  - features/gem_package.feature
273
277
  - features/import.feature
274
278
  - features/inspect.feature
@@ -307,6 +311,8 @@ files:
307
311
  - lib/judges/judges.rb
308
312
  - lib/judges/options.rb
309
313
  - lib/judges/to_rel.rb
314
+ - package-lock.json
315
+ - package.json
310
316
  - renovate.json
311
317
  - test/commands/test_eval.rb
312
318
  - test/commands/test_import.rb