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