aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-05-29 15:50:43 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commit455330143aed490f867cde2c1a5d0db81c2b7c76 (patch)
treebbd6a060054e764672496f6e7acf6c3ac20263da
parent257e6cda329dcc1d68e5d35893f5877de91d5978 (diff)
downloadruby-455330143aed490f867cde2c1a5d0db81c2b7c76.tar.gz
[rubygems/rubygems] Mention that some validations only warn
https://github.com/rubygems/rubygems/commit/32c7f7f484
-rw-r--r--lib/rubygems/specification_policy.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb
index 2407b2e9e3..f752240368 100644
--- a/lib/rubygems/specification_policy.rb
+++ b/lib/rubygems/specification_policy.rb
@@ -37,6 +37,9 @@ class Gem::SpecificationPolicy
#
# Raises InvalidSpecificationException if the spec does not pass the
# checks.
+ #
+ # It also performs some validations that do not raise but print warning
+ # messages instead.
def validate(strict = false)
validate_nil_attributes