aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-04-20 18:32:51 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 07:38:50 +0900
commit0b40279d7dcd741ee8401f6b5fd2edbd431ea0c4 (patch)
tree88f069e7fc46071a984005371965cab9e6013985 /lib
parent2205ae8af5928c97a28f281f029bb3be290bf010 (diff)
downloadruby-0b40279d7dcd741ee8401f6b5fd2edbd431ea0c4.tar.gz
Normalize heredoc case in rubygems code base
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems.rb4
-rw-r--r--lib/rubygems/specification_policy.rb8
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 9c074a375f..dc26ea89b2 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -394,11 +394,11 @@ module Gem
target[k] = v
when Array
unless Gem::Deprecate.skip
- warn <<-eowarn
+ warn <<-EOWARN
Array values in the parameter to `Gem.paths=` are deprecated.
Please use a String or nil.
An Array (#{env.inspect}) was passed in from #{caller[3]}
- eowarn
+ EOWARN
end
target[k] = v.join File::PATH_SEPARATOR
end
diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb
index 4b525df7d7..e830d9af48 100644
--- a/lib/rubygems/specification_policy.rb
+++ b/lib/rubygems/specification_policy.rb
@@ -326,19 +326,19 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use:
if !Gem::Licenses.match?(license)
suggestions = Gem::Licenses.suggestions(license)
- message = <<-warning
+ 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
+ WARNING
message += "Did you mean #{suggestions.map { |s| "'#{s}'"}.join(', ')}?\n" unless suggestions.nil?
warning(message)
end
end
- warning <<-warning if licenses.empty?
+ 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
+ WARNING
end
LAZY = '"FIxxxXME" or "TOxxxDO"'.gsub(/xxx/, '')