dorian-each 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/each +4 -8
- 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: 44309e092f94e766bcf71b6aa5dfaf199f6a03d9c5c07b2f5230f1e7a5463313
|
4
|
+
data.tar.gz: 63a19748a5f3883017241b1a878e7367efaa2cf06b0ba74d03391d30edd4f54e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb106b922ffd95dafd6acc877c6a0d4b92a412895ad33dc8dca378f87a334314eb4e7560eb149469554f2a0a1e5969dd504fbff8fcc896b2209d8fcba374f547
|
7
|
+
data.tar.gz: 70a8bdb382804b98de4063cec9d3792a4deb4119cbf2416e491f14f0d11f20c5c7782108f533aca20a357dff67d76d4cdc4907c5eb98b39ea90d448bdc244c4b
|
data/bin/each
CHANGED
@@ -52,17 +52,13 @@ input = $stdin.each_line.to_a.map(&:strip).join("\n") if input.empty?
|
|
52
52
|
inputs = input.lines.map(&:strip)
|
53
53
|
ruby = parsed.arguments.join(" ")
|
54
54
|
debug = parsed.options.debug
|
55
|
-
|
56
|
-
|
55
|
+
progress = parsed.options.progress
|
56
|
+
stdout = parsed.options.stdout
|
57
|
+
stderr = parsed.options.stderr
|
57
58
|
colorize = parsed.options.colorize
|
58
59
|
total = inputs.size
|
59
60
|
format = parsed.options.progress_format
|
60
|
-
|
61
|
-
if parsed.options.progress
|
62
|
-
progress = Dorian::Progress.create(total:, format:)
|
63
|
-
else
|
64
|
-
progress = nil
|
65
|
-
end
|
61
|
+
progress = progress ? Dorian::Progress.create(total:, format:) : nil
|
66
62
|
|
67
63
|
inputs.each do |it|
|
68
64
|
Dorian::Eval.eval(it:, ruby:, debug:, stdout:, stderr:, colorize:)
|