pretty_multitask 0.1.1 → 0.1.2

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
- SHA1:
3
- metadata.gz: 4aadabb4de2494836bb45e2386f85d07e073a67e
4
- data.tar.gz: 5566dc25e704198c12d781f941c2f512d574878d
2
+ SHA256:
3
+ metadata.gz: 7f54df005e0547be771ae3de2722a86ff4542d299490a1808494a820550bc9d6
4
+ data.tar.gz: 28de686f816b32491ecdd5e961c58756937d0c043a9abda58e79fbc434040501
5
5
  SHA512:
6
- metadata.gz: 1957f7729279834c5203e2b60b0fef17b02462bfd70300854ac80720882fa2f23fa9bd47fc4ebcdebf7a6719904856acf825ee0ea8c027638bbfe07c51b3eea9
7
- data.tar.gz: a147e299b4ec37fdfb0742d8aae4fa6d59e51c53bebb41a8c632fd3c2ff8b2156cae157d1b947b833952afd06df30a37fc891d89193a5700f26af5837d32adbd
6
+ metadata.gz: a298b861f068ebbacf09fc8514475f22d120170119ad89bc82c355a75c30da3e83f8dc75fdb70ab0180a3f9cdfddd96f93caaaf0423e1df88b300daec0e6d3d7
7
+ data.tar.gz: 4e6ad1702992475b3b110d02e67db695fd7ab574a1960c65f6862e35d87f09034ad3c2aee1fc8bcf2899095199dc870673c90ded95bdacc1eddcba23b61f640b
@@ -24,20 +24,19 @@ module PrettyMultitask
24
24
  errors = exec.run.errors
25
25
 
26
26
  @jobs.each do |j|
27
- padding = ( longest - j[:name].length )/2
28
- left = '='*35
29
- left += '='*padding
27
+ label = "[ #{j[:name]} ]"
28
+ width = IO.console.winsize[-1]
29
+ left = '='*((width - label.length)/2)
30
30
  right = j[:name].length.even? ? left : left + '='
31
31
  puts "\n"
32
- label = "[ #{j[:name]} ]"
33
- puts Color.yellow left + "[ #{j[:name]} ]" + right
32
+ puts Color.yellow left + label + right
34
33
  puts File.read j[:out_file]
35
- puts Color.yellow left + label.gsub(/./,'=') + right
34
+ puts Color.yellow "="*width
36
35
  File.delete j[:out_file]
37
36
  end
38
37
 
39
38
  unless errors.empty?
40
- LOGGER.fatal 'Found errors'
39
+ LOGGER.fatal 'Found errors '
41
40
  exit 2
42
41
  end
43
42
  end
@@ -1,3 +1,3 @@
1
1
  module PrettyMultitask
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_multitask
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Lopo Da Silva
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2019-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tlopo-executor
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.6.13
111
+ rubygems_version: 2.7.8
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Multitask with pretty output for Rake