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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/each +4 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca854a994308f8b2ee7fed80c26e9dd141112db047e9678aa9ae026bb4ece9cd
4
- data.tar.gz: 873f8c9dd7326c6fa3f32d53fa26b95a38e3e265ee40c07ffc6927aa80e8b306
3
+ metadata.gz: 44309e092f94e766bcf71b6aa5dfaf199f6a03d9c5c07b2f5230f1e7a5463313
4
+ data.tar.gz: 63a19748a5f3883017241b1a878e7367efaa2cf06b0ba74d03391d30edd4f54e
5
5
  SHA512:
6
- metadata.gz: 0b81831f4bedec525b4d50c2e44f01a24185c8dc801258937c8f1ed9258de200f83fa8b966095cd5fe1ed245a71a19593c4e0ba48683dda338fde5b67cdb87bd
7
- data.tar.gz: d2d2e4cde64439d58e59283c2fbfe415d0cd566c3d8eba09f35fc051a0478584bd4811cb136e2f79e5b4334e420d9f14c6bb85acf38542863c74547b996c1d97
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
- stdout = parsed.options.stdout && !parsed.options.progress
56
- stderr = parsed.options.stderr && !parsed.options.progress
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:)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-each
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié