diff options
author | Josef Šimánek <[email protected]> | 2020-04-19 17:43:31 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-05-08 07:38:50 +0900 |
commit | 856cbbdd52eaafd27c21a8f4dea7e89373667694 () | |
tree | c9bb3c9574c83d53e3e0fdbbfe6e454e5f57235a /lib/rubygems/specification_policy.rb | |
parent | 4dd46dbad046c0c5902f0217243c3207dbb274b5 (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.rb | 10 |
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 |