Sha256: af4b3024c855558c199d80c510decd34d1ffa67775341a43f6a46223c6d4eb9a

Contents?: true

Size: 545 Bytes

Versions: 16

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

require "cogger"
require "dry/container"
require "http"
require "spek"

module Pennyworth
  # 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__}/../../pennyworth.gemspec" }
    register(:environment) { ENV }
    register(:kernel) { Kernel }
    register(:http) { HTTP }
    register(:logger) { Cogger::Client.new }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pennyworth-14.2.1 lib/pennyworth/container.rb
pennyworth-14.2.0 lib/pennyworth/container.rb
pennyworth-14.1.2 lib/pennyworth/container.rb
pennyworth-14.1.1 lib/pennyworth/container.rb
pennyworth-14.1.0 lib/pennyworth/container.rb
pennyworth-14.0.0 lib/pennyworth/container.rb
pennyworth-13.8.0 lib/pennyworth/container.rb
pennyworth-13.7.0 lib/pennyworth/container.rb
pennyworth-13.6.0 lib/pennyworth/container.rb
pennyworth-13.5.0 lib/pennyworth/container.rb
pennyworth-13.4.0 lib/pennyworth/container.rb
pennyworth-13.3.0 lib/pennyworth/container.rb
pennyworth-13.2.0 lib/pennyworth/container.rb
pennyworth-13.1.0 lib/pennyworth/container.rb
pennyworth-13.0.1 lib/pennyworth/container.rb
pennyworth-13.0.0 lib/pennyworth/container.rb