Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Gem::Specification#requirements

requirements

Lists the external (to RubyGems) requirements that must be met for this gem to work. It’s simply information for the user.

Usage:

Example
spec.requirements << 'libmagick, v6.0'
spec.requirements << 'A good graphics card'