ruby-changes:61527
From: Frank <ko1@a...>
Date: Fri, 5 Jun 2020 07:34:01 +0900 (JST)
Subject: [ruby-changes:61527] f0ae5ac313 (master): [rubygems/rubygems] Display test_framework_hint before prompting for user selection
https://git.ruby-lang.org/ruby.git/commit/?id=f0ae5ac313 From f0ae5ac3135a6cf26666ec6ba33d34a738df7573 Mon Sep 17 00:00:00 2001 From: Frank Lam <ryzingsun11@y...> Date: Sun, 24 May 2020 20:48:38 +0800 Subject: [rubygems/rubygems] Display test_framework_hint before prompting for user selection * On ubuntu-bundler/ubuntu_bundler3, longer lines of text get cut off after ~50 characters * Example: https://github.com/rubygems/rubygems/pull/3544/checks?check_run_id=703658810 https://github.com/rubygems/rubygems/commit/6a17847fd8 diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb index 2c2ed27..d069ca3 100644 --- a/lib/bundler/cli/gem.rb +++ b/lib/bundler/cli/gem.rb @@ -221,8 +221,9 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/cli/gem.rb#L221 if test_framework.to_s.empty? Bundler.ui.confirm "Do you want to generate tests with your gem?" - result = Bundler.ui.ask "Type 'rspec', 'minitest' or 'test-unit' to generate those test files now. \n" \ - "#{test_framework_hint} rspec/minitest/test-unit/(none):" + Bundler.ui.info test_framework_hint + result = Bundler.ui.ask "Type 'rspec', 'minitest' or 'test-unit' to generate those test files now. " \ + "rspec/minitest/test-unit/(none):" if result =~ /rspec|minitest|test-unit/ test_framework = result else -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/