rbbt-util 5.21.92 → 5.21.93

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '085baf05c5686c39e301773dce420dd46947b483'
4
- data.tar.gz: 1e45580741e0644488f7c891f1d737d8ff421668
3
+ metadata.gz: 77e44fdba77ff951630a24ae328a7b917e79738f
4
+ data.tar.gz: bb3a6043e270884608148d6597761ccc9dce3710
5
5
  SHA512:
6
- metadata.gz: b07ae9833c2832a79511ca6539d7de339e8008d83bc1d7056bb0d679355fce723b5233598c2ca372d0d55e99e7f0352c1c3f489f9c42dce0dc58ba89c3b99998
7
- data.tar.gz: c41b15827ed605424506a7bf44ceebd27ad0c95012cc449cebb04d9e2660af6c96a6b9897f0ff8c9ccf91564bd196b4a5c0f66f43784dba12c1ae15e86d017eb
6
+ metadata.gz: ea343a35ca0a4349d408acc1d060312a35b9266635c4c02292115e77b3485b7ca841d78319f4daab106bfb1ec1c97764c2c28d2a132abe60da7529ecb4e455b7
7
+ data.tar.gz: 39989917783f2268f88df2130afdd02cda7e0a7acfd21d9e814ad2383e079bbc7e13495aa644d9c93d8b7c72408292add1f744ba2db49b830ea9d270d1fac6de
data/lib/rbbt/util/log.rb CHANGED
@@ -163,7 +163,7 @@ module Log
163
163
 
164
164
  prefix = time << color(severity) << "[" << sev_str << "]" << color(0)
165
165
  message = "" << highlight << message << color(0) if severity >= INFO
166
- str = prefix << " " << message
166
+ str = prefix << " " << message.to_s
167
167
 
168
168
  LOG_MUTEX.synchronize do
169
169
  STDERR.puts str
@@ -139,9 +139,10 @@ class Step
139
139
  end
140
140
 
141
141
  def init_info
142
- return nil if @exec or info_file.nil?
142
+ return nil if @exec or info_file.nil? or Open.exists?(info_file)
143
143
  Open.lock(info_file, :lock => info_lock) do
144
- i = {:status => :init, :pid => Process.pid}
144
+ i = {:status => :waiting, :pid => Process.pid}
145
+ i[:dependencies] = dependencies.collect{|dep| [dep.task_name, dep.name, dep.path]}
145
146
  @info_cache = i
146
147
  Misc.sensiblewrite(info_file, INFO_SERIALIAZER.dump(i), :force => true, :lock => false)
147
148
  @info_cache_time = Time.now
@@ -347,7 +348,7 @@ class Step
347
348
  end
348
349
 
349
350
  def started?
350
- Open.exists?(path) or Open.exists?(pid_file) or Open.exists?(info_file)
351
+ Open.exists?(path) or Open.exists?(pid_file) #or Open.exists?(info_file)
351
352
  end
352
353
 
353
354
  def dirty?
@@ -87,7 +87,7 @@ class Step
87
87
  job.clean
88
88
  end
89
89
 
90
- job.dup_inputs unless status == 'done' or job.started?
90
+ (job.init_info and job.dup_inputs) unless status == 'done' or job.started?
91
91
 
92
92
  raise DependencyError, job if job.error?
93
93
  end
@@ -251,13 +251,6 @@ class Step
251
251
 
252
252
  all_deps = rec_dependencies + [self]
253
253
 
254
- dependencies.each do |dep|
255
- next unless ComputeDependency === dep
256
- if dep.compute == :produce
257
- dep.produce
258
- end
259
- end
260
-
261
254
  compute_deps = rec_dependencies.collect do |dep|
262
255
  next unless ComputeDependency === dep
263
256
  dep.rec_dependencies
@@ -275,6 +268,13 @@ class Step
275
268
  dep_step[step_dep.path] << step_dep
276
269
  end
277
270
  end
271
+
272
+ dependencies.each do |dep|
273
+ next unless ComputeDependency === dep
274
+ if dep.compute == :produce
275
+ dep.produce
276
+ end
277
+ end
278
278
 
279
279
  self.dup_inputs
280
280
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.21.92
4
+ version: 5.21.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-10 00:00:00.000000000 Z
11
+ date: 2017-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake