[rubygems/rubygems] Deprecate Gem::Specification#datadir and will remove it at RG 4.1

e99cdab171
This commit is contained in:
Hiroshi SHIBATA 2025-08-05 18:45:25 +09:00
parent 51f88f9922
commit 052b38a5d9
3 changed files with 3 additions and 36 deletions

View file

@ -199,6 +199,9 @@ class Gem::BasicSpecification
File.expand_path(File.join(gems_dir, full_name, "data", name))
end
extend Gem::Deprecate
rubygems_deprecate :datadir, :none, "4.1"
##
# Full path of the target library file.
# If the file is not in this gem, return nil.