diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/specification.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index d22b0156e3..40a5bddff6 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -288,6 +288,15 @@ class Gem::Specification < Gem::BasicSpecification # :section: Recommended gemspec attributes ## + # The version of Ruby required by this gem + # + # Usage: + # + # spec.required_ruby_version = '>= 2.7.0' + + attr_reader :required_ruby_version + + ## # A long description of this gem # # The description should be more detailed than the summary but not @@ -523,11 +532,6 @@ class Gem::Specification < Gem::BasicSpecification end ## - # The version of Ruby required by this gem - - attr_reader :required_ruby_version - - ## # The RubyGems version required by this gem attr_reader :required_rubygems_version |