lib/startup_time/app.rb in startup-time-1.1.0 vs lib/startup_time/app.rb in startup-time-1.1.1
- old
+ new
@@ -1,13 +1,19 @@
# frozen_string_literal: true
require 'benchmark'
-require 'bundler/setup'
require 'komenda'
require 'shellwords' # for Array#shelljoin
require 'tty/table'
+# FIXME we only need bundler/setup here, but it appears to create an incomplete
+# Bundler object which (sometimes) confuses Komenda as well as causing a
+# Gem::LoadError (for unicode-display_width)
+#
+# require 'bundler/setup'
+require 'bundler'
+
module StartupTime
# StartupTime::App - the entry point for the app.
# selects an action based on the command-line options and runs it.
class App
EXPECTED_OUTPUT = /\AHello, world!\r?\n\z/
@@ -25,10 +31,10 @@
# available to other components
Services.once(:options) { @options }
end
# run the command corresponding to the command-line options:
- # either an auxiliary command (e.g. clean the build dir
+ # either an auxiliary command (e.g. clean the build directory
# or print a help message) or the default command, which runs
# the selected benchmark-tests
def run
if @verbosity == :verbose
# used by StartupTime::App#time to dump the command line