From 1b77aa30b549742531131dc2083b87fdaf5887cf Mon Sep 17 00:00:00 2001 From: Fabio Pelosin Date: Mon, 2 Dec 2013 03:35:39 +0100 Subject: [PATCH] [Specification] Ensure that yaml has been required --- lib/cocoapods-core/specification/yaml.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cocoapods-core/specification/yaml.rb b/lib/cocoapods-core/specification/yaml.rb index 520c6547e..35d0791a6 100644 --- a/lib/cocoapods-core/specification/yaml.rb +++ b/lib/cocoapods-core/specification/yaml.rb @@ -5,6 +5,7 @@ module YAMLSupport # @return [String] the yaml representation of the specification. # def to_yaml + require 'yaml' to_hash.to_yaml end @@ -57,6 +58,7 @@ def self.from_hash(hash, parent = nil) # @return [Specification] the specification # def self.from_yaml(yaml) + require 'yaml' hash = YAML.load(yaml) from_hash(hash) end