logic/cartridge/default.rb in nano-bots-0.1.1 vs logic/cartridge/default.rb in nano-bots-1.0.0

- old
+ new

@@ -13,19 +13,19 @@ def values return @values if @values path = File.expand_path('../../static/cartridges/default.yml', __dir__) - cartridge = YAML.safe_load(File.read(path), permitted_classes: [Symbol]) + cartridge = YAML.safe_load_file(path, permitted_classes: [Symbol]) @values = Logic::Helpers::Hash.symbolize_keys(cartridge) @values end def baseline return @baseline if @baseline path = File.expand_path('../../static/cartridges/baseline.yml', __dir__) - cartridge = YAML.safe_load(File.read(path), permitted_classes: [Symbol]) + cartridge = YAML.safe_load_file(path, permitted_classes: [Symbol]) @baseline = Logic::Helpers::Hash.symbolize_keys(cartridge) @baseline end end end