Sha256: 566147dcddc622c162da0125acf943117cda332f445614b5e6d08afa6be1bbc2

Contents?: true

Size: 543 Bytes

Versions: 19

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

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

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

    register(:colorizer) { Pastel.new enabled: $stdout.tty? }
    register(:configuration) { Configuration::Loader.call }
    register(:specification) { Spek::Loader.call "#{__dir__}/../../rubysmith.gemspec" }
    register(:kernel) { Kernel }
    register(:logger) { Cogger::Client.new }
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rubysmith-4.6.1 lib/rubysmith/container.rb
rubysmith-4.6.0 lib/rubysmith/container.rb
rubysmith-4.5.0 lib/rubysmith/container.rb
rubysmith-4.4.0 lib/rubysmith/container.rb
rubysmith-4.3.0 lib/rubysmith/container.rb
rubysmith-4.2.0 lib/rubysmith/container.rb
rubysmith-4.1.0 lib/rubysmith/container.rb
rubysmith-4.0.1 lib/rubysmith/container.rb
rubysmith-4.0.0 lib/rubysmith/container.rb
rubysmith-3.8.0 lib/rubysmith/container.rb
rubysmith-3.7.0 lib/rubysmith/container.rb
rubysmith-3.6.0 lib/rubysmith/container.rb
rubysmith-3.5.0 lib/rubysmith/container.rb
rubysmith-3.4.0 lib/rubysmith/container.rb
rubysmith-3.3.0 lib/rubysmith/container.rb
rubysmith-3.2.0 lib/rubysmith/container.rb
rubysmith-3.1.0 lib/rubysmith/container.rb
rubysmith-3.0.1 lib/rubysmith/container.rb
rubysmith-3.0.0 lib/rubysmith/container.rb