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.
- checksums.yaml +4 -4
- data/.github/workflows/typos.yml +19 -0
- data/.gitignore +2 -2
- data/Gemfile.lock +20 -19
- data/README.md +3 -3
- data/REUSE.toml +7 -7
- data/bin/judges +2 -0
- data/features/test.feature +2 -2
- data/judges.gemspec +1 -1
- data/lib/judges/commands/eval.rb +6 -0
- data/lib/judges/commands/import.rb +6 -0
- data/lib/judges/commands/inspect.rb +6 -0
- data/lib/judges/commands/join.rb +6 -0
- data/lib/judges/commands/print.rb +2 -0
- data/lib/judges/commands/pull.rb +2 -0
- data/lib/judges/commands/push.rb +2 -0
- data/lib/judges/commands/test.rb +6 -4
- data/lib/judges/commands/trim.rb +2 -0
- data/lib/judges/commands/update.rb +4 -2
- data/lib/judges/impex.rb +11 -0
- data/lib/judges/judges.rb +27 -7
- data/lib/judges/options.rb +7 -0
- data/lib/judges/to_rel.rb +1 -0
- data/lib/judges.rb +1 -1
- data/package-lock.json +1292 -407
- data/test/test_judges.rb +12 -0
- metadata +5 -4
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.
|
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:
|
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.
|
355
|
+
rubygems_version: 3.6.7
|
355
356
|
specification_version: 4
|
356
357
|
summary: Command-Line Tool for a Factbase
|
357
358
|
test_files: []
|