lib/git/lint/container.rb in git-lint-3.1.0 vs lib/git/lint/container.rb in git-lint-3.2.0

- old
+ new

@@ -2,21 +2,20 @@ require "dry-container" require "git_plus" require "logger" require "pastel" +require "spek" module Git module Lint # Provides a global gem container for injection into other objects. module Container extend Dry::Container::Mixin - SPEC_PATH = "#{__dir__}/../../../git-lint.gemspec".freeze - register(:configuration) { Configuration::Loader.call } register(:repository) { GitPlus::Repository.new } - register(:specification) { Gem::Specification.load SPEC_PATH } + register(:specification) { Spek::Loader.call "#{__dir__}/../../../git-lint.gemspec" } register(:colorizer) { Pastel.new enabled: $stdout.tty? } register(:kernel) { Kernel } register :log_colors do {