judges 0.5.0 → 0.6.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 +4 -4
- data/.github/workflows/{license.yml → copyrights.yml} +3 -30
- data/Gemfile.lock +2 -2
- data/bin/judges +2 -0
- data/judges.gemspec +1 -1
- data/lib/judges/commands/test.rb +3 -1
- data/lib/judges.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14d7a10c327b1cbd22dcc87773e6c3f218598a5f7d879f6f8c3ff2ddabc9018c
|
4
|
+
data.tar.gz: '0106468efd8e11754252950a2249ab0f2cbd22a9ed2081867e88e154ae2c0cc0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7035bfcbf8e162ef9c4504fdb9953ad275bae7c00123d692bfd8b612bef16745e144b3b51e10560890d79681c48fb37d1f2d3a9030f6caba8896c0a76a6925e6
|
7
|
+
data.tar.gz: '09533523b712227e1fced16b32a74abd450e9f454d217574c9b35334564718f034283bd9b61cdc39ee1e654798ddb4f439199284d6ed66827024dcb347299c50'
|
@@ -18,40 +18,13 @@
|
|
18
18
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
19
|
# SOFTWARE.
|
20
20
|
---
|
21
|
-
name:
|
21
|
+
name: copyrights
|
22
22
|
'on':
|
23
23
|
push:
|
24
|
-
branches:
|
25
|
-
- master
|
26
24
|
pull_request:
|
27
|
-
branches:
|
28
|
-
- master
|
29
25
|
jobs:
|
30
|
-
|
26
|
+
copyrights:
|
31
27
|
runs-on: ubuntu-22.04
|
32
28
|
steps:
|
33
29
|
- uses: actions/checkout@v4
|
34
|
-
-
|
35
|
-
run: |
|
36
|
-
header="Copyright (c) $(date +%Y) Yegor Bugayenko"
|
37
|
-
failed="false"
|
38
|
-
while IFS= read -r file; do
|
39
|
-
if ! grep -q "${header}" "${file}"; then
|
40
|
-
failed="true"
|
41
|
-
echo "⚠️ Copyright header is not found in: ${file}"
|
42
|
-
else
|
43
|
-
echo "File looks good: ${file}"
|
44
|
-
fi
|
45
|
-
done < <(find . -type f \( \
|
46
|
-
-name "Dockerfile" -o \
|
47
|
-
-name "LICENSE.txt" -o \
|
48
|
-
-name "Makefile" -o \
|
49
|
-
-name "Rakefile" -o \
|
50
|
-
-name "*.sh" -o \
|
51
|
-
-name "*.rb" -o \
|
52
|
-
-name "*.fe" -o \
|
53
|
-
-name "*.yml" \
|
54
|
-
\) -print)
|
55
|
-
if [ "${failed}" = "true" ]; then
|
56
|
-
exit 1
|
57
|
-
fi
|
30
|
+
- uses: yegor256/copyrights-action@0.0.3
|
data/Gemfile.lock
CHANGED
@@ -47,7 +47,7 @@ GEM
|
|
47
47
|
backtrace (0.4.0)
|
48
48
|
base64 (0.2.0)
|
49
49
|
bigdecimal (3.1.8)
|
50
|
-
builder (3.
|
50
|
+
builder (3.3.0)
|
51
51
|
concurrent-ruby (1.2.3)
|
52
52
|
connection_pool (2.4.1)
|
53
53
|
crack (1.0.0)
|
@@ -85,7 +85,7 @@ GEM
|
|
85
85
|
erubi (1.12.0)
|
86
86
|
ethon (0.16.0)
|
87
87
|
ffi (>= 1.15.0)
|
88
|
-
factbase (0.0.
|
88
|
+
factbase (0.0.44)
|
89
89
|
json (~> 2.7)
|
90
90
|
loog (~> 0.2)
|
91
91
|
nokogiri (~> 1.10)
|
data/bin/judges
CHANGED
@@ -138,6 +138,8 @@ class App
|
|
138
138
|
c.flag([:enable], multiple: true)
|
139
139
|
c.desc 'Name of the judge to run (directory name)'
|
140
140
|
c.flag([:judge], multiple: true)
|
141
|
+
c.desc 'How many times to run?'
|
142
|
+
c.flag([:runs], type: Integer, default_value: 1)
|
141
143
|
c.desc 'The location of a Ruby library (directory with .rb files to include)'
|
142
144
|
c.flag([:lib])
|
143
145
|
c.desc 'Stay quiet even if some tests fail or simply no tests executed?'
|
data/judges.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
27
27
|
s.required_ruby_version = '>=3.2'
|
28
28
|
s.name = 'judges'
|
29
|
-
s.version = '0.
|
29
|
+
s.version = '0.6.0'
|
30
30
|
s.license = 'MIT'
|
31
31
|
s.summary = 'Command-Line Tool for a Factbase'
|
32
32
|
s.description =
|
data/lib/judges/commands/test.rb
CHANGED
@@ -122,7 +122,9 @@ class Judges::Test
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
options = Judges::Options.new(opts['option']) + Judges::Options.new(yaml['options'])
|
125
|
-
|
125
|
+
(1..(opts['runs'] || 1)).each do
|
126
|
+
judge.run(Factbase::Looged.new(fb, @loog), {}, {}, options)
|
127
|
+
end
|
126
128
|
xpaths = yaml['expected']
|
127
129
|
return if xpaths.nil?
|
128
130
|
xml = Nokogiri::XML.parse(Factbase::ToXML.new(fb).xml)
|
data/lib/judges.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: judges
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|
@@ -151,7 +151,7 @@ files:
|
|
151
151
|
- ".gitattributes"
|
152
152
|
- ".github/workflows/actionlint.yml"
|
153
153
|
- ".github/workflows/codecov.yml"
|
154
|
-
- ".github/workflows/
|
154
|
+
- ".github/workflows/copyrights.yml"
|
155
155
|
- ".github/workflows/markdown-lint.yml"
|
156
156
|
- ".github/workflows/pdd.yml"
|
157
157
|
- ".github/workflows/rake.yml"
|