diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-12-30 13:34:16 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-11-08 09:04:28 +0900 |
commit | e6e4b4884d42a228aa342758318e1621c2552b62 (patch) | |
tree | a140274ab4242e37cad514878f1e5e9b2299c98c /lib/rubygems | |
parent | 9afd2957edca3f2d72476f1a187ef34ec99b5110 (diff) | |
download | ruby-e6e4b4884d42a228aa342758318e1621c2552b62.tar.gz |
[rubygems/rubygems] Hack to get `Gem::Specification#extensions_dir` documented
https://github.com/rubygems/rubygems/commit/625b8293f7
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/specification.rb | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 6f69ee22ce..31ef29f02f 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -531,13 +531,6 @@ class Gem::Specification < Gem::BasicSpecification attr_reader :required_rubygems_version ## - # The version of RubyGems used to create this gem. - # - # Do not set this, it is set automatically when the gem is packaged. - - attr_accessor :rubygems_version - - ## # The key used to sign this gem. See Gem::Security for details. attr_accessor :signing_key @@ -725,6 +718,21 @@ class Gem::Specification < Gem::BasicSpecification end ###################################################################### + # :section: Read-only attributes + + ## + # The version of RubyGems used to create this gem. + + attr_accessor :rubygems_version + + ## + # The path where this gem installs its extensions. + + def extensions_dir + @extensions_dir ||= super + end + + ###################################################################### # :section: Specification internals ## |