From 2282110c551a3424e4c866e969a82227128818c9 Mon Sep 17 00:00:00 2001 From: Andy Leverenz Date: Thu, 29 Jun 2023 16:10:38 -0500 Subject: [PATCH] Add psych dependency for yaml configs --- lib/railsui/configuration.rb | 2 +- railsui.gemspec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/railsui/configuration.rb b/lib/railsui/configuration.rb index 36854ebc..2595b54b 100644 --- a/lib/railsui/configuration.rb +++ b/lib/railsui/configuration.rb @@ -19,7 +19,7 @@ def initialize(options = {}) def self.load! if File.exist?(config_path) - config = Psych.safe_load_file(config_path, permitted_classes: [Hash, Railsui::Configuration]) + config = Psych.load_file(config_path, permitted_classes: [Hash, Railsui::Configuration]) return config if config.is_a?(Railsui::Configuration) new(config) else diff --git a/railsui.gemspec b/railsui.gemspec index d301af04..0d3726f9 100644 --- a/railsui.gemspec +++ b/railsui.gemspec @@ -29,4 +29,5 @@ Gem::Specification.new do |spec| spec.add_dependency 'rails', '>= 7.0' spec.add_dependency 'inline_svg', '>= 1.9' + spec.add_dependency 'psych' end