starlined 0.2.2 → 0.2.3
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.
- checksums.yaml +4 -4
- data/lib/starlined/runner.rb +5 -4
- data/lib/starlined/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 769c7c296ad84ba0ebd51a77daa0a20881056a387b7cb5cec80cf37b5315132d
|
|
4
|
+
data.tar.gz: bf7fcc382c5c796554820685e873a6318b5bb698b4a89111840fc9c81fb762e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f1d3001275fca9f14893f9e4a4091913afd519a7c4fe877c8583f46c1d8c29b1a444ab5eed2a93dc1b63e4cc6592c38c42f28031c30a5701c75f133728e7531
|
|
7
|
+
data.tar.gz: da8192927d5499ca34b5b0dc9f55ba4c2b187092adc57f82b2f5523c070c13e3546de38a1e1ee871a6d00dfed4feb658d8192dd502aef9634caeedef59f6ccf0
|
data/lib/starlined/runner.rb
CHANGED
|
@@ -38,7 +38,7 @@ module Starlined
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def pass_step
|
|
41
|
-
|
|
41
|
+
@animation&.increment_step
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
private
|
|
@@ -71,7 +71,7 @@ module Starlined
|
|
|
71
71
|
result = callback.call
|
|
72
72
|
end_step(aka: aka, no_count: no_count)
|
|
73
73
|
|
|
74
|
-
handle_error(result, print_err) unless result.last.success?
|
|
74
|
+
handle_error(result, print_err, aka) unless result.last.success?
|
|
75
75
|
|
|
76
76
|
result
|
|
77
77
|
end
|
|
@@ -102,11 +102,12 @@ module Starlined
|
|
|
102
102
|
@animation&.start unless @running_instances.zero?
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
def handle_error(result, print_err)
|
|
105
|
+
def handle_error(result, print_err, aka = nil)
|
|
106
106
|
return unless print_err
|
|
107
107
|
|
|
108
|
+
message = @animation&.message
|
|
108
109
|
stop_animation
|
|
109
|
-
Messages.error(
|
|
110
|
+
Messages.error(aka, message)
|
|
110
111
|
|
|
111
112
|
puts result[1] # stderr
|
|
112
113
|
puts result[0] if result[1].empty? # stdout si stderr está vacío
|
data/lib/starlined/version.rb
CHANGED