summaryrefslogtreecommitdiff
path: root/lib/rubygems/query_utils.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 13:00:54 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit4bb5ce8188c7623106d124d3398c6b73bfa8ecd4 ()
treedbf435e5eef48a59ff5360e1f65be58ca78ba30c /lib/rubygems/query_utils.rb
parent83f9aa8f02c9fdcf8d22f0859c4f4fb3ad30bb42 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/StringLiteralsInInterpolation
https://.com/rubygems/rubygems/commit/cb554f6eb7
-rw-r--r--lib/rubygems/query_utils.rb8
1 files changed, 4 insertions, 4 deletions
@@ -263,7 +263,7 @@ module Gem::QueryUtils
end
end
- entry << " (#{list.join ', '})"
end
def make_entry(entry_tuples, platforms)
@@ -282,7 +282,7 @@ module Gem::QueryUtils
end
def spec_authors(entry, spec)
- authors = "Author#{spec.authors.length > 1 ? 's' : ''}: ".dup
authors << spec.authors.join(", ")
entry << format_text(authors, 68, 4)
end
@@ -296,7 +296,7 @@ module Gem::QueryUtils
def spec_license(entry, spec)
return if spec.license.nil? || spec.license.empty?
- licenses = "License#{spec.licenses.length > 1 ? 's' : ''}: ".dup
licenses << spec.licenses.join(", ")
entry << "\n" << format_text(licenses, 68, 4)
end
@@ -327,7 +327,7 @@ module Gem::QueryUtils
if platforms.length == 1
title = platforms.values.length == 1 ? "Platform" : "Platforms"
- entry << " #{title}: #{platforms.values.sort.join(', ')}\n"
else
entry << " Platforms:\n"