Sha256: 80a2cb90a19ffa1f1f04d7e2a7e9e68174549f86e4e0e216ed3d74bdfd8d313d

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

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

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

    register(:color) { Tone.new }
    register(:configuration) { Configuration::Loader.call }
    register(:specification) { Spek::Loader.call "#{__dir__}/../../rubysmith.gemspec" }
    register(:kernel) { Kernel }
    register(:logger) { Cogger.new formatter: :emoji }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-4.9.0 lib/rubysmith/container.rb
rubysmith-4.8.0 lib/rubysmith/container.rb