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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d288b65ba528d8919e377e8fa1d5e6fcb58ca96096f5191a331f06afb4d82881
4
- data.tar.gz: ff4950e75067c710f02ddb0c03762b1895cda0cc85e20538053e845b23dde5f5
3
+ metadata.gz: 769c7c296ad84ba0ebd51a77daa0a20881056a387b7cb5cec80cf37b5315132d
4
+ data.tar.gz: bf7fcc382c5c796554820685e873a6318b5bb698b4a89111840fc9c81fb762e7
5
5
  SHA512:
6
- metadata.gz: 2445a68018cdbd43e5b2abd72acdc56b6b64249566d38a18afba7b9961d529ca12c345a60d3baa523ba9578384d9c26fd3a2402d3e685548077185026c9f37b3
7
- data.tar.gz: f83d5a7a057b81684cf16a0b22c59b18cf177beba52db9c1431453e7493dd9b4854dae1b9472a930870b83881d2a404f07b57b5cbc0cc594a781293cda839ab1
6
+ metadata.gz: 2f1d3001275fca9f14893f9e4a4091913afd519a7c4fe877c8583f46c1d8c29b1a444ab5eed2a93dc1b63e4cc6592c38c42f28031c30a5701c75f133728e7531
7
+ data.tar.gz: da8192927d5499ca34b5b0dc9f55ba4c2b187092adc57f82b2f5523c070c13e3546de38a1e1ee871a6d00dfed4feb658d8192dd502aef9634caeedef59f6ccf0
@@ -38,7 +38,7 @@ module Starlined
38
38
  end
39
39
 
40
40
  def pass_step
41
- start_step
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(nil, @animation&.message)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starlined
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starlined
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mier