method

validate

ruby latest stable - Class: Bundler::RubygemsIntegration

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(spec)
public

No documentation available.

# File lib/bundler/rubygems_integration.rb, line 60
    def validate(spec)
      Bundler.ui.silence { spec.validate(false) }
    rescue Gem::InvalidSpecificationException => e
      error_message = "The gemspec at #{spec.loaded_from} is not valid. Please fix this gemspec.\n"          "The validation error was '#{e.message}'\n"
      raise Gem::InvalidSpecificationException.new(error_message)
    rescue Errno::ENOENT
      nil
    end