run_tasks 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/src/run/core/help.rb +10 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a224c7c9f7f4da9cda370ed7ac53d2698934d79d
4
- data.tar.gz: b734e7eeb183f54b1bba3ff3045fbff710930199
3
+ metadata.gz: ec5fcdfa1ffd6dc79db81eea3dda17db9894c78e
4
+ data.tar.gz: 92b0df396a9246cf21f170abf5f052d705fe4e60
5
5
  SHA512:
6
- metadata.gz: ed84d2e2158c842ce0dc88497215cee170424d42db2cbd4a32c63f741f309b18e00f395600a4d1c918e5e1e8fb1e39da82541383f1e35ab7755a8b8131d6b57d
7
- data.tar.gz: f19870eb3d1920b8e9cd79adad2a0fdeaeca67a6619c353cdb6d64c839d4caf7ee644c674ab89f30279670a8e5903918a30fb1ab5b6fbe7f2ed5669e1bb3e413
6
+ metadata.gz: f4e48c274042ffc333e813adb29c53db6a1242e292bd4da7267abaf547c33ca5534c1124973062fe2aa96f5eeff7b7116f5bcc5526779c809b15994218cc5975
7
+ data.tar.gz: b27cbb70ea5dc0a3f61fd5774da0fb04925d7d0b13c436d1bcef39cc1cd17db71aa0434c1d42577a69b5e204d5f0ce77810ffe6204c9de4f07fb6a8fd8a4f820
data/src/run/core/help.rb CHANGED
@@ -14,22 +14,22 @@ module Run
14
14
  name_verbatim = " #{name_verbatim}".yellow +
15
15
  " " * (tasks_column_length - name_verbatim.size - 1)
16
16
 
17
- help_verbatim[:comments].each_with_index do |comment, comment_line|
18
- split_comment = split_verbatim(
19
- comment,
20
- STDOUT.winsize[1] - tasks_column_length - 2
21
- )
22
- if split_comment.size > 0
17
+ if help_verbatim[:comments].size > 0
18
+ help_verbatim[:comments].each_with_index do |comment, comment_line|
19
+ split_comment = split_verbatim(
20
+ comment,
21
+ STDOUT.winsize[1] - tasks_column_length - 2
22
+ )
23
23
  split_comment.map.with_index do |chunk, chunk_line|
24
24
  text = comment_line == 0 && chunk_line == 0 ?
25
- name_verbatim :
26
- " " * tasks_column_length
25
+ name_verbatim :
26
+ " " * tasks_column_length
27
27
  text += chunk
28
28
  output += "#{Markdown::Engine.new(text).to_ansi}\n"
29
29
  end
30
- else
31
- output += "#{Markdown::Engine.new(name_verbatim).to_ansi}\n"
32
30
  end
31
+ else
32
+ output += "#{Markdown::Engine.new(name_verbatim).to_ansi}\n"
33
33
  end
34
34
 
35
35
  output
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurélien Delogu