diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-27 12:06:12 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-28 15:25:45 +0900 |
commit | cd4b4ac73763b6d5e0c8f296af90a6cfdd77fd1c (patch) | |
tree | 408c4c010eaf731a28ca6079eb1f2ea29fa25ab1 /lib | |
parent | 9cfd8330ca875a60c057f97eafb151682dcc581b (diff) | |
download | ruby-cd4b4ac73763b6d5e0c8f296af90a6cfdd77fd1c.tar.gz |
[rubygems/rubygems] Use double-quotes instead of single-quotes in warnings
https://github.com/rubygems/rubygems/commit/c7f1cb9941
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/specification_policy.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb index ab6aaa89d6..a5e7499531 100644 --- a/lib/rubygems/specification_policy.rb +++ b/lib/rubygems/specification_policy.rb @@ -162,7 +162,7 @@ class Gem::SpecificationPolicy if prev = seen[dep.type][dep.name] error_messages << <<-MESSAGE duplicate dependency on #{dep}, (#{prev.requirement}) use: - add_#{dep.type}_dependency '#{dep.name}', '#{dep.requirement}', '#{prev.requirement}' + add_#{dep.type}_dependency \"#{dep.name}\", \"#{dep.requirement}\", \"#{prev.requirement}\" MESSAGE end @@ -205,16 +205,16 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use: base = segments.first 2 recommendation = if [">", ">="].include?(op) && segments == [0] - " use a bounded requirement, such as '~> x.y'" + " use a bounded requirement, such as \"~> x.y\"" else bugfix = if op == ">" - ", '> #{dep_version}'" + ", \"> #{dep_version}\"" elsif op == ">=" && base != segments - ", '>= #{dep_version}'" + ", \">= #{dep_version}\"" end " if #{dep.name} is semantically versioned, use:\n" \ - " add_#{dep.type}_dependency '#{dep.name}', '~> #{base.join "."}'#{bugfix}" + " add_#{dep.type}_dependency \"#{dep.name}\", \"~> #{base.join "."}\"#{bugfix}" end warning_messages << ["open-ended dependency on #{dep} is not recommended", recommendation].join("\n") + "\n" |