run_tasks 2.0.4 → 2.0.5

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 +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 916804a11a0e887ae538b1956504005a38a8b37b
4
- data.tar.gz: dadc3eea13d28f78bcc763bcebf178b46491014e
3
+ metadata.gz: a224c7c9f7f4da9cda370ed7ac53d2698934d79d
4
+ data.tar.gz: b734e7eeb183f54b1bba3ff3045fbff710930199
5
5
  SHA512:
6
- metadata.gz: 180a5dccb4828665fbd166ba5d0516c7412df2c433c3f0981de688386961702ee4f8c0e1155c3246dff545164c32f655b5cf1db5684c783b3649d8a579d8163d
7
- data.tar.gz: 1a5f0298e570a215e5b70e2efbe7838216217e28dbb5e787139ddbc4bf9e5f1c9a67f9e164ec789eaddbad21bc262b3e956b601309bd6002fbc06e16bcbe80e0
6
+ metadata.gz: ed84d2e2158c842ce0dc88497215cee170424d42db2cbd4a32c63f741f309b18e00f395600a4d1c918e5e1e8fb1e39da82541383f1e35ab7755a8b8131d6b57d
7
+ data.tar.gz: f19870eb3d1920b8e9cd79adad2a0fdeaeca67a6619c353cdb6d64c839d4caf7ee644c674ab89f30279670a8e5903918a30fb1ab5b6fbe7f2ed5669e1bb3e413
data/src/run/core/help.rb CHANGED
@@ -46,10 +46,10 @@ module Run
46
46
  def self.extract_help_verbatims(contents, tasks)
47
47
  lines = contents.lines.map(&:chomp)
48
48
 
49
- tasks.map do |names:, line:|
50
- lines_to_scan = (0..(line - 2 < 0 ? 0 : line - 2)).to_a.reverse
49
+ tasks.map do |task|
50
+ lines_to_scan = (0..(task[:line] - 2 < 0 ? 0 : task[:line] - 2)).to_a.reverse
51
51
  {
52
- names: names,
52
+ names: task[:names],
53
53
  comments: lines_to_scan.each_with_object([]) do |current_line, comments|
54
54
  match = /^\s*#\s*(?<comment>.*?)\s*$/.match(lines[current_line])
55
55
  break comments if !match
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.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurélien Delogu