lib/cli/ui/stdout_router.rb in cli-ui-1.4.0 vs lib/cli/ui/stdout_router.rb in cli-ui-1.5.0
- old
+ new
@@ -159,10 +159,10 @@
#{on_streams.reject { |s| s.respond_to?(:write) }.map.with_index { |s| s.class.to_s }.join("\n")}
EOF
end
require 'securerandom'
- id = format("%05d", rand(10**5))
+ id = format('%05d', rand(10**5))
Thread.current[:cliui_output_id] = {
id: id,
streams: on_streams,
}
yield(id)