diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-30 21:23:37 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2020-09-15 20:55:40 +0900 |
| commit | 7d76314885be3532999684356657ce36da84d04e (patch) | |
| tree | aae23ff9ce30ff03c1f0867c0bc46ea968e8e324 /lib/rubygems/specification_policy.rb | |
| parent | 3590f082442afc4506250f5274a7877371a112de (diff) | |
Merge RubyGems 3.1.4
Diffstat (limited to 'lib/rubygems/specification_policy.rb')
| -rw-r--r-- | lib/rubygems/specification_policy.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb index c3c496db9b..b7fb2cfa1a 100644 --- a/lib/rubygems/specification_policy.rb +++ b/lib/rubygems/specification_policy.rb @@ -75,6 +75,8 @@ class Gem::SpecificationPolicy validate_dependencies + validate_removed_attributes + if @warnings > 0 if strict error "specification has warnings" @@ -408,6 +410,12 @@ http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard li warning "#{executable_path} is missing #! line" end + def validate_removed_attributes # :nodoc: + @specification.removed_method_calls.each do |attr| + warning("#{attr} is deprecated and ignored. Please remove this from your gemspec to ensure that your gem continues to build in the future.") + end + end + def warning(statement) # :nodoc: @warnings += 1 @@ -421,7 +429,7 @@ http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard li end def help_text # :nodoc: - "See http://guides.rubygems.org/specification-reference/ for help" + "See https://guides.rubygems.org/specification-reference/ for help" end end |
