lib/milestoner/container.rb in milestoner-13.1.0 vs lib/milestoner/container.rb in milestoner-13.2.0
- old
+ new
@@ -2,19 +2,18 @@
require "dry-container"
require "git_plus"
require "logger"
require "pastel"
+require "spek"
module Milestoner
# Provides a global gem container for injection into other objects.
module Container
extend Dry::Container::Mixin
- SPEC_PATH = "#{__dir__}/../../milestoner.gemspec".freeze
-
register(:configuration) { Configuration::Loader.call }
- register(:specification) { Gem::Specification.load SPEC_PATH }
+ register(:specification) { Spek::Loader.call "#{__dir__}/../../milestoner.gemspec" }
register(:colorizer) { Pastel.new enabled: $stdout.tty? }
register(:kernel) { Kernel }
register :log_colors do
{