judges 0.47.0 → 0.49.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/Gemfile +1 -1
- data/Gemfile.lock +18 -18
- data/features/update.feature +9 -3
- data/judges.gemspec +1 -1
- data/lib/judges/commands/update.rb +5 -0
- data/lib/judges.rb +1 -1
- data/package-lock.json +497 -411
- data/test/commands/test_download.rb +12 -9
- data/test/commands/test_print.rb +29 -0
- data/test/commands/test_pull.rb +7 -5
- data/test/commands/test_push.rb +6 -4
- data/test/commands/test_upload.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fed7775d40fd6158b48ec3a2e8eb78551b2dbfd2f15863cca7a60346ba4414f8
|
4
|
+
data.tar.gz: 1e96aea6b40171147d96a8ee6455906e69e5a2bcaab07588ab8141d284a1198b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8258a6395ca26b7bf39ebae093b23d47f88e432715e0f6367b62c4c56e23c4a95b711110921d2a1f85a36a3ee842a907858b711336851f3914cee12cce61c869
|
7
|
+
data.tar.gz: 35b8ce58212c683590f62d8d2d05aed393a79dc60e6cb231ba8128a89d3408a7a11a3534302a844722f8d11897a13b536c155973d2ee75762836e4a01de29e79
|
data/Gemfile
CHANGED
@@ -7,7 +7,7 @@ source 'https://rubygems.org'
|
|
7
7
|
gemspec
|
8
8
|
|
9
9
|
gem 'base64', '>0'
|
10
|
-
gem 'cucumber', '~>
|
10
|
+
gem 'cucumber', '~>10.0', require: false
|
11
11
|
gem 'minitest', '~>5.25', require: false
|
12
12
|
gem 'minitest-reporters', '~>1.7', require: false
|
13
13
|
gem 'minitest-retry', '~>0.2', require: false
|
data/Gemfile.lock
CHANGED
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
ast (2.4.3)
|
29
29
|
backtrace (0.4.1)
|
30
30
|
base64 (0.3.0)
|
31
|
-
baza.rb (0.
|
31
|
+
baza.rb (0.9.0)
|
32
32
|
backtrace (~> 0.4)
|
33
33
|
elapsed (~> 0.0)
|
34
34
|
faraday (~> 2.13)
|
@@ -46,30 +46,30 @@ GEM
|
|
46
46
|
crack (1.0.0)
|
47
47
|
bigdecimal
|
48
48
|
rexml
|
49
|
-
cucumber (
|
49
|
+
cucumber (10.0.0)
|
50
|
+
base64 (~> 0.2)
|
50
51
|
builder (~> 3.2)
|
51
52
|
cucumber-ci-environment (> 9, < 11)
|
52
|
-
cucumber-core (>
|
53
|
-
cucumber-cucumber-expressions (
|
54
|
-
cucumber-gherkin (> 24, < 28)
|
53
|
+
cucumber-core (> 15, < 17)
|
54
|
+
cucumber-cucumber-expressions (> 17, < 19)
|
55
55
|
cucumber-html-formatter (> 20.3, < 22)
|
56
|
-
cucumber-messages (> 19, < 25)
|
57
56
|
diff-lcs (~> 1.5)
|
57
|
+
logger (~> 1.6)
|
58
58
|
mini_mime (~> 1.1)
|
59
59
|
multi_test (~> 1.1)
|
60
|
-
sys-uname (~> 1.
|
60
|
+
sys-uname (~> 1.3)
|
61
61
|
cucumber-ci-environment (10.0.1)
|
62
|
-
cucumber-core (
|
63
|
-
cucumber-gherkin (
|
64
|
-
cucumber-messages (
|
62
|
+
cucumber-core (15.1.0)
|
63
|
+
cucumber-gherkin (> 27, < 31)
|
64
|
+
cucumber-messages (> 26, < 29)
|
65
65
|
cucumber-tag-expressions (> 5, < 7)
|
66
|
-
cucumber-cucumber-expressions (
|
66
|
+
cucumber-cucumber-expressions (18.0.1)
|
67
67
|
bigdecimal
|
68
|
-
cucumber-gherkin (
|
69
|
-
cucumber-messages (
|
70
|
-
cucumber-html-formatter (21.
|
68
|
+
cucumber-gherkin (30.0.4)
|
69
|
+
cucumber-messages (> 25, < 28)
|
70
|
+
cucumber-html-formatter (21.10.1)
|
71
71
|
cucumber-messages (> 19, < 28)
|
72
|
-
cucumber-messages (
|
72
|
+
cucumber-messages (27.2.0)
|
73
73
|
cucumber-tag-expressions (6.1.2)
|
74
74
|
date (3.4.1)
|
75
75
|
decoor (0.0.1)
|
@@ -180,7 +180,7 @@ GEM
|
|
180
180
|
regexp_parser (2.10.0)
|
181
181
|
retries (0.0.5)
|
182
182
|
rexml (3.4.1)
|
183
|
-
rubocop (1.76.
|
183
|
+
rubocop (1.76.1)
|
184
184
|
json (~> 2.3)
|
185
185
|
language_server-protocol (~> 3.17.0.2)
|
186
186
|
lint_roller (~> 1.1.0)
|
@@ -191,7 +191,7 @@ GEM
|
|
191
191
|
rubocop-ast (>= 1.45.0, < 2.0)
|
192
192
|
ruby-progressbar (~> 1.7)
|
193
193
|
unicode-display_width (>= 2.4.0, < 4.0)
|
194
|
-
rubocop-ast (1.45.
|
194
|
+
rubocop-ast (1.45.1)
|
195
195
|
parser (>= 3.3.7.2)
|
196
196
|
prism (~> 1.4)
|
197
197
|
rubocop-minitest (0.38.1)
|
@@ -253,7 +253,7 @@ PLATFORMS
|
|
253
253
|
|
254
254
|
DEPENDENCIES
|
255
255
|
base64 (> 0)
|
256
|
-
cucumber (~>
|
256
|
+
cucumber (~> 10.0)
|
257
257
|
judges!
|
258
258
|
minitest (~> 5.25)
|
259
259
|
minitest-reporters (~> 1.7)
|
data/features/update.feature
CHANGED
@@ -51,14 +51,20 @@ Feature: Update
|
|
51
51
|
|
52
52
|
Scenario: Skips the judge on lifetime running out
|
53
53
|
Given I make a temp directory
|
54
|
-
Then I have a "
|
54
|
+
Then I have a "first/first.rb" file with content:
|
55
55
|
"""
|
56
56
|
n = $fb.insert
|
57
|
+
n.type = 'first'
|
57
58
|
sleep 1
|
58
59
|
"""
|
60
|
+
Then I have a "second/second.rb" file with content:
|
61
|
+
"""
|
62
|
+
n = $fb.insert
|
63
|
+
n.type = 'second'
|
64
|
+
"""
|
59
65
|
Then I run bin/judges with "--verbose update --quiet --lifetime 1 --max-cycles 5 . simple.fb"
|
60
|
-
Then Stdout contains "The '
|
61
|
-
Then Stdout contains "Update completed in
|
66
|
+
Then Stdout contains "The 'second' judge skipped, no time left"
|
67
|
+
Then Stdout contains "Update completed in 1 cycle(s), did 1i/0d/1a"
|
62
68
|
And Exit code is zero
|
63
69
|
|
64
70
|
Scenario: Use options from a file
|
data/judges.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
10
10
|
s.required_ruby_version = '>=3.2'
|
11
11
|
s.name = 'judges'
|
12
|
-
s.version = '0.
|
12
|
+
s.version = '0.49.0'
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.summary = 'Command-Line Tool for a Factbase'
|
15
15
|
s.description =
|
@@ -79,6 +79,11 @@ class Judges::Update
|
|
79
79
|
loop do
|
80
80
|
c += 1
|
81
81
|
if c > 1
|
82
|
+
if opts['lifetime'] && Time.now - @start > opts['lifetime']
|
83
|
+
@loog.info("Not starting cycle ##{c}, no time left")
|
84
|
+
c -= 1
|
85
|
+
break
|
86
|
+
end
|
82
87
|
@loog.info("\nStarting cycle ##{c}#{" (out of #{opts['max-cycles']})" if opts['max-cycles']}...")
|
83
88
|
end
|
84
89
|
delta = cycle(opts, judges, fb, options, start, errors)
|
data/lib/judges.rb
CHANGED