Skip to content

Commit c6da019

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Add blank line after every question
To try make output a bit less messy. ruby/rubygems@92c8bc6769
1 parent 9942ff7 commit c6da019

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

lib/bundler/cli/gem.rb

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def run
237237
end
238238

239239
if use_git
240-
Bundler.ui.info "Initializing git repo in #{target}"
240+
Bundler.ui.info "\nInitializing git repo in #{target}"
241241
require "shellwords"
242242
`git init #{target.to_s.shellescape}`
243243

@@ -269,7 +269,7 @@ def run
269269
# Open gemspec in editor
270270
open_editor(options["edit"], target.join("#{name}.gemspec")) if options[:edit]
271271

272-
Bundler.ui.info "Gem '#{name}' was successfully created. " \
272+
Bundler.ui.info "\nGem '#{name}' was successfully created. " \
273273
"For more information on making a RubyGem visit https://bundler.io/guides/creating_gem.html"
274274
end
275275

@@ -284,7 +284,7 @@ def ask_and_set(key, prompt, explanation)
284284
choice = Bundler.settings["gem.#{key}"] if choice.nil?
285285

286286
if choice.nil?
287-
Bundler.ui.info explanation
287+
Bundler.ui.info "\n#{explanation}"
288288
choice = Bundler.ui.yes? "#{prompt} y/(n):"
289289
Bundler.settings.set_global("gem.#{key}", choice)
290290
end
@@ -307,7 +307,7 @@ def ask_and_set_test_framework
307307
test_framework = options[:test] || Bundler.settings["gem.test"]
308308

309309
if test_framework.to_s.empty?
310-
Bundler.ui.info "Do you want to generate tests with your gem?"
310+
Bundler.ui.info "\nDo you want to generate tests with your gem?"
311311
Bundler.ui.info hint_text("test")
312312

313313
result = Bundler.ui.ask "Enter a test framework. rspec/minitest/test-unit/(none):"
@@ -347,12 +347,11 @@ def ask_and_set_ci
347347
ci_template = options[:ci] || Bundler.settings["gem.ci"]
348348

349349
if ci_template.to_s.empty?
350-
Bundler.ui.info "Do you want to set up continuous integration for your gem? " \
350+
Bundler.ui.info "\nDo you want to set up continuous integration for your gem? " \
351351
"Supported services:\n" \
352352
"* CircleCI: https://circleci.com/\n" \
353353
"* GitHub Actions: https://github.com/features/actions\n" \
354-
"* GitLab CI: https://docs.gitlab.com/ee/ci/\n" \
355-
"\n"
354+
"* GitLab CI: https://docs.gitlab.com/ee/ci/\n"
356355
Bundler.ui.info hint_text("ci")
357356

358357
result = Bundler.ui.ask "Enter a CI service. github/gitlab/circle/(none):"
@@ -380,11 +379,10 @@ def ask_and_set_linter
380379
linter_template = deprecated_rubocop_option if linter_template.nil?
381380

382381
if linter_template.to_s.empty?
383-
Bundler.ui.info "Do you want to add a code linter and formatter to your gem? " \
382+
Bundler.ui.info "\nDo you want to add a code linter and formatter to your gem? " \
384383
"Supported Linters:\n" \
385384
"* RuboCop: https://rubocop.org\n" \
386-
"* Standard: https://github.com/standardrb/standard\n" \
387-
"\n"
385+
"* Standard: https://github.com/standardrb/standard\n"
388386
Bundler.ui.info hint_text("linter")
389387

390388
result = Bundler.ui.ask "Enter a linter. rubocop/standard/(none):"

0 commit comments

Comments
 (0)