summaryrefslogtreecommitdiff
path: root/lib/rubygems/specification_policy.rb
diff options
context:
space:
mode:
authorJosef Šimánek <[email protected]>2020-04-19 17:43:31 +0200
committerHiroshi SHIBATA <[email protected]>2020-05-08 07:38:50 +0900
commit856cbbdd52eaafd27c21a8f4dea7e89373667694 ()
treec9bb3c9574c83d53e3e0fdbbfe6e454e5f57235a /lib/rubygems/specification_policy.rb
parent4dd46dbad046c0c5902f0217243c3207dbb274b5 (diff)
[rubygems/rubygems] Track removed methods calls and warn during build time.
move rubyforge_project= to removed methods https://.com/rubygems/rubygems/commit/223f7fd470
Notes: Merged: https://.com/ruby/ruby/pull/3087
-rw-r--r--lib/rubygems/specification_policy.rb10
1 files changed, 4 insertions, 6 deletions
@@ -21,8 +21,6 @@ class Gem::SpecificationPolicy
funding_uri
].freeze # :nodoc:
- DEPRECATED_ATTRIBUTES = [:rubyforge_project].freeze #:nodoc:
-
def initialize(specification)
@warnings = 0
@@ -78,7 +76,7 @@ class Gem::SpecificationPolicy
validate_dependencies
- validate_deprecated_attributes
if @warnings > 0
if strict
@@ -413,9 +411,9 @@ http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard li
warning "#{executable_path} is missing #! line"
end
- def validate_deprecated_attributes # :nodoc:
- DEPRECATED_ATTRIBUTES.each do |attr|
- warning("#{attr} is deprecated") unless @specification.send(attr).nil?
end
end