bin/render in proforma-1.0.0.pre.alpha vs bin/render in proforma-1.0.0

- old
+ new

@@ -1,17 +1,22 @@ #!/usr/bin/env ruby # frozen_string_literal: true +# +# Copyright (c) 2018-present, Blue Marble Payroll, LLC +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. +# + require 'bundler/setup' require 'proforma' require 'fileutils' require 'yaml' require 'pry' def read_yaml(filename) - # rubocop:disable Security/YAMLLoad - YAML.load(read(filename)) - # rubocop:enable Security/YAMLLoad + YAML.safe_load(read(filename)) end def read(filename) File.open(filename, 'r:bom|utf-8').read end