coderunner 0.13.16 → 0.13.17

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.16
1
+ 0.13.17
data/coderunner.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "coderunner"
8
- s.version = "0.13.16"
8
+ s.version = "0.13.17"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Edmund Highcock"]
@@ -280,12 +280,12 @@ def process_directory
280
280
  puts 'Results file possibly corrupted for ' + @run_name
281
281
  end
282
282
 
283
+ @running = (@@current_status =~ Regexp.new(@job_no.to_s)) ? true : false
283
284
  if methods.include? :get_run_status
284
285
  @status = get_run_status(@job_no, @@current_status) rescue :Unknown
285
286
  else
286
287
  @status ||= :Unknown
287
288
  end
288
- @running = (@@current_status =~ Regexp.new(@job_no.to_s)) ? true : false
289
289
  #logi '@@current_status', @@current_status, '@job_no', @job_no
290
290
  #logi '@running', @running
291
291
  process_directory_code_specific
@@ -108,11 +108,13 @@ def get_run_status(job_no, current_status)
108
108
  unless line
109
109
  return :Unknown
110
110
  else
111
+ @running = true
111
112
  if line =~ /\sPD\s/
112
113
  return :Queueing
113
114
  elsif line =~ /\sR\s/
114
115
  return :Running
115
116
  elsif line =~ /\sC\s/
117
+ @running = false
116
118
  return :Unknown
117
119
  else
118
120
  ep 'line', line
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.16
4
+ version: 0.13.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: