Skip to content

Commit 7e6a0b5

Browse files
Remove unintended new line in gem query deprecation message
With it, the warning looks weird, like this: ``` WARNING: query command is deprecated. It will be removed in Rubygems 4. WARNING: It is recommended that you use `gem search` or `gem list` instead. ```
1 parent 61447f3 commit 7e6a0b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rubygems/commands/query_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Gem::Commands::QueryCommand < Gem::Command
1313
def deprecation_warning
1414
warning_without_suggested_alternatives
1515

16-
message = "\nIt is recommended that you use `gem search` or `gem list` instead.\n"
16+
message = "It is recommended that you use `gem search` or `gem list` instead.\n"
1717
alert_warning message unless Gem::Deprecate.skip
1818
end
1919

test/rubygems/test_gem_gem_runner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_query_is_deprecated
7878
end
7979

8080
assert_match(/WARNING: query command is deprecated. It will be removed in Rubygems [0-9]+/, @ui.error)
81-
assert_match(/It is recommended that you use `gem search` or `gem list` instead/, @ui.error)
81+
assert_match(/WARNING: It is recommended that you use `gem search` or `gem list` instead/, @ui.error)
8282
end
8383

8484
def test_info_succeeds

0 commit comments

Comments
 (0)