lib/tocer/container.rb in tocer-17.3.0 vs lib/tocer/container.rb in tocer-17.5.0

- old
+ new

@@ -10,16 +10,16 @@ # Provides a global gem container for injection into other objects. module Container extend Containable register :configuration do - self[:defaults].add_loader(Etcher::Loaders::YAML.new(self[:xdg_config].active)) + self[:defaults].add_loader(:yaml, self[:xdg_config].active) .then { |registry| Etcher.call registry } end register :defaults do Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model) - .add_loader(Etcher::Loaders::YAML.new(self[:defaults_path])) + .add_loader(:yaml, self[:defaults_path]) end register(:input) { self[:configuration].dup } register(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") } register(:xdg_config) { Runcom::Config.new "tocer/configuration.yml" }