summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-05-29 15:45:33 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commit15018f20ddfb18f87bff11e20ac1b23f4d9fa2be (patch)
tree13961b0af482075eb1c1a6138c84020fbe841784
parent5eacf4e72cffadde3c4c2b6dada6cd5343310ae3 (diff)
[rubygems/rubygems] Deprecate some methods that are only there for compatibility
https://github.com/rubygems/rubygems/commit/b4948bda74
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3184
-rw-r--r--lib/rubygems/specification.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index 362cb3756b..b1c5ab2269 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -2590,6 +2590,7 @@ class Gem::Specification < Gem::BasicSpecification
def validate_metadata
Gem::SpecificationPolicy.new(self).validate_metadata
end
+ rubygems_deprecate :validate_metadata
##
# Checks that dependencies use requirements as we recommend. Warnings are
@@ -2598,12 +2599,14 @@ class Gem::Specification < Gem::BasicSpecification
def validate_dependencies
Gem::SpecificationPolicy.new(self).validate_dependencies
end
+ rubygems_deprecate :validate_dependencies
##
# Checks to see if the files to be packaged are world-readable.
def validate_permissions
Gem::SpecificationPolicy.new(self).validate_permissions
end
+ rubygems_deprecate :validate_permissions
##
# Set the version to +version+, potentially also setting