coderunner 0.16.16 → 0.16.17
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/VERSION +1 -1
- data/coderunner.gemspec +2 -2
- data/lib/coderunner/remote_code_runner.rb +1 -1
- data/lib/coderunner/repository.rb +1 -1
- data/lib/coderunner/run.rb +13 -7
- data/test/test_coderunner.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1970a95f2e615591a5b6edd86be507d1f5929974
|
|
4
|
+
data.tar.gz: 67ffa9135e34d3e382cf8a07d2a6ef2b2c24c917
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ef510771aef26cf63e05b8c7cdd4bf44d5effb93664f1d3a766c4fc5e5d29371ba513e0986cb7435c5ecfd00dba8a48181dc6bab9b22529576d135c72dccece
|
|
7
|
+
data.tar.gz: 615bdbd073aaa1c415c7d448920a3853270424d17d2da742d87219ad748119f0d2b62e960f17594eb52f561378f4768a2364b1842e4c04246135da9079142516
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.16.
|
|
1
|
+
0.16.17
|
data/coderunner.gemspec
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: coderunner 0.16.
|
|
5
|
+
# stub: coderunner 0.16.17 ruby lib
|
|
6
6
|
# stub: ext/extconf.rb
|
|
7
7
|
|
|
8
8
|
Gem::Specification.new do |s|
|
|
9
9
|
s.name = "coderunner"
|
|
10
|
-
s.version = "0.16.
|
|
10
|
+
s.version = "0.16.17"
|
|
11
11
|
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
13
13
|
s.require_paths = ["lib"]
|
data/lib/coderunner/run.rb
CHANGED
|
@@ -281,12 +281,16 @@ def process_directory
|
|
|
281
281
|
end
|
|
282
282
|
|
|
283
283
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
284
|
+
@cr_has_read_results = false
|
|
285
|
+
if FileTest.exist? 'code_runner_results.rb'
|
|
286
|
+
begin
|
|
287
|
+
read_results
|
|
288
|
+
@cr_has_read_results = true
|
|
289
|
+
rescue NoMethodError, SyntaxError => err
|
|
290
|
+
puts err
|
|
291
|
+
puts 'Results file possibly corrupted for ' + @run_name
|
|
292
|
+
end
|
|
293
|
+
end
|
|
290
294
|
|
|
291
295
|
@running = (@@current_status =~ Regexp.new(@job_no.to_s)) ? true : false
|
|
292
296
|
if methods.include? :get_run_status
|
|
@@ -296,7 +300,9 @@ def process_directory
|
|
|
296
300
|
end
|
|
297
301
|
#logi '@@current_status', @@current_status, '@job_no', @job_no
|
|
298
302
|
#logi '@running', @running
|
|
299
|
-
|
|
303
|
+
if not @cr_has_read_results or @running or not [:Complete, :Failed].include? @status or @runner.recalc_all or @runner.reprocess_all
|
|
304
|
+
process_directory_code_specific
|
|
305
|
+
end
|
|
300
306
|
|
|
301
307
|
# Sometimes the run can be completed and still in the queue, in
|
|
302
308
|
# which case process_directory_code_specific may set @status==:Complete
|
data/test/test_coderunner.rb
CHANGED