judges 0.41.0 → 0.42.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/test/test_judges.rb CHANGED
@@ -45,6 +45,18 @@ class TestJudges < Minitest::Test
45
45
  end
46
46
  end
47
47
 
48
+ def test_shuffles_and_boosts
49
+ Dir.mktmpdir do |d|
50
+ names = %w[red blue green black orange pink yellow].sort
51
+ names.each do |n|
52
+ dir = File.join(d, n)
53
+ save_it(File.join(dir, "#{n}.rb"), 'puts 1')
54
+ end
55
+ list = Judges::Judges.new(d, nil, Loog::NULL, shuffle: '', boost: ['yellow']).each.to_a
56
+ assert_equal('yellow', list[0].name)
57
+ end
58
+ end
59
+
48
60
  def test_keeps_them_all
49
61
  colors = %w[blue orange yellow black white pink magenta]
50
62
  ['', 'b', 'ye'].each do |pfx|
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.41.0
4
+ version: 0.42.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: backtrace
@@ -241,8 +241,8 @@ executables:
241
241
  - judges
242
242
  extensions: []
243
243
  extra_rdoc_files:
244
- - README.md
245
244
  - LICENSE.txt
245
+ - README.md
246
246
  files:
247
247
  - ".0pdd.yml"
248
248
  - ".gitattributes"
@@ -254,6 +254,7 @@ files:
254
254
  - ".github/workflows/pdd.yml"
255
255
  - ".github/workflows/rake.yml"
256
256
  - ".github/workflows/reuse.yml"
257
+ - ".github/workflows/typos.yml"
257
258
  - ".github/workflows/xcop.yml"
258
259
  - ".github/workflows/yamllint.yml"
259
260
  - ".gitignore"
@@ -351,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
351
352
  - !ruby/object:Gem::Version
352
353
  version: '0'
353
354
  requirements: []
354
- rubygems_version: 3.6.2
355
+ rubygems_version: 3.6.7
355
356
  specification_version: 4
356
357
  summary: Command-Line Tool for a Factbase
357
358
  test_files: []