lib/pennyworth/container.rb in pennyworth-12.0.2 vs lib/pennyworth/container.rb in pennyworth-12.1.0

- old
+ new

@@ -8,10 +8,13 @@ module Pennyworth # Provides a global gem container for injection into other objects. module Container extend Dry::Container::Mixin + SPEC_PATH = "#{__dir__}/../../pennyworth.gemspec".freeze + register(:configuration) { Configuration::Loader.call } + register(:specification) { Gem::Specification.load SPEC_PATH } register(:environment) { ENV } register(:kernel) { Kernel } register(:http) { HTTP } register(:colorizer) { Pastel.new enabled: $stdout.tty? }