judges 0.42.1 → 0.43.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.
data/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
- "dependencies": {
3
- "eslint": "^9.24.0"
2
+ "devDependencies": {
3
+ "@eslint/js": "^9.27.0",
4
+ "eslint": "^9.27.0"
4
5
  }
5
6
  }
@@ -141,4 +141,19 @@ class TestUpdate < Minitest::Test
141
141
  assert_equal(3, sum['error'].size)
142
142
  end
143
143
  end
144
+
145
+ def test_fail_fast_stops_cycle
146
+ Dir.mktmpdir do |d|
147
+ save_it(File.join(d, 'error/error.rb'), 'invalid$ruby$syntax')
148
+ save_it(File.join(d, 'valid/valid.rb'), '$fb.insert')
149
+ file = File.join(d, 'base.fb')
150
+ Judges::Update.new(Loog::NULL).run(
151
+ { 'fail-fast' => true, 'quiet' => true, 'max-cycles' => 3, 'boost' => 'error' },
152
+ [d, file]
153
+ )
154
+ fb = Factbase.new
155
+ fb.import(File.binread(file))
156
+ assert_equal(0, fb.size)
157
+ end
158
+ end
144
159
  end
data/test/test__helper.rb CHANGED
@@ -15,7 +15,7 @@ unless SimpleCov.running || ENV['PICKS']
15
15
  SimpleCov::Formatter::CoberturaFormatter
16
16
  ]
17
17
  )
18
- SimpleCov.minimum_coverage 80
18
+ SimpleCov.minimum_coverage 90
19
19
  SimpleCov.minimum_coverage_by_file 80
20
20
  SimpleCov.start do
21
21
  add_filter 'test/'
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.42.1
4
+ version: 0.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko