Sha256: e7f5bd59fc79a019082c6e62e095405bb5e14fde6f771ec73721756bb8090a70

Contents?: true

Size: 456 Bytes

Versions: 11

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

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

module Tocer
  # 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__}/../../tocer.gemspec" }
    register(:kernel) { Kernel }
    register(:logger) { Cogger::Client.new }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tocer-15.1.2 lib/tocer/container.rb
tocer-15.1.1 lib/tocer/container.rb
tocer-15.1.0 lib/tocer/container.rb
tocer-15.0.0 lib/tocer/container.rb
tocer-14.5.0 lib/tocer/container.rb
tocer-14.4.0 lib/tocer/container.rb
tocer-14.3.0 lib/tocer/container.rb
tocer-14.2.0 lib/tocer/container.rb
tocer-14.1.0 lib/tocer/container.rb
tocer-14.0.1 lib/tocer/container.rb
tocer-14.0.0 lib/tocer/container.rb