Allow [Symbol] when loading YAML

This commit is contained in:
Kamil Trzciński 2015-12-09 20:58:53 +00:00
parent c5dacce4d7
commit b4b9df277b

View file

@ -10,7 +10,7 @@ module Ci
attr_reader :before_script, :image, :services, :variables, :path, :cache
def initialize(config, path = nil)
@config = YAML.safe_load(config)
@config = YAML.safe_load(config, [Symbol])
@path = path
unless @config.is_a? Hash