rate-card 0.1.4 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/rate_card/tui/app.rb +8 -2
- data/lib/rate_card/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: 21c45d1eea2e85a47a9f268250611d10548eb3b812d4d5dd27716506c9802e3e
|
|
4
|
+
data.tar.gz: c209d3d667be368253081ded2e7aab44f9138cefebeb086d27257f137b92538d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ae5c80051382299425a11519bf0f8fa8132906f58cbf34c971480cb28989857fb12aff2f7099a1709187109a1e6bb530c778a2b5da3e6c1309bbede94cee8d6
|
|
7
|
+
data.tar.gz: b90f381a9eb2f54c2b69a5653ca1c71e909210787040fe7e67e5872fd759efda0eca6a7a5b66e8df58fb9d9b615d718bac6aaeb062befad1e61d62cebb643463
|
data/lib/rate_card/tui/app.rb
CHANGED
|
@@ -439,10 +439,16 @@ module RateCard
|
|
|
439
439
|
next_pass
|
|
440
440
|
end
|
|
441
441
|
|
|
442
|
+
# Does not clear @spec when there is no next pass: Bubbletea renders once
|
|
443
|
+
# more before a returned Bubbletea.quit actually stops the loop, and
|
|
444
|
+
# that render still hits :fetching's view, which reads @spec. Leaving it
|
|
445
|
+
# pointed at the just-finished pass keeps that last render honest rather
|
|
446
|
+
# than crashing on a nil spec.
|
|
442
447
|
def next_pass
|
|
443
|
-
|
|
444
|
-
return Bubbletea.quit if
|
|
448
|
+
next_spec = @pending_specs.shift
|
|
449
|
+
return Bubbletea.quit if next_spec.nil?
|
|
445
450
|
|
|
451
|
+
@spec = next_spec
|
|
446
452
|
@pass_index += 1
|
|
447
453
|
@completed = 0
|
|
448
454
|
@failed = 0
|
data/lib/rate_card/version.rb
CHANGED