lib/milestoner/container.rb in milestoner-18.3.0 vs lib/milestoner/container.rb in milestoner-18.4.0
- old
+ new
@@ -4,11 +4,10 @@
require "containable"
require "etcher"
require "gitt"
require "lode"
require "runcom"
-require "sanitize"
require "spek"
module Milestoner
# Provides a global gem container for injection into other objects.
module Container
@@ -63,10 +62,10 @@
.add_transformer(:time, :loaded_at)
end
register(:settings) { Etcher.call(self[:registry]).dup }
register(:specification) { self[:spec_loader].call "#{__dir__}/../../milestoner.gemspec" }
- register :sanitizer, -> content { Sanitize.fragment content, Sanitize::Config::BASIC }
+ register(:sanitizer) { Sanitizer.new }
register(:spec_loader) { Spek::Loader.new }
register(:git) { Gitt::Repository.new }
register(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") }
register(:logger) { Cogger.new id: :milestoner }
register :io, STDOUT