lib/paquito/safe_yaml.rb in paquito-0.10.0 vs lib/paquito/safe_yaml.rb in paquito-0.11.0
- old
+ new
@@ -1,11 +1,20 @@
# frozen_string_literal: true
module Paquito
class SafeYAML
ALL_SYMBOLS = [].freeze # Restricting symbols isn't really useful since symbols are no longer immortal
- BASE_PERMITTED_CLASSNAMES = ["TrueClass", "FalseClass", "NilClass", "Numeric", "String", "Array", "Hash",
- "Integer", "Float",].freeze
+ BASE_PERMITTED_CLASSNAMES = [
+ "TrueClass",
+ "FalseClass",
+ "NilClass",
+ "Numeric",
+ "String",
+ "Array",
+ "Hash",
+ "Integer",
+ "Float",
+ ].freeze
def initialize(permitted_classes: [], deprecated_classes: [], aliases: false)
permitted_classes += BASE_PERMITTED_CLASSNAMES
@dumpable_classes = permitted_classes
@loadable_classes = permitted_classes + deprecated_classes