lib/git/lint/container.rb in git-lint-7.3.0 vs lib/git/lint/container.rb in git-lint-7.5.0
- old
+ new
@@ -65,16 +65,16 @@
register(:netlify_ci) { Commits::Hosts::NetlifyCI.new }
register(:local) { Commits::Hosts::Local.new }
end
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(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") }
register(:specification) { Spek::Loader.call "#{__dir__}/../../../git-lint.gemspec" }
register(:color) { Tone.new }