summaryrefslogtreecommitdiff
path: root/lib/rubygems/specification_policy.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2020-04-20 18:32:51 +0200
committerHiroshi SHIBATA <[email protected]>2020-05-08 07:38:50 +0900
commit0b40279d7dcd741ee8401f6b5fd2edbd431ea0c4 ()
tree88f069e7fc46071a984005371965cab9e6013985 /lib/rubygems/specification_policy.rb
parent2205ae8af5928c97a28f281f029bb3be290bf010 (diff)
Normalize heredoc case in rubygems code base
Notes: Merged: https://.com/ruby/ruby/pull/3087
-rw-r--r--lib/rubygems/specification_policy.rb8
1 files changed, 4 insertions, 4 deletions
@@ -326,19 +326,19 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use:
if !Gem::Licenses.match?(license)
suggestions = Gem::Licenses.suggestions(license)
- message = <<-warning
license value '#{license}' is invalid. Use a license identifier from
http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard license.
- warning
message += "Did you mean #{suggestions.map { |s| "'#{s}'"}.join(', ')}?\n" unless suggestions.nil?
warning(message)
end
end
- warning <<-warning if licenses.empty?
licenses is empty, but is recommended. Use a license identifier from
http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard license.
- warning
end
LAZY = '"FIxxxXME" or "TOxxxDO"'.gsub(/xxx/, '')