Sha256: 1467be2efe0a48e3edca2689d793484da64016e5b145ad5f0363eb280c063f25

Contents?: true

Size: 464 Bytes

Versions: 11

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require "cogger"
require "dry-container"
require "spek"

module Pragmater
  # Provides a global gem container for injection into other objects.
  module Container
    extend Dry::Container::Mixin

    register(:configuration) { Configuration::Loader.call }
    register(:specification) { Spek::Loader.call "#{__dir__}/../../pragmater.gemspec" }
    register(:kernel) { Kernel }
    register(:logger) { Cogger::Client.new }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pragmater-12.1.2 lib/pragmater/container.rb
pragmater-12.1.1 lib/pragmater/container.rb
pragmater-12.1.0 lib/pragmater/container.rb
pragmater-12.0.0 lib/pragmater/container.rb
pragmater-11.5.0 lib/pragmater/container.rb
pragmater-11.4.0 lib/pragmater/container.rb
pragmater-11.3.0 lib/pragmater/container.rb
pragmater-11.2.0 lib/pragmater/container.rb
pragmater-11.1.0 lib/pragmater/container.rb
pragmater-11.0.1 lib/pragmater/container.rb
pragmater-11.0.0 lib/pragmater/container.rb