fasten 0.12.8 → 0.14.0

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
  SHA256:
3
- metadata.gz: 9dd4cb73dcf32492c0e11fac100e3726acdff174e0233e41728459f226a7cec1
4
- data.tar.gz: 7d4981e1ee8793750cedf2bb153fc60b4a27c5f0802db03a9c02f4202205bc07
3
+ metadata.gz: 5c6405a7b032ff8dd2e980a6f05ae4bf6966f1d89fc8348b992ffdffaa08929e
4
+ data.tar.gz: a25985b8c478ff074f8500bf2be3ee5828a74f684192b70060d83c0bb5b66c38
5
5
  SHA512:
6
- metadata.gz: b856359819576b19d03223a8d7c927b4f6698aa51e4fb7c4baf97b83566db6762c9f42f7242a055c5830af23a1af1e612db1a6b6cc227264b20c571718020980
7
- data.tar.gz: 7311a2544fe423929c45c3ce82dd61ebdfdd2e1c310d1cee3096b154571f67858d71f4b450c74dec94ff292ce77d4cd5e5b4469a4f32590a381e0cedd71cb1e0
6
+ metadata.gz: f69b415d2927caafda5db2079457804e9c1d995f5ce8a10fe107f19451beca3991a5ee67acaab0af1c8d5fd59783565958d973834ce35b35e772690f60473d49
7
+ data.tar.gz: 0b7ea199939c5fef57191f054ab681a96295d63b2d6bc178ace6246c8a397f340c417a0146a83bc981a395ec98cfd2a8912fa5b680158cfa6502c8dda5b8034b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fasten (0.12.8)
4
+ fasten (0.14.0)
5
5
  binding_of_caller
6
6
  hirb
7
7
  os
@@ -54,6 +54,7 @@ module Fasten
54
54
  self.state = :RUNNING
55
55
  log_ini self, running_counters
56
56
  load_stats
57
+ touch_task_logs
57
58
 
58
59
  run_ui do
59
60
  perform_loop
@@ -69,6 +70,15 @@ module Fasten
69
70
  save_stats
70
71
  end
71
72
 
73
+ def touch_task_logs
74
+ FileUtils.mkdir_p "#{runner.fasten_dir}/log/task/"
75
+ tasks.each do |task|
76
+ path = "#{runner.fasten_dir}/log/task/#{task.name}.log"
77
+ puts "Fasten: creating log #{path}"
78
+ FileUtils.touch path
79
+ end
80
+ end
81
+
72
82
  def map(list, &block)
73
83
  list.each do |item|
74
84
  task item.to_s, request: item, &block
@@ -49,7 +49,7 @@ module Fasten
49
49
  return unless old.count != orig.count
50
50
 
51
51
  (orig - old).each do |task|
52
- puts "Time: #{hformat Time.new - runner.ini} #{message} #{hformat task.dif} Task #{task}"
52
+ puts "Time: #{hformat Time.new - runner.ini} #{message} #{hformat task.dif} #{task.worker} Task #{task}"
53
53
  old << task
54
54
  end
55
55
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fasten
4
- VERSION = '0.12.8'
4
+ VERSION = '0.14.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fasten
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.8
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aldrin Martoq
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-21 00:00:00.000000000 Z
11
+ date: 2019-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler