lib/makit/yaml.rb in makit-0.0.56 vs lib/makit/yaml.rb in makit-0.0.57

- old
+ new

@@ -1,19 +1,19 @@ -require 'yaml' - -# frozen_string_literal: true - -# This module provides classes for the Makit gem. -module Makit - class Yaml - def self.validate_yaml(file_path) - begin - YAML.load_file(file_path) - puts "#{file_path} is a valid YAML file." - rescue Psych::SyntaxError => e - raise"YAML validation failed for #{file_path}: #{e}" - end - end - end -end - - +require 'yaml' + +# frozen_string_literal: true + +# This module provides classes for the Makit gem. +module Makit + class Yaml + def self.validate_yaml(file_path) + begin + YAML.load_file(file_path) + puts "#{file_path} is a valid YAML file." + rescue Psych::SyntaxError => e + raise"YAML validation failed for #{file_path}: #{e}" + end + end + end +end + +