You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a question to configure Zeitwerk when creating new gems (false by default). It
also supports a --zeitwerk flag to do it:
bundle gem mygem --zeitwerk
Copy file name to clipboardExpand all lines: bundler/lib/bundler/cli.rb
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -549,6 +549,7 @@ def viz
549
549
desc: "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
550
550
method_option:ext,type: :string,desc: "Generate the boilerplate for C extension code.",enum: EXTENSIONS
551
551
method_option:git,type: :boolean,default: true,desc: "Initialize a git repo inside your library."
552
+
method_option:zeitwerk,type: :boolean,desc: "Configure Zeitwerk as the class loader. Set a default with `bundle config set --global gem.zeitwerk true`."
552
553
method_option:mit,type: :boolean,desc: "Generate an MIT license file. Set a default with `bundle config set --global gem.mit true`."
553
554
method_option:rubocop,type: :boolean,desc: "Add rubocop to the generated Rakefile and gemspec. Set a default with `bundle config set --global gem.rubocop true`."
554
555
method_option:changelog,type: :boolean,desc: "Generate changelog file. Set a default with `bundle config set --global gem.changelog true`."
0 commit comments