method

validate

ruby latest stable - Class: Gem::SpecificationPolicy

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

validate(strict = false)
public

Checks that the specification contains all required fields, and does a very basic sanity check.

Raises InvalidSpecificationException if the spec does not pass the checks.