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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fasten/runner.rb +10 -0
- data/lib/fasten/ui/console.rb +1 -1
- data/lib/fasten/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6405a7b032ff8dd2e980a6f05ae4bf6966f1d89fc8348b992ffdffaa08929e
|
4
|
+
data.tar.gz: a25985b8c478ff074f8500bf2be3ee5828a74f684192b70060d83c0bb5b66c38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f69b415d2927caafda5db2079457804e9c1d995f5ce8a10fe107f19451beca3991a5ee67acaab0af1c8d5fd59783565958d973834ce35b35e772690f60473d49
|
7
|
+
data.tar.gz: 0b7ea199939c5fef57191f054ab681a96295d63b2d6bc178ace6246c8a397f340c417a0146a83bc981a395ec98cfd2a8912fa5b680158cfa6502c8dda5b8034b
|
data/Gemfile.lock
CHANGED
data/lib/fasten/runner.rb
CHANGED
@@ -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
|
data/lib/fasten/ui/console.rb
CHANGED
@@ -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
|
data/lib/fasten/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|