method

eval_yaml_gemspec

ruby latest stable - Class: Bundler

Method not available on this version

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

eval_yaml_gemspec(path, contents)
private

No documentation available.

# File lib/bundler.rb, line 511
    def eval_yaml_gemspec(path, contents)
      Kernel.send(:require, "bundler/psyched_yaml")

      # If the YAML is invalid, Syck raises an ArgumentError, and Psych
      # raises a Psych::SyntaxError. See psyched_yaml.rb for more info.
      Gem::Specification.from_yaml(contents)
    rescue YamlLibrarySyntaxError, ArgumentError, Gem::EndOfYAMLException, Gem::Exception
      eval_gemspec(path, contents)
    end